This commit is contained in:
2026-04-29 15:15:39 +09:00
parent 38f0973693
commit ffeb856110
2 changed files with 32 additions and 44 deletions
+6 -6
View File
@@ -78,6 +78,12 @@ end
data.raw.tool['promethium-science-pack'].hidden = true
data.raw.tool['promethium-science-pack'].hidden_in_factoriopedia = true
for _, v in pairs({'coal', 'stone', 'iron-ore', 'copper-ore', 'uranium-ore'}) do
if data.raw.item[v] then
data.raw.item[v].stack_size = math.max(data.raw.item[v].stack_size, 100)
end
end
local item = table.deepcopy(data.raw['item']['depleted-uranium-fuel-cell'])
item.name = 'empty-train-battery'
item.icon = items['general']['graphics_location'] .. 'battery.png'
@@ -136,9 +142,3 @@ for _, v in pairs(data.raw['locomotive']) do
v.energy_source.burnt_inventory_size = (v.energy_source.burnt_inventory_size and math.max(v.energy_source.burnt_inventory_size, 1)) or 1
end
end
for _, v in pairs({'coal', 'stone', 'iron-ore', 'copper-ore', 'uranium-ore'}) do
if data.raw.item[v] then
data.raw.item[v].stack_size = math.max(data.raw.item[v].stack_size, 100)
end
end