We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dd9cb7 commit 566563fCopy full SHA for 566563f
script/job/destroy.lua
@@ -377,12 +377,17 @@ function destroy_job:check_minion_status(minionjob)
377
return true
378
end
379
380
+-- WUBE did some dumb shit and mismatched the item name and entity name
381
+local ammo_table = {
382
+ ["atomic-bomb"] = "atomic-rocket"
383
+}
384
+
385
function destroy_job:launch_nuke(target, surounding_entities)
386
local worker = self.worker ---@cast worker -nil
387
local bomb = storage.atomic_ammo_name[self.surface_index]
388
-- spawn atomic rocket
389
worker.surface.create_entity {
- name = bomb.name,
390
+ name = ammo_table[bomb.name] or bomb.name,
391
quality = bomb.quality,
392
position = worker.position,
393
target = target.position,
0 commit comments