Persist stat modifier state in typed snapshots

This commit is contained in:
Meta Vens 2026-06-14 16:34:40 +01:00
commit cd009fa9a9
11 changed files with 90 additions and 8 deletions

View file

@ -972,6 +972,15 @@ public class ActionGameManager : MonoBehaviour
TriggerPulled = trigger.Pulled
};
}
else if (behavior is StatModifier statModifier)
{
state = new AetheriaRuntimeBehaviorStateCommit
{
StatModifierApplied = statModifier.Applied,
StatModifierExecuted = statModifier.Executed,
StatModifierTargetStatCount = statModifier.TargetStatCount
};
}
if (state == null)
continue;