Skip to content

Commit 9e04950

Browse files
committed
日常不再提示体力用尽
1 parent 14fcc51 commit 9e04950

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/task/TacetTask.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, *args, **kwargs):
2626
}
2727
self.default_config = default_config
2828
self.door_walk_method = { # starts with 0
29-
0:[],
29+
0: [],
3030
1: [["a", 0.3]],
3131
2: [["d", 0.6]],
3232
3: [["a", 1.5], ["w", 3], ["a", 2.5]],
@@ -70,7 +70,8 @@ def farm_tacet(self):
7070
self.info_set('used stamina', total_used)
7171
if not used:
7272
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)
7475
self.sleep(4)
7576
self.click(0.51, 0.84, after_sleep=2)
7677
if remaining_total < 60:
@@ -79,7 +80,7 @@ def farm_tacet(self):
7980
return self.not_enough_stamina(back=True)
8081

8182
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")
8384
if back:
8485
self.back(after_sleep=1)
8586

@@ -88,9 +89,9 @@ def teleport_to_tacet(self, index):
8889
if index >= self.total_number:
8990
raise IndexError(f'Index out of range, max is {self.total_number}')
9091
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
9293
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
9495
else:
9596
index -= self.row_per_page
9697
self.click_relative(0.98, 0.8)
@@ -101,6 +102,7 @@ def teleport_to_tacet(self, index):
101102
y += height * index
102103
self.click_relative(x, y, after_sleep=2)
103104

105+
104106
echo_color = {
105107
'r': (200, 255), # Red range
106108
'g': (150, 220), # Green range

0 commit comments

Comments
 (0)