mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Opt: always keep common cv at retirement if GemsFarming enabled
This commit is contained in:
@@ -400,7 +400,6 @@ class GemsFarming(CampaignRun, FleetEquipment, Dock):
|
||||
total (int):
|
||||
"""
|
||||
self.config.STOP_IF_REACH_LV32 = self.change_flagship
|
||||
self.config.RETIRE_KEEP_COMMON_CV = True
|
||||
|
||||
while 1:
|
||||
self._trigger_lv32 = False
|
||||
|
||||
@@ -353,7 +353,6 @@ class ManualConfig:
|
||||
"""
|
||||
DOCK_FULL_TRIGGERED = False
|
||||
GET_SHIP_TRIGGERED = False
|
||||
RETIRE_KEEP_COMMON_CV = False
|
||||
COMMON_CV_THRESHOLD = 0.9
|
||||
|
||||
"""
|
||||
|
||||
@@ -35,6 +35,10 @@ class Retirement(Enhancement, QuickRetireSettingHandler):
|
||||
# From MapOperation
|
||||
map_cat_attack_timer = Timer(2)
|
||||
|
||||
@property
|
||||
def retire_keep_common_cv(self):
|
||||
return self.config.is_task_enabled('GemsFarming')
|
||||
|
||||
def _retirement_choose(self, amount=10, target_rarity=('N',)):
|
||||
"""
|
||||
Args:
|
||||
@@ -114,7 +118,7 @@ class Retirement(Enhancement, QuickRetireSettingHandler):
|
||||
else:
|
||||
self.interval_clear(SHIP_CONFIRM)
|
||||
if self.appear(SHIP_CONFIRM_2, offset=(30, 30), interval=2):
|
||||
if self.config.RETIRE_KEEP_COMMON_CV and not self._have_kept_cv:
|
||||
if self.retire_keep_common_cv and not self._have_kept_cv:
|
||||
self.keep_one_common_cv()
|
||||
self.device.click(SHIP_CONFIRM_2)
|
||||
self.interval_clear(GET_ITEMS_1)
|
||||
@@ -171,7 +175,7 @@ class Retirement(Enhancement, QuickRetireSettingHandler):
|
||||
end = False
|
||||
total = 0
|
||||
|
||||
if self.config.RETIRE_KEEP_COMMON_CV:
|
||||
if self.retire_keep_common_cv:
|
||||
self._have_kept_cv = False
|
||||
|
||||
while 1:
|
||||
@@ -246,7 +250,7 @@ class Retirement(Enhancement, QuickRetireSettingHandler):
|
||||
self.dock_favourite_set(False)
|
||||
total = 0
|
||||
|
||||
if self.config.RETIRE_KEEP_COMMON_CV:
|
||||
if self.retire_keep_common_cv:
|
||||
self._have_kept_cv = False
|
||||
|
||||
while amount:
|
||||
|
||||
Reference in New Issue
Block a user