-
Notifications
You must be signed in to change notification settings - Fork 229
Add technique usage for rogue / simulated universe #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…ing consistent OCR results for buttons.
…re allowing consistent OCR results for buttons." This reverts commit 5afa62b.
| 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- character_update() was already called in character_switch_to_ranged(), reuse
self.characters - In continuous flows, there should'nt be
self.device.screenshot()calls, each method should reuse the last screenshot - Character priority is still required when emptying techniques
There was a problem hiding this comment.
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.
tasks/daily/use_technique.py
Outdated
| def _use_technique(self, count: int, skip_first_screenshot=True): | ||
| def use_technique_(self, count: int, skip_first_screenshot=True, limit=.5, n=2): |
There was a problem hiding this comment.
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
|
Ready to merge. |
|
Any update for Acheron (黄泉) please? |
#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.