This commit is contained in:
parent
dc02c9bcf9
commit
7c9a095fb0
1 changed files with 13 additions and 5 deletions
|
@ -249,12 +249,20 @@ class RecruitSolver(SceneGraphSolver):
|
|||
self.get_recruit_time("minute"),
|
||||
]
|
||||
|
||||
if now_time[1] != recruit_time[1]:
|
||||
self.choose_time(now_time[1], recruit_time[1], mode="minute")
|
||||
return
|
||||
if now_time != recruit_time:
|
||||
if recruit_time == [9, 0]:
|
||||
pos = self.get_pos(self.find("one_hour"), 0.2, 0.8)
|
||||
self.ctap(pos)
|
||||
elif recruit_time == [3, 50]:
|
||||
[self.tap_element("one_hour", 0.2, 0.2, 0.1) for _ in range(3)]
|
||||
[self.tap_element("one_hour", 0.5, 0.8, 0.1) for _ in range(1)]
|
||||
self.sleep(1)
|
||||
|
||||
if now_time[0] != recruit_time[0]:
|
||||
self.choose_time(now_time[0], recruit_time[0], mode="hour")
|
||||
if now_time not in [[9, 0], [3, 50], [1, 0]]:
|
||||
# 可能按错了,回到公招主界面重开
|
||||
del self.tags[self.recruit_index]
|
||||
del self.agent_choose[self.recruit_index]
|
||||
self.scene_graph_step(Scene.RECRUIT_MAIN)
|
||||
return
|
||||
|
||||
# # start recruit
|
||||
|
|
Loading…
Reference in a new issue