diff --git a/changelog.txt b/changelog.txt index 082075c..5ef1a26 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/lead-ore.lua b/lead-ore.lua index 3c10765..02eb88e 100644 --- a/lead-ore.lua +++ b/lead-ore.lua @@ -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)), diff --git a/other-entities.lua b/other-entities.lua index 07410c8..71adc9b 100644 --- a/other-entities.lua +++ b/other-entities.lua @@ -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 = { {