StarRailCopilot/tasks/rogue/rogue.py

24 lines
671 B
Python
Raw Normal View History

2023-10-17 18:30:15 +00:00
from tasks.rogue.entry.path import RoguePathHandler
from tasks.rogue.entry.reward import RogueRewardHandler
2023-10-14 16:32:40 +00:00
from tasks.rogue.route.loader import RouteLoader
2023-10-14 20:20:25 +00:00
class RogueHandler(RouteLoader, RogueRewardHandler, RoguePathHandler):
2023-10-14 16:32:40 +00:00
def rogue_once(self):
"""
Do a complete rogue run.
Pages:
in: page_rogue, is_page_rogue_main()
out: page_rogue, is_page_rogue_main()
"""
2023-10-14 20:20:25 +00:00
self.rogue_path_select(self.config.RoguePath_Path)
2023-10-14 16:32:40 +00:00
self.rogue_run()
self.rogue_reward_claim()
if __name__ == '__main__':
self = RogueHandler('src', task='Rogue')
self.device.screenshot()
self.rogue_once()