1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +08:00

Fix: Disclaimer requirement for os_world_clear module

Fix: Limit user input via 'choices' for min/max level

Fix: Update loop range dynamic rather than presumed in read config
This commit is contained in:
nEEtdo0d
2021-05-16 20:00:55 -04:00
parent 5c86eeb31c
commit 4d66050d6f
3 changed files with 11 additions and 7 deletions

View File

@@ -221,7 +221,7 @@ class OperationSiren(OSMap):
self.config.OS_SETTING_REPAIR_THRESHOLD)
def _clear_os_world(self):
for hazard_level in range(self.config.OS_WORLD_MIN_LEVEL, self.config.OS_WORLD_MAX_LEVEL):
for hazard_level in range(self.config.OS_WORLD_MIN_LEVEL, (self.config.OS_WORLD_MAX_LEVEL + 1)):
zones = self.zone_select(hazard_level=hazard_level) \
.delete(SelectedGrids(self.zones.select(is_port=True))) \
.sort_by_clock_degree(center=(1252, 1012), start=self.zone.location)