mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 12:08:21 +08:00
withdraw when emotion is low
This commit is contained in:
@@ -153,10 +153,11 @@ class FastForwardHandler(AutoSearchHandler):
|
||||
self.handle_2x_book_setting(mode='auto')
|
||||
self.device.click(AUTO_SEARCH_MENU_QUIT)
|
||||
self.interval_reset(AUTO_SEARCH_MENU_CONTINUE)
|
||||
self.device.sleep(22)
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
@Config.when(GEMS_LEVEL_CHECK=False)
|
||||
def handle_auto_search_continue(self):
|
||||
"""
|
||||
Override AutoSearchHandler definition
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from module.exception import CampaignEnd
|
||||
from module.exception import EmotionWithdraw
|
||||
from module.config.config import AzurLaneConfig
|
||||
from module.base.decorator import Config
|
||||
from scipy import signal
|
||||
@@ -117,18 +117,20 @@ class InfoHandler(ModuleBase):
|
||||
self.device.click(GET_MISSION)
|
||||
return appear
|
||||
|
||||
@Config.when(GEMS_AUTO_SEARCH_FARMING = True)
|
||||
@Config.when(GEMS_AUTO_SEARCH_FARMING=True)
|
||||
def handle_combat_low_emotion(self):
|
||||
if not self.config.IGNORE_LOW_EMOTION_WARN:
|
||||
return False
|
||||
|
||||
self.config.GEMS_EMOTION_TRIGGRED = True
|
||||
self.handle_popup_confirm('IGNORE_LOW_EMOTION')
|
||||
|
||||
raise CampaignEnd
|
||||
if self.handle_popup_cancel('IGNORE_LOW_EMOTION'):
|
||||
|
||||
raise EmotionWithdraw
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
@Config.when(GEMS_AUTO_SEARCH_FARMING=False)
|
||||
def handle_combat_low_emotion(self):
|
||||
if not self.config.IGNORE_LOW_EMOTION_WARN:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user