Add "Instant Squadron Transfer" cheat option

Resolves #14
This commit is contained in:
Raffson
2022-12-26 01:27:52 +01:00
parent 5c06e74659
commit 00ab0c4be2
7 changed files with 42 additions and 4 deletions

View File

@@ -264,4 +264,8 @@ class Flight(SidcDescribable):
results.kill_pilot(self, pilot)
def recreate_flight_plan(self) -> None:
from game.sim.gameupdateevents import GameUpdateEvents
from game.server import EventStream
self._flight_plan_builder.regenerate()
EventStream.put_nowait(GameUpdateEvents().update_flight(self))