mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 16:40:28 +00:00
77 lines
3.4 KiB
Python
77 lines
3.4 KiB
Python
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):
|
|
|
|
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 |
|
|
| 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 |
|
|
"""
|
|
self.map_init(plane=Luofu_StargazerNavalia, floor="F2", position=(479.5, 187.5))
|
|
self.register_domain_exit(
|
|
Waypoint((619.5, 171.5)), end_rotation=6,
|
|
left_door=Waypoint((611.5, 161.1)), right_door=Waypoint((629.3, 161.0)))
|
|
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 =====
|
|
|
|
self.minimap.lock_rotation(90)
|
|
# self.clear_item(item1)
|
|
self.clear_enemy(enemy1)
|
|
# Go through enemy1 on the bridge
|
|
self.clear_enemy(
|
|
enemy1.set_threshold(3),
|
|
enemy2,
|
|
)
|
|
self.rotation_set(60)
|
|
self.minimap.lock_rotation(60)
|
|
self.clear_enemy(
|
|
node3,
|
|
enemy3,
|
|
)
|
|
|
|
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 |
|
|
| exit1 | Waypoint((480.2, 195.0)), | 281.9 | 274 |
|
|
| exit2 | Waypoint((481.2, 180.8)), | 282.0 | 274 |
|
|
"""
|
|
self.map_init(plane=Luofu_StargazerNavalia, floor="F2", position=(627.8, 179.5))
|
|
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)))
|
|
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)
|
|
# 2, ignore item2, bad way
|
|
self.clear_enemy(enemy2)
|