fix surface condition
This commit is contained in:
parent
c3bc95e3c5
commit
079a517157
3 changed files with 4 additions and 6 deletions
|
|
@ -1,6 +1,8 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.9
|
||||
Date: 2025-01-01
|
||||
Fixes:
|
||||
- Fix surface condition error in vanilla
|
||||
Features:
|
||||
- Hot metals mod support
|
||||
- Casting for lead expansion bolts
|
||||
|
|
|
|||
|
|
@ -89,16 +89,12 @@ data:extend({
|
|||
-- From 200 to 700 tiles, richness scales linearly down, until
|
||||
-- From 700 tiles onward, it's about 1/6th the richness.
|
||||
local richness = data.raw.resource["lead-ore"].autoplace.richness_expression
|
||||
log("Lead richness pre")
|
||||
log(richness)
|
||||
data.raw.resource["lead-ore"].autoplace.richness_expression = richness..[[*
|
||||
if(distance_from_nearest_point{x = x, y = y, points = starting_positions} < 200, 1,
|
||||
if(distance_from_nearest_point{x = x, y = y, points = starting_positions} < 700,
|
||||
100/(distance_from_nearest_point{x = x, y = y, points = starting_positions} - 100), 0.17))
|
||||
]]
|
||||
local richness = data.raw.resource["lead-ore"].autoplace.richness_expression
|
||||
log("Lead richness post")
|
||||
log(richness)
|
||||
-- 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(200)), 1,
|
||||
-- noise.less_than(noise.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")), noise.to_noise_expression(700)),
|
||||
|
|
|
|||
|
|
@ -32,12 +32,12 @@ data:extend({
|
|||
corpse = "small-remnants",
|
||||
open_sound = { filename = "__base__/sound/metallic-chest-open.ogg", volume=0.65 },
|
||||
close_sound = { filename = "__base__/sound/metallic-chest-close.ogg", volume = 0.7 },
|
||||
surface_conditions = {
|
||||
surface_conditions = mods["space-age"] and {
|
||||
{
|
||||
property = "gravity",
|
||||
min = 0.1
|
||||
}
|
||||
},
|
||||
} or nil,
|
||||
resistances =
|
||||
{
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue