mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: [CN] Handle curio fixed
TODO: [EN] Update CURIO_FIXED
This commit is contained in:
parent
b784c17ac0
commit
e0707b8286
BIN
assets/cn/rogue/ui/CURIO_FIXED.png
Normal file
BIN
assets/cn/rogue/ui/CURIO_FIXED.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.0 KiB |
@ -77,6 +77,17 @@ COSMIC_FRAGMENT = ButtonWrapper(
|
||||
button=(1146, 19, 1181, 55),
|
||||
),
|
||||
)
|
||||
CURIO_FIXED = ButtonWrapper(
|
||||
name='CURIO_FIXED',
|
||||
cn=Button(
|
||||
file='./assets/cn/rogue/ui/CURIO_FIXED.png',
|
||||
area=(558, 54, 626, 75),
|
||||
search=(538, 34, 646, 95),
|
||||
color=(126, 123, 122),
|
||||
button=(558, 54, 626, 75),
|
||||
),
|
||||
en=None,
|
||||
)
|
||||
CURIO_OBTAINED = ButtonWrapper(
|
||||
name='CURIO_OBTAINED',
|
||||
cn=[
|
||||
|
@ -80,4 +80,9 @@ class RogueUI(UI):
|
||||
logger.info(f'{CURIO_OBTAINED} -> {BLESSING_CONFIRM}')
|
||||
self.device.click(BLESSING_CONFIRM)
|
||||
return True
|
||||
# Fixed a curio from occurrence
|
||||
if self.appear(CURIO_FIXED, interval=2):
|
||||
logger.info(f'{CURIO_FIXED} -> {BLESSING_CONFIRM}')
|
||||
self.device.click(BLESSING_CONFIRM)
|
||||
return True
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user