From b79dd13da6e4a9042894bb4543e044e634e62d26 Mon Sep 17 00:00:00 2001 From: Zuosizhu Date: Wed, 28 Jan 2026 22:35:54 +0800 Subject: [PATCH] fix: handle no flagships after retirement. --- module/map/map_fleet_preparation.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/module/map/map_fleet_preparation.py b/module/map/map_fleet_preparation.py index 1edb78787..bc54ce3d3 100644 --- a/module/map/map_fleet_preparation.py +++ b/module/map/map_fleet_preparation.py @@ -294,6 +294,15 @@ class FleetOperator: self.click(index) +class FleetOperator(FleetOperator): + def raise_hard_not_satisfied(self): + if self.is_hard_satisfied() is False: + stage = self.main.config.Campaign_Name + logger.critical(f'Stage "{stage}" is a hard mode, ' + f'please prepare your fleet "{str(self)}" in game before running Alas') + raise RequestHumanTakeover('Hard not satisfied', str(self)) + + class FleetPreparation(InfoHandler): map_fleet_checked = False map_is_hard_mode = False