mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Add: Boss fleet check from chapter 7 to 13
This commit is contained in:
parent
83afdafccb
commit
b186382fdd
@ -382,6 +382,11 @@ class AzurLaneConfig:
|
|||||||
logger.warning(f'Mob fleet [{self.FLEET_1}] and boss fleet [{self.FLEET_2}] is the same')
|
logger.warning(f'Mob fleet [{self.FLEET_1}] and boss fleet [{self.FLEET_2}] is the same')
|
||||||
logger.warning('They should to be set to different fleets')
|
logger.warning('They should to be set to different fleets')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
if self.COMMAND.lower() == 'main' and self.CAMPAIGN_NAME.startswith('campaign_'):
|
||||||
|
if int(self.CAMPAIGN_NAME.split('_')[1]) >= 7 and self.FLEET_2 == 0:
|
||||||
|
logger.warning('You should use 2 fleets from chapter 7 to 13')
|
||||||
|
logger.warning(f'Current: mob fleet [{self.FLEET_1}], boss fleet [{self.FLEET_2}]')
|
||||||
|
exit(1)
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
self.config.write(codecs.open(self.CONFIG_FILE, "w+", "utf8"))
|
self.config.write(codecs.open(self.CONFIG_FILE, "w+", "utf8"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user