mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Allow a total of 6 double calyx
This commit is contained in:
parent
4f1da32256
commit
1b1b72c208
@ -83,7 +83,10 @@ class DungeonEvent(UI):
|
||||
def _get_double_event_remain(self, button) -> int:
|
||||
ocr = DoubleEventOcr(button)
|
||||
remain, _, total = ocr.ocr_single_line(self.device.image)
|
||||
if total not in [3, 12]:
|
||||
# 3 is double relic
|
||||
# 12 is double calyx
|
||||
# 6 is double calyx on beginner account
|
||||
if total not in [3, 6, 12]:
|
||||
logger.warning(f'Invalid double event remain')
|
||||
remain = 0
|
||||
return remain
|
||||
|
Loading…
Reference in New Issue
Block a user