StarRailCopilot/route/rogue/Combat/Herta_SupplyZone_F2Rogue.py
2023-10-21 01:36:17 +08:00

75 lines
3.4 KiB
Python

from tasks.map.control.waypoint import Waypoint
from tasks.map.keywords.plane import Herta_SupplyZone
from tasks.rogue.route.base import RouteBase
class Route(RouteBase):
def Herta_SupplyZone_F2Rogue_X209Y112(self):
"""
| Waypoint | Position | Direction | Rotation |
| ------------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((209.6, 112.8)), | 96.7 | 91 |
| item_X227Y105 | Waypoint((227.4, 105.1)), | 67.2 | 61 |
| enemy | Waypoint((264.2, 114.1)), | 101.1 | 98 |
| exit_X227Y105 | Waypoint((266.7, 113.7)), | 60.8 | 91 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2Rogue", position=(209.6, 112.8))
self.register_domain_exit(Waypoint((266.7, 113.7)), end_rotation=91)
item_X227Y105 = Waypoint((227.4, 105.1))
enemy = Waypoint((264.2, 114.1))
# ===== End of generated waypoints =====
"""
Notes:
Herta_SupplyZone_F2Rogue_X219Y112 is the same as Herta_SupplyZone_F2Rogue_X209Y112 to handle detection errors
Don't change the following preset-position, leave as it is
- exit_X227Y105
- Herta_SupplyZone_F2Rogue_X219Y112
"""
self.clear_item(item_X227Y105)
self.clear_enemy(enemy)
def Herta_SupplyZone_F2Rogue_X215Y112(self):
"""
| Waypoint | Position | Direction | Rotation |
| ------------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((209.6, 112.8)), | 96.7 | 91 |
| item_X227Y105 | Waypoint((227.4, 105.1)), | 67.2 | 61 |
| enemy | Waypoint((264.2, 114.1)), | 101.1 | 98 |
| exit_X227Y105 | Waypoint((266.7, 113.7)), | 60.8 | 91 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2Rogue", position=(215.6, 112.8))
self.register_domain_exit(Waypoint((266.7, 113.7)), end_rotation=91)
item_X227Y105 = Waypoint((227.4, 105.1))
enemy = Waypoint((264.2, 114.1))
# ===== End of generated waypoints =====
"""
Notes:
Herta_SupplyZone_F2Rogue_X215Y112 is the same as Herta_SupplyZone_F2Rogue_X209Y112 to handle detection errors
Don't change the following preset-position, leave as it is
- exit_X227Y105
- Herta_SupplyZone_F2Rogue_X219Y112
"""
self.clear_item(item_X227Y105)
self.clear_enemy(enemy)
def Herta_SupplyZone_F2Rogue_X219Y112(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------------- | ------------------------- | --------- | -------- |
| spawn_X266Y112 | Waypoint((219.6, 112.8)), | 96.7 | 91 |
| item_X227Y105 | Waypoint((227.4, 105.1)), | 67.2 | 61 |
| enemy | Waypoint((264.2, 114.1)), | 101.1 | 98 |
| exit_X227Y105 | Waypoint((266.7, 113.7)), | 60.8 | 91 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2Rogue", position=(219.6, 112.8))
self.register_domain_exit(Waypoint((266.7, 113.7)), end_rotation=91)
item_X227Y105 = Waypoint((227.4, 105.1))
enemy = Waypoint((264.2, 114.1))
# ===== End of generated waypoints =====
self.clear_item(item_X227Y105)
self.clear_enemy(enemy)