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