StarRailCopilot/route/rogue/Combat/Herta_SupplyZone_F2RogueX151Y245.py

59 lines
2.4 KiB
Python
Raw Normal View History

2023-10-07 13:26:24 +00:00
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_F2RogueX151Y245_X151Y245(self):
"""
| Waypoint | Position | Direction | Rotation |
| ------------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((152.0, 245.4)), | 190.1 | 184 |
| node1 | Waypoint((156.1, 286.2)), | 166.8 | 163 |
| bridge_center | Waypoint((222.2, 246.8)), | 6.7 | 4 |
| enemy2 | Waypoint((222.0, 234.6)), | 11.2 | 184 |
| bridge1 | Waypoint((222.8, 284.9)), | 6.7 | 4 |
2023-11-17 16:21:23 +00:00
| node2 | Waypoint((221.1, 293.0)), | 107.4 | 110 |
| node3 | Waypoint((222.8, 178.8)), | 6.7 | 4 |
| enemy3 | Waypoint((283.3, 178.9)), | 2.7 | 89 |
| exit_ | Waypoint((283.3, 178.9)), | 2.7 | 89 |
2023-11-17 16:21:23 +00:00
| exit1 | Waypoint((289.4, 173.4)), | 96.8 | 94 |
| exit2 | Waypoint((289.7, 183.6)), | 96.8 | 94 |
2023-10-07 13:26:24 +00:00
"""
self.map_init(plane=Herta_SupplyZone, floor="F2RogueX151Y245", position=(152.0, 245.4))
2023-11-17 16:21:23 +00:00
self.register_domain_exit(
Waypoint((283.3, 178.9)), end_rotation=89,
left_door=Waypoint((289.4, 173.4)), right_door=Waypoint((289.7, 183.6)))
2023-10-07 13:26:24 +00:00
node1 = Waypoint((156.1, 286.2))
bridge_center = Waypoint((222.2, 246.8))
enemy2 = Waypoint((222.0, 234.6))
bridge1 = Waypoint((222.8, 284.9))
2023-11-17 16:21:23 +00:00
node2 = Waypoint((221.1, 293.0))
node3 = Waypoint((222.8, 178.8))
enemy3 = Waypoint((283.3, 178.9))
2023-10-07 13:26:24 +00:00
# ===== End of generated waypoints =====
# 1
self.clear_enemy(
node1,
node2.straight_run(),
2023-10-07 13:26:24 +00:00
)
self.clear_item(node2),
2023-10-07 13:26:24 +00:00
# 2 Go through bridge
self.rotation_set(0)
self.clear_enemy(
bridge1.set_threshold(5),
bridge_center.set_threshold(3),
enemy2,
)
# 3
self.clear_item(
bridge_center.set_threshold(3),
node3,
2023-10-07 13:26:24 +00:00
)
self.clear_enemy(
node3.set_threshold(5),
enemy3.straight_run(),
2023-10-07 13:26:24 +00:00
)