StarRailCopilot/route/rogue/Combat/Luofu_Cloudford_F2.py

73 lines
3.0 KiB
Python

from tasks.map.control.waypoint import Waypoint
from tasks.map.keywords.plane import Luofu_Cloudford
from tasks.rogue.route.base import RouteBase
class Route(RouteBase):
def Luofu_Cloudford_F2_X425Y111(self):
"""
| Waypoint | Position | Direction | Rotation |
| ---------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((425.4, 111.6)), | 190.1 | 184 |
| enemy1 | Waypoint((424.9, 203.0)), | 189.0 | 186 |
| node2left | Waypoint((426.1, 222.3)), | 193.1 | 184 |
| node2right | Waypoint((402.8, 252.8)), | 244.9 | 253 |
| enemy3 | Waypoint((320.2, 266.4)), | 282.6 | 274 |
| exit | Waypoint((320.2, 266.4)), | 282.6 | 274 |
"""
self.map_init(plane=Luofu_Cloudford, floor="F2", position=(425.4, 111.6))
self.register_domain_exit(Waypoint((320.2, 266.4)), end_rotation=274)
enemy1 = Waypoint((424.9, 203.0))
node2left = Waypoint((426.1, 222.3))
node2right = Waypoint((402.8, 252.8))
enemy3 = Waypoint((320.2, 266.4))
# ===== End of generated waypoints =====
self.clear_enemy(enemy1)
# Ignore enemy2
self.clear_enemy(
node2left,
node2right.straight_run(),
enemy3.straight_run(),
)
def Luofu_Cloudford_F2_X425Y171(self):
"""
| Waypoint | Position | Direction | Rotation |
| ----------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((425.5, 171.6)), | 190.1 | 184 |
| item1 | Waypoint((436.8, 203.6)), | 166.7 | 161 |
| item2 | Waypoint((407.1, 205.3)), | 181.3 | 177 |
| enemy2left | Waypoint((426.6, 252.0)), | 237.2 | 234 |
| enemy2right | Waypoint((407.2, 253.0)), | 311.8 | 274 |
| item3 | Waypoint((382.4, 275.3)), | 250.8 | 251 |
| enemy3 | Waypoint((318.8, 267.0)), | 279.8 | 281 |
| exit | Waypoint((324.8, 268.5)), | 283.0 | 278 |
"""
self.map_init(plane=Luofu_Cloudford, floor="F2", position=(425.5, 171.6))
self.register_domain_exit(Waypoint((324.8, 268.5)), end_rotation=278)
item1 = Waypoint((436.8, 203.6))
item2 = Waypoint((407.1, 205.3))
enemy2left = Waypoint((426.6, 252.0))
enemy2right = Waypoint((407.2, 253.0))
item3 = Waypoint((382.4, 275.3))
enemy3 = Waypoint((318.8, 267.0))
# ===== End of generated waypoints =====
# Items are randomly generated in 4 position, ignore all
# self.clear_item(item1)
# self.clear_item(item2)
# Look right
self.rotation_set(210)
self.clear_enemy(
enemy2left,
enemy2right.straight_run(),
)
# 3
# self.clear_item(item3.straight_run())
self.clear_enemy(
enemy3.straight_run()
)