fix noise expression for richness
This commit is contained in:
parent
ba4a5131d4
commit
2234bfa7bb
3 changed files with 10 additions and 4 deletions
|
|
@ -85,8 +85,9 @@ local richness = data.raw.resource["zircon"].autoplace.richness_expression
|
|||
|
||||
-- Modify lead autoplace richness:
|
||||
-- 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 =
|
||||
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.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")) + 50)/250)
|
||||
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,
|
||||
1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue