Skip to content

Conversation

@JerryLingjieMei
Copy link
Contributor

#345 Add use of technique points for ranged characters with background skill like ruan mei in rogue mode. When in boss domain, the characters will deplete all technique points using background skills.

Comment on lines 75 to 87
def use_background_technique_deplete(self):
character_switch = CharacterSwitch(self.config, self.device)
character_switch.character_update()
last_character = character_switch.character_current
characters = [c for c in LIST_BACKGROUND_TECHNIQUE if c in character_switch.characters]
remains = self.map_get_technique_points()
for i, c in enumerate(characters[:remains]):
if i > 0:
character_switch.character_update()
character_switch.character_switch(c)
self.device.screenshot()
self.use_technique_(1, limit=.2, n=1)
character_switch.character_switch(last_character)
Copy link
Owner

@LmeSzinc LmeSzinc Mar 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. character_update() was already called in character_switch_to_ranged(), reuse self.characters
  2. In continuous flows, there should'nt be self.device.screenshot() calls, each method should reuse the last screenshot
  3. Character priority is still required when emptying techniques

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The character priority is implied in Line 79.

Comment on lines 11 to 13
def _use_technique(self, count: int, skip_first_screenshot=True):
def use_technique_(self, count: int, skip_first_screenshot=True, limit=.5, n=2):
Copy link
Owner

@LmeSzinc LmeSzinc Mar 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no confirm timer if count==1, don't expose it

@LmeSzinc LmeSzinc added feature request / 功能请求 New feature or requests good first issue / 首次贡献 Good for newcomers labels Mar 5, 2024
@JerryLingjieMei
Copy link
Contributor Author

Ready to merge.

@niizam
Copy link

niizam commented Apr 18, 2024

Any update for Acheron (黄泉) please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants