mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Add: task HospitalEvent to scheduler
This commit is contained in:
@@ -6,6 +6,7 @@ from module.base.decorator import run_once
|
||||
from module.base.timer import Timer
|
||||
from module.campaign.campaign_event import CampaignEvent
|
||||
from module.combat.assets import *
|
||||
from module.event_hospital.assets import *
|
||||
from module.exception import OilExhausted, ScriptError
|
||||
from module.logger import logger
|
||||
from module.map.map_operation import MapOperation
|
||||
@@ -83,6 +84,8 @@ def raid_name_shorten(name):
|
||||
return "RPG"
|
||||
elif name == 'raid_20250116':
|
||||
return 'CHIENWU'
|
||||
elif name == 'raid_20250327':
|
||||
return 'HOSPITAL'
|
||||
else:
|
||||
raise ScriptError(f'Unknown raid name: {name}')
|
||||
|
||||
@@ -187,6 +190,8 @@ def pt_ocr(raid):
|
||||
return HuanChangPtOcr(button, letter=(23, 20, 6), threshold=128)
|
||||
elif raid == 'CHIENWU':
|
||||
return Digit(button, letter=(255, 231, 231), threshold=128)
|
||||
elif raid == 'HOSPITAL':
|
||||
return Digit(button, letter=(255, 251, 255), threshold=128)
|
||||
|
||||
|
||||
class Raid(MapOperation, RaidCombat, CampaignEvent):
|
||||
|
||||
Reference in New Issue
Block a user