StarRailCopilot/route/rogue/Combat/Luofu_StargazerNavalia_F2.py

77 lines
3.4 KiB
Python
Raw Permalink Normal View History

2023-10-02 09:19:21 +00:00
from tasks.map.control.waypoint import Waypoint
from tasks.map.keywords.plane import Luofu_StargazerNavalia
from tasks.rogue.route.base import RouteBase
class Route(RouteBase):
2023-10-18 05:49:44 +00:00
def Luofu_StargazerNavalia_F2_X479Y187(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((479.5, 187.5)), | 94.3 | 94 |
| item1 | Waypoint((516.4, 194.2)), | 94.3 | 91 |
| enemy1 | Waypoint((538.2, 182.6)), | 94.5 | 94 |
| enemy2 | Waypoint((572.4, 180.2)), | 284.6 | 94 |
| node3 | Waypoint((618.0, 182.4)), | 274.2 | 105 |
| enemy3 | Waypoint((622.2, 170.0)), | 284.7 | 94 |
2023-11-26 13:48:24 +00:00
| exit_ | Waypoint((619.5, 171.5)), | 101.3 | 6 |
| exit1 | Waypoint((611.5, 161.1)), | 12.6 | 6 |
| exit2 | Waypoint((629.3, 161.0)), | 12.6 | 6 |
2023-10-18 05:49:44 +00:00
"""
self.map_init(plane=Luofu_StargazerNavalia, floor="F2", position=(479.5, 187.5))
2023-11-16 14:21:04 +00:00
self.register_domain_exit(
2023-11-26 13:48:24 +00:00
Waypoint((619.5, 171.5)), end_rotation=6,
left_door=Waypoint((611.5, 161.1)), right_door=Waypoint((629.3, 161.0)))
2023-10-18 05:49:44 +00:00
item1 = Waypoint((516.4, 194.2))
enemy1 = Waypoint((538.2, 182.6))
enemy2 = Waypoint((572.4, 180.2))
node3 = Waypoint((618.0, 182.4))
enemy3 = Waypoint((622.2, 170.0))
# ===== End of generated waypoints =====
2023-10-18 17:21:20 +00:00
self.minimap.lock_rotation(90)
# self.clear_item(item1)
2023-10-18 05:49:44 +00:00
self.clear_enemy(enemy1)
# Go through enemy1 on the bridge
self.clear_enemy(
enemy1.set_threshold(3),
enemy2,
)
self.rotation_set(60)
2023-11-26 13:48:24 +00:00
self.minimap.lock_rotation(60)
2023-10-18 05:49:44 +00:00
self.clear_enemy(
node3,
enemy3,
)
2023-10-02 09:19:21 +00:00
def Luofu_StargazerNavalia_F2_X627Y179(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((627.8, 179.5)), | 274.2 | 274 |
| item1 | Waypoint((574.0, 172.5)), | 303.8 | 304 |
| enemy1 | Waypoint((571.9, 180.5)), | 282.8 | 276 |
| item2 | Waypoint((504.8, 177.2)), | 283.0 | 278 |
| enemy2 | Waypoint((488.6, 188.2)), | 282.3 | 274 |
| exit_ | Waypoint((486.5, 189.4)), | 182.7 | 274 |
2023-11-16 17:32:32 +00:00
| exit1 | Waypoint((480.2, 195.0)), | 281.9 | 274 |
| exit2 | Waypoint((481.2, 180.8)), | 282.0 | 274 |
2023-10-02 09:19:21 +00:00
"""
self.map_init(plane=Luofu_StargazerNavalia, floor="F2", position=(627.8, 179.5))
2023-11-16 17:32:32 +00:00
self.register_domain_exit(
Waypoint((486.5, 189.4)), end_rotation=274,
left_door=Waypoint((480.2, 195.0)), right_door=Waypoint((481.2, 180.8)))
2023-10-02 09:19:21 +00:00
item1 = Waypoint((574.0, 172.5))
enemy1 = Waypoint((571.9, 180.5))
item2 = Waypoint((504.8, 177.2))
enemy2 = Waypoint((488.6, 188.2))
# ===== End of generated waypoints =====
# 1, enemy first
self.clear_enemy(enemy1)
# item1 is cleared on the way to enemy2, or will get stuck at corner
# self.clear_item(item1)
2023-10-02 09:19:21 +00:00
# 2, ignore item2, bad way
self.clear_enemy(enemy2)