mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Opt: Retire once since game client retire all at one time
This commit is contained in:
@@ -160,12 +160,10 @@ class Retirement(Enhancement, QuickRetireSettingHandler):
|
|||||||
rarity.add('SSR')
|
rarity.add('SSR')
|
||||||
return rarity
|
return rarity
|
||||||
|
|
||||||
def retire_ships_one_click(self, amount=None):
|
def retire_ships_one_click(self):
|
||||||
logger.hr('Retirement')
|
logger.hr('Retirement')
|
||||||
logger.info('Using one click retirement.')
|
logger.info('Using one click retirement.')
|
||||||
self.dock_favourite_set(False)
|
self.dock_favourite_set(False)
|
||||||
if amount is None:
|
|
||||||
amount = self._retire_amount
|
|
||||||
end = False
|
end = False
|
||||||
total = 0
|
total = 0
|
||||||
|
|
||||||
@@ -206,8 +204,10 @@ class Retirement(Enhancement, QuickRetireSettingHandler):
|
|||||||
break
|
break
|
||||||
self._retirement_confirm()
|
self._retirement_confirm()
|
||||||
total += 10
|
total += 10
|
||||||
if total >= amount:
|
# if total >= amount:
|
||||||
break
|
# break
|
||||||
|
# Always break, since game client retire all once
|
||||||
|
break
|
||||||
|
|
||||||
logger.info(f'Total retired round: {total // 10}')
|
logger.info(f'Total retired round: {total // 10}')
|
||||||
return total
|
return total
|
||||||
|
|||||||
Reference in New Issue
Block a user