system Refactor `buildCombatState` to derive encounter data directly from `runState` instead of requiring it as an argument. Also apply consistent 2-space indentation and formatting to the encounter lifecycle module.
system Refactor `buildCombatState` to derive encounter data directly from `runState` instead of requiring it as an argument. Also apply consistent 2-space indentation and formatting to the encounter lifecycle module.