1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-13 10:58:02 +08:00

Add: GemsFarming hard mode (#5598)

* Refactor: delete equipment change usage in alas

* Refactor: class GemsFarming

* Add: assets for equipment code

* Add: config for equipment code

* Add: class EquipmentCodeHandler

* Add: config for equipment code in GemsFarming

* Add: GemsFarming equipment change

* Add: submarine support for GemsFarming

* Add: config for emotion control in GemsFarming

* Add: GemsFarming emotion control

* Add: assets for hard mode of GemsFarming

* Upd: asset FLEET_ENTER and FLEET_ENTER_FLAGSHIP

* Add: GemsFarming hard mode

* Fix: handle empty fleet in gemsfarming hard mode

* Add: check control method before equipment code usage

* Opt: use self.device.click for Hierarchy button in fastinput_ime_enable

* Chore: abstract set_fastinput_ime method for EquipmentCodeHandler

* Opt: use fleet1 emotion to represent attack fleet's emotion and hide fleet2 emotion

* Opt: use HardNotSatisfied to delay gemsfarming hard

* Opt: put emotion setting of gemsfarming to last
This commit is contained in:
guoh064
2026-07-09 00:43:24 +08:00
committed by GitHub
131 changed files with 1217 additions and 575 deletions

View File

@@ -4,7 +4,7 @@ from scipy import signal
from module.base.button import Button
from module.base.timer import Timer
from module.base.utils import *
from module.exception import RequestHumanTakeover
from module.exception import HardNotSatisfied
from module.handler.assets import AUTO_SEARCH_SET_MOB, AUTO_SEARCH_SET_BOSS, \
AUTO_SEARCH_SET_ALL, AUTO_SEARCH_SET_STANDBY, \
AUTO_SEARCH_SET_SUB_AUTO, AUTO_SEARCH_SET_SUB_STANDBY
@@ -127,7 +127,7 @@ class FleetOperator:
stage = self.main.config.Campaign_Name
logger.critical(f'Stage "{stage}" is a hard mode, '
f'please prepare your fleet "{str(self)}" in game before running Alas')
raise RequestHumanTakeover
raise HardNotSatisfied
def clear(self, skip_first_screenshot=True):
"""