This commit is contained in:
2025-01-27 23:09:00 +09:00
parent 3fbcb542d8
commit a97d9527b7
6 changed files with 69 additions and 0 deletions

View File

@@ -333,6 +333,37 @@ if settings.startup['PHI-MI'].value then
end
end
if settings.startup['PHI-MI-PRODUCTIVITY'].value then
local function add_prod_tech(name, tech)
data:extend({{
type = 'technology',
name = name .. '-productivity',
prerequisites = tech,
effects = {
{
type = 'change-recipe-productivity',
recipe = name,
change = 0.1
}
},
unit = {
count_formula = '(1.5^L)*1000',
ingredients = table.deepcopy(data.raw.technology[tech].unit.ingredients),
time = data.raw.technology[tech].unit.time
},
icon = data.raw.technology[tech].icon,
max_level = 'infinite',
upgrade = true
}})
end
for k, v in pairs(items.item_productivity) do
if data.raw.technology[v] then
add_prod_tech(k, v)
end
end
end
data.raw['utility-constants'].default.default_pipeline_extent = settings.startup['PHI-MI-PIPE-EXTENT'].value
data.raw['utility-constants'].default.rocket_lift_weight = settings.startup['PHI-MI-ROCKET-CAPACITY'].value * 1000000
data.raw['utility-constants'].default.default_item_weight = settings.startup['PHI-MI-CARGO-WEIGHT'].value