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

@@ -356,6 +356,33 @@ local items = {
graphics_name = 'solar-panel-equipment'
}
},
['item-productivity'] = {
['solar-panel'] = 'solar-energy',
['accumulator'] = 'electric-energy-accumulators',
['landfill'] = 'landfill',
['cliff-explosives'] = 'cliff-explosives',
['concrete'] = 'concrete',
['refined-concrete'] = 'concrete',
['foundation'] = 'foundation',
--[[
['artificial-yumako-soil'] = 'artificial-soil',
['artificial-jellynut-soil'] = 'artificial-soil',
['overgrowth-yumako-soil'] = 'overgrowth-soil',
['overgrowth-jellynut-soil'] = 'overgrowth-soil',
]]
['copper-cable'] = 'electronics',
['electronic-circuit'] = 'electronics',
['advanced-circuit'] = 'advanced-circuit',
['sulfur'] = 'sulfur-processing',
['explosives'] = 'explosives',
['battery'] = 'battery',
['engine'] = 'engine',
['electric-engine'] = 'electric-engine',
['flying-robot-frame'] = 'robotics',
['iron-gear-wheel'] = 'automation',
['iron-stick'] = 'concrete',
['ice-melting'] = 'ice-melting',
},
['space-age'] = {
['science'] = {
['agricultural-science-pack'] = true,

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

View File

@@ -123,6 +123,7 @@ PHI-MI-TRAIN=[color=54,228,255]MI7[/color]
PHI-MI-PIPE-EXTENT=[color=54,228,255]MI8[/color]
PHI-MI-ROCKET-CAPACITY=[color=54,228,255]MI9[/color]
PHI-MI-CARGO-WEIGHT=[color=54,228,255]MI10[/color]
PHI-MI-PRODUCTIVITY=[color=54,228,255]MI11[/color]
PHI-SA=[color=255,254,42]SA[/color]
PHI-SA-HEAT-RADIUS=[color=54,228,255]SA1[/color]
@@ -173,6 +174,7 @@ PHI-MI-TRAIN=Train efficiency
PHI-MI-PIPE-EXTENT=Pipe Extent
PHI-MI-ROCKET-CAPACITY=Rocket capacity
PHI-MI-CARGO-WEIGHT=Rocket cargo weight
PHI-MI-PRODUCTIVITY=Item productivity
PHI-SA=[color=255,254,42]Space Age[/color]
PHI-SA-HEAT-RADIUS=Heat radius

View File

@@ -123,6 +123,7 @@ PHI-MI-TRAIN=列車効率
PHI-MI-PIPE-EXTENT=パイプ範囲
PHI-MI-ROCKET-CAPACITY=ロケット容量
PHI-MI-CARGO-WEIGHT=ロケット積載重量
PHI-MI-PRODUCTIVITY=アイテム生産効率
PHI-SA=[color=255,254,42]Space Age[/color]
PHI-SA-HEAT-RADIUS=熱半径

View File

@@ -123,6 +123,7 @@ PHI-MI-TRAIN=火車效率
PHI-MI-PIPE-EXTENT=管道長度
PHI-MI-ROCKET-CAPACITY=火箭容量
PHI-MI-CARGO-WEIGHT=火箭貨物重量
PHI-MI-PRODUCTIVITY=物品生產力
PHI-SA=[color=255,254,42]太空時代[/color]
PHI-SA-HEAT-RADIUS=熱半徑

View File

@@ -218,6 +218,13 @@ data:extend({
maximum_value = 1000,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-MI-CARGO-WEIGHT'}, {'mod-setting-name.PHI-MI-CARGO-WEIGHT'}},
order = 'C10'
}, {
type = 'bool-setting',
name = 'PHI-MI-PRODUCTIVITY',
setting_type = 'startup',
default_value = false,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-MI-PRODUCTIVITY'}, {'mod-setting-name.PHI-MI-PRODUCTIVITY'}},
order = 'C11'
}, {
type = 'bool-setting',
name = 'PHI-SA',