Add: Do map interacts in dialogue clicker

This commit is contained in:
LmeSzinc 2024-01-07 10:44:20 +08:00
parent 9cf5515fb9
commit 6fe869702b
5 changed files with 39 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -23,6 +23,36 @@ CHAT_OPTION = ButtonWrapper(
button=(649, 496, 1129, 525),
),
)
INTERACT_COLLECT = ButtonWrapper(
name='INTERACT_COLLECT',
share=Button(
file='./assets/share/base/daemon/INTERACT_COLLECT.png',
area=(754, 423, 772, 441),
search=(734, 403, 792, 461),
color=(154, 166, 170),
button=(754, 423, 772, 441),
),
)
INTERACT_INVESTIGATE = ButtonWrapper(
name='INTERACT_INVESTIGATE',
share=Button(
file='./assets/share/base/daemon/INTERACT_INVESTIGATE.png',
area=(754, 419, 774, 439),
search=(734, 399, 794, 459),
color=(127, 129, 131),
button=(754, 419, 774, 439),
),
)
INTERACT_TREASURE = ButtonWrapper(
name='INTERACT_TREASURE',
share=Button(
file='./assets/share/base/daemon/INTERACT_TREASURE.png',
area=(753, 420, 781, 440),
search=(733, 400, 801, 460),
color=(193, 194, 195),
button=(753, 420, 781, 440),
),
)
STORY_NEXT = ButtonWrapper(
name='STORY_NEXT',
share=Button(

View File

@ -27,8 +27,17 @@ class Daemon(RouteBase):
# Story
if self.appear_then_click(STORY_NEXT, interval=0.7):
self.interval_reset(STORY_OPTION)
self.interval_reset(INTERACT_INVESTIGATE)
continue
if self.appear_then_click(STORY_OPTION, interval=1):
self.interval_reset(INTERACT_INVESTIGATE)
continue
# Map interact
if self.appear_then_click(INTERACT_TREASURE, interval=1):
continue
if self.appear_then_click(INTERACT_INVESTIGATE, interval=2):
continue
if self.appear_then_click(INTERACT_COLLECT, interval=1):
continue
# Story teleport
if self.appear_then_click(TELEPORT_RIGHT, interval=3):