diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index 6ee997e..a2d8ec1 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -839,6 +839,32 @@ if settings.startup['PHI-VP'].value then localised_description = {'description.charged-train-battery'} }}) + item = table.deepcopy(data.raw['ammo']['artillery-shell']) + item.name = 'nuclear-artillery-shell' + item.ammo_type.action.projectile = 'nulcear-artillery-projectile' + item.localised_name = {'phi-cl.combine', {'item-name.atomic-bomb'}, {'item-name.artillery-shell'}} + data:extend({item}) + + item = table.deepcopy(data.raw['artillery-projectile']['artillery-projectile']) + item.name = 'nuclear-artillery-projectile' + item.action.action_delivery.action_delivery = table.unpack(data.raw['projectile']['atomic-rocket']) + data:extend({item}) + + data:extend({{ + type = 'recipe', + name = 'nuclear-artillery-shell', + energy_required = 10, + enabled = false, + icon = '__base__/graphics/icons/artillery-shell.png', + allow_productivity = false, + ingredients = {{type = 'item', name = 'artillery-shell', amount = 1}, {type = 'item', name = 'atomic-bomb', amount = 1}}, + results = {{type = 'item', name = 'nuclear-artillery-shell', amount = 1}}, + main_product = 'nuclear-artillery-shell', + localised_name = {'phi-cl.combine', {'item-name.atomic-bomb'}, {'item-name.artillery-shell'}} + }}) + + table.insert(data.raw.technology['artillery'].effects, {type = 'unlock-recipe', recipe = 'nuclear-artillery-shell'}) + local item_sounds = require('__base__/prototypes/item_sounds') data:extend({