Files
healer-man/src/game/combatSimulationLifecycle.ts
T
2026-08-30 14:16:56 -04:00

16 lines
402 B
TypeScript

interface CombatSimulationTimerState {
readonly sharedOnline: boolean;
readonly paused: boolean;
readonly companionOpen: boolean;
readonly documentHidden: boolean;
}
export function combatSimulationTimerShouldRun({
sharedOnline,
paused,
companionOpen,
documentHidden,
}: CombatSimulationTimerState): boolean {
return sharedOnline || (!paused && !companionOpen && !documentHidden);
}