Skip to content

Commit 566563f

Browse files
author
ILLISIS
committed
fix: Fixed an issue that caused atomic strikes not to work during Destroy jobs.
1 parent 5dd9cb7 commit 566563f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

script/job/destroy.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,17 @@ function destroy_job:check_minion_status(minionjob)
377377
return true
378378
end
379379

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+
380385
function destroy_job:launch_nuke(target, surounding_entities)
381386
local worker = self.worker ---@cast worker -nil
382387
local bomb = storage.atomic_ammo_name[self.surface_index]
383388
-- spawn atomic rocket
384389
worker.surface.create_entity {
385-
name = bomb.name,
390+
name = ammo_table[bomb.name] or bomb.name,
386391
quality = bomb.quality,
387392
position = worker.position,
388393
target = target.position,

0 commit comments

Comments
 (0)