mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +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')
|
||||
return rarity
|
||||
|
||||
def retire_ships_one_click(self, amount=None):
|
||||
def retire_ships_one_click(self):
|
||||
logger.hr('Retirement')
|
||||
logger.info('Using one click retirement.')
|
||||
self.dock_favourite_set(False)
|
||||
if amount is None:
|
||||
amount = self._retire_amount
|
||||
end = False
|
||||
total = 0
|
||||
|
||||
@@ -206,8 +204,10 @@ class Retirement(Enhancement, QuickRetireSettingHandler):
|
||||
break
|
||||
self._retirement_confirm()
|
||||
total += 10
|
||||
if total >= amount:
|
||||
break
|
||||
# if total >= amount:
|
||||
# break
|
||||
# Always break, since game client retire all once
|
||||
break
|
||||
|
||||
logger.info(f'Total retired round: {total // 10}')
|
||||
return total
|
||||
|
||||
Reference in New Issue
Block a user