mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-21 16:28:17 +00:00
Fix: Homecoming account has a total of 42 doubled calyx
This commit is contained in:
parent
8d9e39fe5b
commit
431bd01f52
@ -86,7 +86,8 @@ class DungeonEvent(UI):
|
||||
# 3 is double relic
|
||||
# 12 is double calyx
|
||||
# 6 is double calyx on beginner account
|
||||
if total not in [3, 6, 12]:
|
||||
# 42 is double calyx on homecoming account
|
||||
if total not in [3, 6, 12, 42]:
|
||||
logger.warning(f'Invalid double event remain')
|
||||
remain = 0
|
||||
return remain
|
||||
@ -123,7 +124,7 @@ class DungeonEvent(UI):
|
||||
if not ocr.is_format_matched(row.ocr_text):
|
||||
continue
|
||||
remain, _, total = ocr.format_result(row.ocr_text)
|
||||
if total in [3, 6, 12]:
|
||||
if total in [3, 6, 12, 42]:
|
||||
logger.attr('Double event remain at combat', remain)
|
||||
return remain
|
||||
logger.warning('Double event appears but failed to get remain')
|
||||
|
Loading…
Reference in New Issue
Block a user