diff --git a/changelog.md b/changelog.md index ebf3e594..734b0ef8 100644 --- a/changelog.md +++ b/changelog.md @@ -11,6 +11,7 @@ Saves from 7.x are not compatible with 8.0. ## Fixes +* **[Campaign]** Fix bug introduced in 7.0 where map strike target deaths are no longer tracked. * **[Mission Generation]** Fix crash during mission generation caused by out of date DCS data for the Gazelle. # 7.1.0 diff --git a/game/debriefing.py b/game/debriefing.py index a7ece486..8f4dce08 100644 --- a/game/debriefing.py +++ b/game/debriefing.py @@ -133,6 +133,7 @@ class StateData: + data["kill_events"] + data["crash_events"] + data["dead_events"] + + data["killed_ground_units"] ) for unit in killed_units: # organize killed units into aircraft vs ground if unit_map.flight(unit) is not None: diff --git a/resources/plugins/base/dcs_liberation.lua b/resources/plugins/base/dcs_liberation.lua index 086ce500..fc419893 100644 --- a/resources/plugins/base/dcs_liberation.lua +++ b/resources/plugins/base/dcs_liberation.lua @@ -10,6 +10,7 @@ unit_lost_events = {} -- killed units will be added via S_EVENT_UNIT_LOST kill_events = {} -- killed units will be added via S_EVENT_KILL base_capture_events = {} destroyed_objects_positions = {} -- will be added via S_EVENT_DEAD event +killed_ground_units = {} -- keep track of static ground object deaths mission_ended = false local function ends_with(str, ending) @@ -39,6 +40,7 @@ function write_state() ["kill_events"] = kill_events, ["mission_ended"] = mission_ended, ["destroyed_objects_positions"] = destroyed_objects_positions, + ["killed_ground_units"] = killed_ground_units, } if not json then local message = string.format("Unable to save DCS Liberation state to %s, JSON library is not loaded !", _debriefing_file_location)