feat: Add reset functionality to TaskStore initialization for mission state management

This commit is contained in:
Jacob Schmidt 2026-05-16 23:44:17 -05:00
parent 516c6e725e
commit e49b4e4dd9
2 changed files with 1 additions and 2 deletions

View File

@ -27,3 +27,4 @@ private _category = [QUOTE(MOD_NAME), LLSTRING(displayName)];
[] call FUNC(DefendTaskBaseClass);
call FUNC(initTaskStore);
if !(isNil QGVAR(TaskStore)) then { GVAR(TaskStore) call ["resetMissionState", []]; };

View File

@ -52,8 +52,6 @@ GVAR(TaskStore) = createHashMapObject [[
["targets", createHashMap]
]];
// Task extension state is mission-scoped and intentionally reset on
// startup rather than being treated as durable account data.
["task:reset", []] call EFUNC(extension,extCall) params ["_result", "_isSuccess"];
if (
!_isSuccess