File size: 344 Bytes
3831e97
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
"""Canonical PREP→NIGHT phase order."""
from __future__ import annotations
from game.sim.day_cycle import Phase

PHASE_ORDER = [Phase.PREP, Phase.MORNING, Phase.AFTERNOON, Phase.DUSK, Phase.CLOSING, Phase.NIGHT]
STAGE_ORDER = [p.value for p in PHASE_ORDER]

def advance_phase_index(i: int) -> int:
    return min(i + 1, len(PHASE_ORDER) - 1)