1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-14 14:16:04 +08:00

Add: [CN] Spring Auction Adventure (raid_20260212)

This commit is contained in:
sui-feng-cb
2026-02-12 16:09:35 +08:00
parent fc0e4ce016
commit c4961c80eb
49 changed files with 726 additions and 696 deletions

View File

@@ -84,6 +84,8 @@ def raid_name_shorten(name):
return 'CHIENWU'
elif name == 'raid_20250327':
return 'HOSPITAL'
elif name == 'raid_20260212':
return 'CHANGWU'
else:
raise ScriptError(f'Unknown raid name: {name}')
@@ -159,6 +161,11 @@ def raid_ocr(raid, mode):
return Digit(button, letter=(247, 223, 222), threshold=128)
else:
return DigitCounter(button, letter=(0, 0, 0), threshold=128)
elif raid == 'CHANGWU':
if mode == 'ex':
return Digit(button, letter=(255, 239, 215), threshold=128)
else:
return DigitCounter(button, letter=(154, 148, 133), threshold=128)
def pt_ocr(raid):
@@ -188,8 +195,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)
elif raid == 'CHANGWU':
return Digit(button, letter=(255, 239, 215), threshold=128)
class Raid(MapOperation, RaidCombat, CampaignEvent):
@@ -199,7 +206,10 @@ class Raid(MapOperation, RaidCombat, CampaignEvent):
Game devs are too asshole to drop oil display for UI design
https://github.com/LmeSzinc/AzurLaneAutoScript/issues/5214
"""
if self.config.Campaign_Event == 'raid_20240328':
if self.config.Campaign_Event in [
'raid_20240328',
'raid_20260212',
]:
return False
return True