-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemtem_utils.py
More file actions
135 lines (105 loc) · 3.44 KB
/
Copy pathtemtem_utils.py
File metadata and controls
135 lines (105 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
from config_utils import *
import temtem_detector
import temtem_clicker
import temtem_action
def weekly_release() -> None:
'''
Release the Hazrat in Braeside Castle weekly.
Need Oceara, Momo, Barnshe in bag slot 1,2,3.
if there is no temcard in the bag, it will use one smoke_bomb to buy.
'''
turn_cnt=1
flag_temcard=False
global cnt_c
temtem_detector.animation()
if temtem_detector.luma_detector():
temtem_action.leave_game()
return False
while 1:
send_message(f"第{turn_cnt}回合開始",f"{turn_cnt}th turn start")
if turn_cnt==1:
temtem_clicker.tech_clicker()
temtem_action.switch_tem(2)
elif turn_cnt==2:
temtem_clicker.pic_Clicker(rest)
temtem_clicker.tech_clicker()
elif turn_cnt==3:
flag_temcard=temtem_action.catch()
flag_temcard=temtem_action.catch()
if not flag_temcard:
cnt_c=cnt_c+temtem_detector.catch_animation()
else:
temtem_clicker.pic_Clicker(run)
temtem_clicker.pic_Clicker(run)
if temtem_detector.animation():
send_message(f"第{turn_cnt}回合結束",f"{turn_cnt}th turn end")
turn_cnt=turn_cnt+1
else:
send_message(f"目前捕捉了{cnt_c}隻",f"Catch {cnt_c} temtem in total")
break
temtem_action.use_healcan()
if flag_temcard:
temtem_action.buy_temcard()
return True
if cnt_c<200:
return True
else:
return False
def luma_finding() -> None:
temtem_detector.animation()
if temtem_detector.luma_detector():
temtem_action.leave_game()
return False
else:
temtem_clicker.pic_Clicker(run)
temtem_clicker.pic_Clicker(run)
temtem_detector.animation()
return True
def exp_training() -> None:
temtem_detector.animation()
turn_cnt=1
if temtem_detector.luma_detector():
temtem_action.leave_game()
return False
while 1:
if turn_cnt==1:
if temtem_clicker.tem_detector(top):
temtem_clicker.tech_clicker(1,down,False)
temtem_action.switch_tem(-1)
else:
temtem_clicker.tech_clicker()
temtem_clicker.pic_Clicker(rest)
else:
temtem_clicker.pic_Clicker(run)
temtem_clicker.pic_Clicker(run)
if temtem_detector.animation():
turn_cnt=turn_cnt+1
else:
break
if not temtem_action.use_healcan():
temtem_action.heal_exp()
return True
def radar():
turn_cnt=1
temtem_detector.animation()
if temtem_detector.luma_detector():
temtem_action.leave_game()
return False
while 1:
send_message(f"第{turn_cnt}回合開始",f"{turn_cnt}th turn start")
if turn_cnt==1:
temtem_clicker.tech_clicker()
temtem_clicker.tech_clicker()
else:
temtem_clicker.tech_clicker()
temtem_clicker.tech_clicker()
if temtem_detector.animation():
send_message(f"第{turn_cnt}回合結束",f"{turn_cnt}th turn end")
turn_cnt=turn_cnt+1
else:
break
if not temtem_detector.radar_detector():
temtem_action.open_radar()
temtem_action.use_healcan()
pyautogui.click(10,10)
return True