stone autoplace

This commit is contained in:
Brevven 2021-12-31 04:19:40 -08:00
parent 2a33af6b9b
commit b42b476622
2 changed files with 18 additions and 5 deletions

View file

@ -3,6 +3,7 @@ Version: 0.8.0
Date: 2021-12-31 Date: 2021-12-31
Changes: Changes:
- K2 1.2 alternate electronic components recipe - K2 1.2 alternate electronic components recipe
- Update stone autoplace for more stone.
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 0.7.4 Version: 0.7.4
Date: 2021-07-26 Date: 2021-07-26

View file

@ -2,11 +2,23 @@ require("recipe-updates")
require("strange-matter") require("strange-matter")
require("recipes/silicon-vulcanite") require("recipes/silicon-vulcanite")
if data.raw.resource["stone"] then if data.raw.resource["stone"] then
local noise = require('noise'); if mods["space-exploration"] then
-- Increase richness of stone a bit local noise = require('noise');
data.raw.resource["stone"].autoplace.richness_expression = -- Increase richness of stone a bit
data.raw.resource["stone"].autoplace.richness_expression * noise.to_noise_expression(4/3) data.raw.resource["stone"].autoplace.richness_expression =
data.raw.resource["stone"].autoplace.richness_expression * noise.to_noise_expression(4/3)
else
log("Replacing vanilla stone autoplace")
local resource_autoplace = require('resource-autoplace');
data.raw.resource["stone"].autoplace = resource_autoplace.resource_autoplace_settings{
name = "stone",
order = "b",
base_density = 7, -- increased from 4 in vanilla
has_starting_area_placement = true,
regular_rq_factor_multiplier = 1.0,
starting_rq_factor_multiplier = 1.1,
}
end
end end