From ce3e358f8cdc3ae690a8695cfefa0e0f01697311 Mon Sep 17 00:00:00 2001 From: Raffson Date: Fri, 16 Jun 2023 17:52:33 +0200 Subject: [PATCH] Fix map objects not being registered when killed --- game/missiongenerator/tgogenerator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game/missiongenerator/tgogenerator.py b/game/missiongenerator/tgogenerator.py index 80376f56..310ac46e 100644 --- a/game/missiongenerator/tgogenerator.py +++ b/game/missiongenerator/tgogenerator.py @@ -268,9 +268,7 @@ class GroundObjectGenerator: # map objects and add them to the state.json with a DoScript t = TriggerOnce(Event.NoEvent, f"MapObjectIsDead Trigger {trigger_zone.id}") t.add_condition(MapObjectIsDead(trigger_zone.id)) - script_string = String( - f'killed_ground_units[#killed_ground_units + 1] = "{trigger_zone.name}"' - ) + script_string = String(f'dead_events[#dead_events + 1] = "{trigger_zone.name}"') t.actions.append(DoScript(script_string)) self.m.triggerrules.triggers.append(t)