Persist stat modifier state in typed snapshots
This commit is contained in:
parent
19fdaab6ab
commit
cd009fa9a9
11 changed files with 90 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue