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))

View File

@@ -4,7 +4,6 @@ from typing import TYPE_CHECKING
from game.ato.packagewaypoints import PackageWaypoints
from game.data.doctrine import MODERN_DOCTRINE, COLDWAR_DOCTRINE, WWII_DOCTRINE
from game.utils import knots, feet, nautical_miles
if TYPE_CHECKING:
from game import Game

View File

@@ -509,6 +509,7 @@ class Settings:
show_red_ato: bool = False
enable_frontline_cheats: bool = False
enable_base_capture_cheat: bool = False
enable_transfer_cheat: bool = False
# LUA Plugins system
plugins: Dict[str, bool] = field(default_factory=dict)