starting area k2
This commit is contained in:
parent
1eeb7ff101
commit
4352dd83f7
2 changed files with 5 additions and 2 deletions
|
|
@ -3,6 +3,8 @@ Version: 0.2.0
|
|||
Date: 2021-06-16
|
||||
Features:
|
||||
- Recipe bypass setting
|
||||
Changes:
|
||||
- When K2 is enabled, add wolframite to starting area
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.1.5
|
||||
Date: 2021-06-15
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ data:extend({
|
|||
name = "tungsten-ore",
|
||||
order = "b-z",
|
||||
base_density = 4,
|
||||
has_starting_area_placement = false,
|
||||
has_starting_area_placement = mods["Krastorio2"] and true,
|
||||
regular_rq_factor_multiplier = 1.2
|
||||
},
|
||||
|
||||
|
|
@ -82,10 +82,11 @@ data:extend({
|
|||
},
|
||||
})
|
||||
|
||||
-- Wolframite becomes 20% richer past 1000 tiles, 60% richer past 10000 tiles
|
||||
-- Wolframite becomes 20% richer past 1000 tiles, 60% richer past 10000 tiles. Very close to start, it's 50% less rich
|
||||
local richness = data.raw.resource["tungsten-ore"].autoplace.richness_expression
|
||||
data.raw.resource["tungsten-ore"].autoplace.richness_expression =
|
||||
richness * noise.if_else_chain(
|
||||
noise.less_than(noise.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")), noise.to_noise_expression(100)), 0.5,
|
||||
noise.less_than(noise.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")), noise.to_noise_expression(1000)), 1,
|
||||
noise.less_than(noise.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")), noise.to_noise_expression(10000)), 1.2,
|
||||
1.6)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue