fix noise expression for richness
This commit is contained in:
parent
ba4a5131d4
commit
2234bfa7bb
3 changed files with 10 additions and 4 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.5.1
|
||||||
|
Date: 2021-01-19
|
||||||
|
Fixes:
|
||||||
|
- Fix issue with richness scaling too fast
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.5.0
|
Version: 0.5.0
|
||||||
Date: 2021-01-15
|
Date: 2021-01-15
|
||||||
Changes:
|
Changes:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzzirconium",
|
"name": "bzzirconium",
|
||||||
"version": "0.5.0",
|
"version": "0.5.1",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Zirconium",
|
"title": "Zirconium",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,9 @@ local richness = data.raw.resource["zircon"].autoplace.richness_expression
|
||||||
|
|
||||||
-- Modify lead autoplace richness:
|
-- Modify lead autoplace richness:
|
||||||
-- After 200 tiles it's standard
|
-- After 200 tiles it's standard
|
||||||
-- Up to 100 tiles, it scales up
|
-- Up to 200 tiles, it scales up
|
||||||
data.raw.resource["zircon"].autoplace.richness_expression =
|
data.raw.resource["zircon"].autoplace.richness_expression =
|
||||||
richness * noise.if_else_chain(
|
richness * noise.if_else_chain(
|
||||||
not noise.less_than(noise.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")), noise.to_noise_expression(200)), 1,
|
noise.less_than(noise.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")), noise.to_noise_expression(200)),
|
||||||
(noise.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")) + 50)/250)
|
(noise.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")) + 50)/250,
|
||||||
|
1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue