@@ -26,7 +26,7 @@ def __init__(self, *args, **kwargs):
26
26
}
27
27
self .default_config = default_config
28
28
self .door_walk_method = { # starts with 0
29
- 0 :[],
29
+ 0 : [],
30
30
1 : [["a" , 0.3 ]],
31
31
2 : [["d" , 0.6 ]],
32
32
3 : [["a" , 1.5 ], ["w" , 3 ], ["a" , 2.5 ]],
@@ -70,7 +70,8 @@ def farm_tacet(self):
70
70
self .info_set ('used stamina' , total_used )
71
71
if not used :
72
72
return self .not_enough_stamina ()
73
- self .wait_click_ocr (0.2 , 0.56 , 0.75 , 0.69 , match = [str (used ), '确认' , 'Confirm' ], raise_if_not_found = True , log = True )
73
+ self .wait_click_ocr (0.2 , 0.56 , 0.75 , 0.69 , match = [str (used ), '确认' , 'Confirm' ], raise_if_not_found = True ,
74
+ log = True )
74
75
self .sleep (4 )
75
76
self .click (0.51 , 0.84 , after_sleep = 2 )
76
77
if remaining_total < 60 :
@@ -79,7 +80,7 @@ def farm_tacet(self):
79
80
return self .not_enough_stamina (back = True )
80
81
81
82
def not_enough_stamina (self , back = True ):
82
- self .log_info (f"used all stamina" , notify = True )
83
+ self .log_info (f"used all stamina" )
83
84
if back :
84
85
self .back (after_sleep = 1 )
85
86
@@ -88,9 +89,9 @@ def teleport_to_tacet(self, index):
88
89
if index >= self .total_number :
89
90
raise IndexError (f'Index out of range, max is { self .total_number } ' )
90
91
if index >= self .row_per_page :
91
- if index >= self .row_per_page * 2 : # page 3
92
+ if index >= self .row_per_page * 2 : # page 3
92
93
self .click_relative (0.98 , 0.86 )
93
- index -= self .row_per_page + 1 # only 1 in last page
94
+ index -= self .row_per_page + 1 # only 1 in last page
94
95
else :
95
96
index -= self .row_per_page
96
97
self .click_relative (0.98 , 0.8 )
@@ -101,6 +102,7 @@ def teleport_to_tacet(self, index):
101
102
y += height * index
102
103
self .click_relative (x , y , after_sleep = 2 )
103
104
105
+
104
106
echo_color = {
105
107
'r' : (200 , 255 ), # Red range
106
108
'g' : (150 , 220 ), # Green range
0 commit comments