Skip to content

Commit

Permalink
优化长离
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 23, 2024
1 parent 1c06af2 commit 6487c71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/char/Changli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def do_get_switch_priority(self, current_char: BaseChar, has_intro=False):

def do_perform(self):
if self.has_intro or self.enhanced_normal:
self.sleep(0.05)
self.normal_attack()
self.sleep(0.5)
self.continues_normal_attack(0.5)
self.enhanced_normal = False
if self.is_forte_full():
self.logger.debug('Changli click heavy attack without ult')
Expand Down
6 changes: 1 addition & 5 deletions src/char/Encore.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def still_in_liberation(self):
def do_perform(self):
target_low_con = False
if self.has_intro:
self.sleep(0.7)
self.continues_normal_attack(.7)
self.wait_down()
elif self.can_resonance_step2(4):
if self.click_resonance()[0]:
Expand All @@ -29,10 +29,6 @@ def do_perform(self):
self.logger.info(f'try Encore resonance_step2 wait_success:{wait_success}')

if self.still_in_liberation():
# if time.time() - self.liberation_time > 7.5 and self.is_forte_full():
# self.heavy_attack()
# self.last_heavy = time.time()
# else:
target_low_con = True
self.n4()
elif self.click_resonance()[0]:
Expand Down
4 changes: 2 additions & 2 deletions src/task/AutoPickTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def trigger(self):
f_search_box = self.get_box_by_name('pick_up_f')
f_search_box = f_search_box.copy(x_offset=-f_search_box.width / 2,
width_offset=f_search_box.width,
height_offset=f_search_box.height * 4,
y_offset=-f_search_box.height / 2,
height_offset=f_search_box.height * 9,
y_offset=-f_search_box.height * 5,
name='search_dialog')
if f := self.find_one('pick_up_f', box=f_search_box,
threshold=0.8):
Expand Down

0 comments on commit 6487c71

Please sign in to comment.