Allow player to continue playing after the end of a turn. (#3526)

This PR:

Keeps track of time spent in mission 

Introduces a new "turnless mode" setting, which activates the following:
- At the end of a mission, fast forwards through the time spent in the
mission, skipping any combat (which has already been tracked through
state.json)
- Removes killed flights from the ATO
- Does not start a new turn, instead allows the player to continue the
current turn.
This commit is contained in:
zhexu14
2025-10-16 23:51:27 +11:00
committed by GitHub
parent 5676c40788
commit d09a15a7f3
10 changed files with 136 additions and 25 deletions

View File

@@ -100,7 +100,11 @@ class GameLoop:
if not self.started:
raise RuntimeError("Attempted to tick game loop before initialization")
try:
self.sim.tick(self.events)
self.sim.tick(
self.events,
self.game.settings.combat_resolution_method,
force_continue=False,
)
self.completed = self.events.simulation_complete
if not suppress_events:
self.send_update(rate_limit=True)