mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-30 11:19:30 +00:00
59 lines
2.4 KiB
Python
59 lines
2.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_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 |
|
|
| 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 |
|
|
| exit1 | Waypoint((289.4, 173.4)), | 96.8 | 94 |
|
|
| exit2 | Waypoint((289.7, 183.6)), | 96.8 | 94 |
|
|
"""
|
|
self.map_init(plane=Herta_SupplyZone, floor="F2RogueX151Y245", position=(152.0, 245.4))
|
|
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)))
|
|
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))
|
|
node2 = Waypoint((221.1, 293.0))
|
|
node3 = Waypoint((222.8, 178.8))
|
|
enemy3 = Waypoint((283.3, 178.9))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# 1
|
|
self.clear_enemy(
|
|
node1,
|
|
node2.straight_run(),
|
|
)
|
|
self.clear_item(node2),
|
|
# 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,
|
|
)
|
|
self.clear_enemy(
|
|
node3.set_threshold(5),
|
|
enemy3.straight_run(),
|
|
)
|