mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Handle curio obtained from occurrence
This commit is contained in:
parent
103f3b6fbe
commit
28a0d57950
BIN
assets/cn/rogue/ui/CURIO_OBTAINED.png
Normal file
BIN
assets/cn/rogue/ui/CURIO_OBTAINED.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.5 KiB |
BIN
assets/en/rogue/ui/CURIO_OBTAINED.png
Normal file
BIN
assets/en/rogue/ui/CURIO_OBTAINED.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
@ -77,6 +77,23 @@ COSMIC_FRAGMENT = ButtonWrapper(
|
|||||||
button=(1146, 19, 1181, 55),
|
button=(1146, 19, 1181, 55),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
CURIO_OBTAINED = ButtonWrapper(
|
||||||
|
name='CURIO_OBTAINED',
|
||||||
|
cn=Button(
|
||||||
|
file='./assets/cn/rogue/ui/CURIO_OBTAINED.png',
|
||||||
|
area=(643, 86, 708, 117),
|
||||||
|
search=(623, 66, 728, 137),
|
||||||
|
color=(125, 126, 134),
|
||||||
|
button=(643, 86, 708, 117),
|
||||||
|
),
|
||||||
|
en=Button(
|
||||||
|
file='./assets/en/rogue/ui/CURIO_OBTAINED.png',
|
||||||
|
area=(511, 88, 600, 116),
|
||||||
|
search=(491, 68, 620, 136),
|
||||||
|
color=(93, 95, 102),
|
||||||
|
button=(511, 88, 600, 116),
|
||||||
|
),
|
||||||
|
)
|
||||||
FLAG_UNRECORD = ButtonWrapper(
|
FLAG_UNRECORD = ButtonWrapper(
|
||||||
name='FLAG_UNRECORD',
|
name='FLAG_UNRECORD',
|
||||||
share=Button(
|
share=Button(
|
||||||
|
@ -75,4 +75,9 @@ class RogueUI(UI):
|
|||||||
logger.info(f'{BLESSING_LOST} -> {BLESSING_CONFIRM}')
|
logger.info(f'{BLESSING_LOST} -> {BLESSING_CONFIRM}')
|
||||||
self.device.click(BLESSING_CONFIRM)
|
self.device.click(BLESSING_CONFIRM)
|
||||||
return True
|
return True
|
||||||
|
# Obtain a curio from occurrence
|
||||||
|
if self.appear(CURIO_OBTAINED, interval=2):
|
||||||
|
logger.info(f'{CURIO_OBTAINED} -> {BLESSING_CONFIRM}')
|
||||||
|
self.device.click(BLESSING_CONFIRM)
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user