1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 17:57:01 +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 7118c30fea
commit 7e6b87bee8
48 changed files with 102 additions and 70 deletions

View File

@@ -82,6 +82,8 @@ def raid_name_shorten(name):
return "RPG"
elif name == 'raid_20250116':
return 'CHIENWU'
elif name == 'raid_20260212':
return 'CHANGWU'
else:
raise ScriptError(f'Unknown raid name: {name}')
@@ -157,6 +159,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):
@@ -186,6 +193,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 == 'CHANGWU':
return Digit(button, letter=(255, 239, 215), threshold=128)
class Raid(MapOperation, RaidCombat, CampaignEvent):
@@ -195,7 +204,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