Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-29 18:58:43 +09:00
parent 6e2db4bf6b
commit e5ccd431b4
+6 -2
View File
@@ -99,7 +99,10 @@ for _, v in pairs({'coal', 'stone', 'iron-ore', 'copper-ore', 'uranium-ore'}) do
end
end
local item = table.deepcopy(data.raw['item']['depleted-uranium-fuel-cell'])
-- GM A 2 BASE ITEM,RECIPE
-- GM C 1 BASE ENTITY
if data.raw.item['depleted-uranium-fuel-cell'] and data.raw.item['nuclear-fuel'] then
local item = table.deepcopy(data.raw.item['depleted-uranium-fuel-cell'])
item.name = 'empty-train-battery'
item.icon = items['general']['graphics_location'] .. 'battery.png'
item.order = 'qa'
@@ -125,7 +128,7 @@ data:extend({{
localised_description = {'description.empty-train-battery'}
}})
item = table.deepcopy(data.raw['item']['nuclear-fuel'])
item = table.deepcopy(data.raw.item['nuclear-fuel'])
item.name = 'charged-train-battery'
item.burnt_result = 'empty-train-battery'
item.fuel_value = '1GJ'
@@ -157,3 +160,4 @@ 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
end