mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 12:08:21 +08:00
1. 很多函数直接在 gems_farming 里覆盖就可以了, 不要直接在底层里加
因为只是 gems_farming 自己用的, 不是通用的
This commit is contained in:
@@ -142,20 +142,6 @@ class FastForwardHandler(AutoSearchHandler):
|
||||
self.auto_search_setting_ensure(self.config.AUTO_SEARCH_SETTING)
|
||||
return True
|
||||
|
||||
@Config.when(GEMS_LEVEL_CHECK=True)
|
||||
def handle_auto_search_continue(self):
|
||||
"""
|
||||
Override AutoSearchHandler definition
|
||||
for 2x book handling if needed
|
||||
"""
|
||||
if self.appear(AUTO_SEARCH_MENU_EXIT, offset=self._auto_search_menu_offset, interval=2):
|
||||
self.map_is_2x_book = self.config.ENABLE_2X_BOOK
|
||||
self.handle_2x_book_setting(mode='auto')
|
||||
self.device.click(AUTO_SEARCH_MENU_EXIT)
|
||||
self.interval_reset(AUTO_SEARCH_MENU_EXIT)
|
||||
return True
|
||||
return False
|
||||
|
||||
@Config.when(GEMS_LEVEL_CHECK=False)
|
||||
def handle_auto_search_continue(self):
|
||||
"""
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from module.exception import EmotionWithdraw
|
||||
from module.config.config import AzurLaneConfig
|
||||
from module.base.decorator import Config
|
||||
from scipy import signal
|
||||
@@ -117,18 +116,6 @@ class InfoHandler(ModuleBase):
|
||||
self.device.click(GET_MISSION)
|
||||
return appear
|
||||
|
||||
@Config.when(GEMS_AUTO_SEARCH_FARMING=True)
|
||||
def handle_combat_low_emotion(self):
|
||||
if not self.config.IGNORE_LOW_EMOTION_WARN:
|
||||
return False
|
||||
|
||||
if self.handle_popup_cancel('IGNORE_LOW_EMOTION'):
|
||||
self.config.GEMS_EMOTION_TRIGGRED = True
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user