mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 01:49:41 +00:00
238 lines
11 KiB
Python
238 lines
11 KiB
Python
from tasks.map.control.waypoint import Waypoint
|
|
from tasks.map.keywords.plane import Jarilo_RivetTown
|
|
from tasks.rogue.route.base import RouteBase
|
|
|
|
|
|
class Route(RouteBase):
|
|
|
|
def Jarilo_RivetTown_F1_X181Y439(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| ------------ | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((181.4, 439.2)), | 274.2 | 274 |
|
|
| item1 | Waypoint((168.6, 430.8)), | 311.8 | 308 |
|
|
| enemy1middle | Waypoint((128.4, 440.0)), | 275.8 | 82 |
|
|
| node2 | Waypoint((126.2, 425.6)), | 188.9 | 4 |
|
|
| item2 | Waypoint((130.4, 394.2)), | 12.7 | 6 |
|
|
| enemy2 | Waypoint((118.4, 380.7)), | 61.1 | 308 |
|
|
| node3 | Waypoint((100.8, 364.4)), | 315.9 | 311 |
|
|
| item3 | Waypoint((80.2, 356.3)), | 311.8 | 306 |
|
|
| enemy3 | Waypoint((58.4, 334.2)), | 318.8 | 322 |
|
|
| exit_ | Waypoint((56.8, 332.4)), | 333.0 | 329 |
|
|
| exit1 | Waypoint((49.9, 330.4)), | 327.8 | 322 |
|
|
| exit2 | Waypoint((58.3, 324.4)), | 350.4 | 350 |
|
|
"""
|
|
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(181.4, 439.2))
|
|
self.register_domain_exit(
|
|
Waypoint((56.8, 332.4)), end_rotation=329,
|
|
left_door=Waypoint((49.9, 330.4)), right_door=Waypoint((58.3, 324.4)))
|
|
item1 = Waypoint((168.6, 430.8))
|
|
enemy1middle = Waypoint((128.4, 440.0))
|
|
node2 = Waypoint((126.2, 425.6))
|
|
item2 = Waypoint((130.4, 394.2))
|
|
enemy2 = Waypoint((118.4, 380.7))
|
|
node3 = Waypoint((100.8, 364.4))
|
|
item3 = Waypoint((80.2, 356.3))
|
|
enemy3 = Waypoint((58.4, 334.2))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# 1
|
|
self.clear_item(item1)
|
|
self.clear_enemy(enemy1middle)
|
|
# 2, ignore item, too close to enemy
|
|
# self.clear_item(
|
|
# node2,
|
|
# item2.straight_run(),
|
|
# )
|
|
self.clear_enemy(
|
|
node2,
|
|
enemy2.straight_run()
|
|
)
|
|
# 3
|
|
self.clear_enemy(
|
|
node3.set_threshold(5).straight_run(),
|
|
enemy3.straight_run(),
|
|
)
|
|
|
|
def Jarilo_RivetTown_F1_X205Y439(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((205.4, 439.5)), | 274.2 | 274 |
|
|
| item | Waypoint((168.6, 430.8)), | 311.8 | 308 |
|
|
| enemy | Waypoint((137.0, 438.1)), | 96.7 | 274 |
|
|
| exit_ | Waypoint((137.0, 438.1)), | 96.7 | 274 |
|
|
| exit1 | Waypoint((129.1, 446.0)), | 272.7 | 269 |
|
|
| exit2 | Waypoint((129.4, 430.2)), | 272.8 | 276 |
|
|
"""
|
|
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(205.4, 439.5))
|
|
self.register_domain_exit(
|
|
Waypoint((137.0, 438.1)), end_rotation=274,
|
|
left_door=Waypoint((129.1, 446.0)), right_door=Waypoint((129.4, 430.2)))
|
|
item = Waypoint((168.6, 430.8))
|
|
enemy = Waypoint((137.0, 438.1))
|
|
# ===== End of generated waypoints =====
|
|
|
|
self.minimap.init_position(item.position, locked=True)
|
|
self.clear_item(item)
|
|
self.clear_enemy(enemy)
|
|
|
|
def Jarilo_RivetTown_F1_X209Y333(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((209.4, 333.5)), | 190.1 | 181 |
|
|
| item | Waypoint((222.6, 371.5)), | 166.7 | 165 |
|
|
| enemy | Waypoint((206.2, 387.8)), | 190.1 | 191 |
|
|
| exit_ | Waypoint((209.2, 392.8)), | 189.0 | 184 |
|
|
| exit1 | Waypoint((217.5, 403.4)), | 180.0 | 181 |
|
|
| exit2 | Waypoint((201.6, 401.5)), | 180.0 | 181 |
|
|
"""
|
|
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(209.4, 333.5))
|
|
self.register_domain_exit(
|
|
Waypoint((209.2, 392.8)), end_rotation=184,
|
|
left_door=Waypoint((217.5, 403.4)), right_door=Waypoint((201.6, 401.5)))
|
|
item = Waypoint((222.6, 371.5))
|
|
enemy = Waypoint((206.2, 387.8))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# Ignore item, too close to enemy
|
|
# self.clear_item(item)
|
|
self.clear_enemy(enemy)
|
|
|
|
def Jarilo_RivetTown_F1_X231Y211(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| ------------ | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((231.4, 211.1)), | 30.1 | 27 |
|
|
| item1 | Waypoint((236.7, 180.5)), | 25.6 | 22 |
|
|
| node2 | Waypoint((256.9, 180.9)), | 182.9 | 84 |
|
|
| enemy1 | Waypoint((256.6, 169.0)), | 36.3 | 211 |
|
|
| item2 | Waypoint((280.5, 188.5)), | 114.2 | 110 |
|
|
| enemy2middle | Waypoint((290.0, 174.6)), | 92.7 | 84 |
|
|
| enemy3 | Waypoint((319.6, 153.1)), | 76.4 | 73 |
|
|
| exit_ | Waypoint((317.4, 155.3)), | 60.9 | 73 |
|
|
| exit1 | Waypoint((326.6, 145.2)), | 75.0 | 66 |
|
|
| exit2 | Waypoint((331.2, 157.6)), | 87.7 | 78 |
|
|
"""
|
|
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(231.4, 211.1))
|
|
self.register_domain_exit(
|
|
Waypoint((317.4, 155.3)), end_rotation=73,
|
|
left_door=Waypoint((326.6, 145.2)), right_door=Waypoint((331.2, 157.6)))
|
|
item1 = Waypoint((236.7, 180.5))
|
|
node2 = Waypoint((256.9, 180.9))
|
|
enemy1 = Waypoint((256.6, 169.0))
|
|
item2 = Waypoint((280.5, 188.5))
|
|
enemy2middle = Waypoint((290.0, 174.6))
|
|
enemy3 = Waypoint((319.6, 153.1))
|
|
# ===== End of generated waypoints =====
|
|
|
|
self.rotation_set(73)
|
|
# Ignore all items, road blocked
|
|
self.clear_enemy(enemy1)
|
|
self.clear_enemy(
|
|
node2.set_threshold(3),
|
|
enemy2middle
|
|
)
|
|
self.clear_enemy(enemy3)
|
|
|
|
def Jarilo_RivetTown_F1_X279Y301(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((279.4, 301.6)), | 36.1 | 31 |
|
|
| item | Waypoint((302.6, 270.6)), | 59.1 | 54 |
|
|
| enemy | Waypoint((298.2, 246.0)), | 36.2 | 36 |
|
|
| exit_ | Waypoint((298.2, 246.0)), | 36.2 | 36 |
|
|
| exit1 | Waypoint((295.5, 239.4)), | 36.2 | 31 |
|
|
| exit2 | Waypoint((305.2, 244.8)), | 36.2 | 31 |
|
|
"""
|
|
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(279.4, 301.6))
|
|
self.register_domain_exit(
|
|
Waypoint((298.2, 246.0)), end_rotation=36,
|
|
left_door=Waypoint((295.5, 239.4)), right_door=Waypoint((305.2, 244.8)))
|
|
item = Waypoint((302.6, 270.6))
|
|
enemy = Waypoint((298.2, 246.0))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# Ignore item
|
|
# self.clear_item(item)
|
|
self.clear_enemy(enemy)
|
|
|
|
def Jarilo_RivetTown_F1_X293Y243(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| ----------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((293.6, 243.5)), | 182.9 | 177 |
|
|
| item1 | Waypoint((302.5, 261.5)), | 175.8 | 168 |
|
|
| enemy1right | Waypoint((290.0, 276.0)), | 198.7 | 195 |
|
|
| enemy1left | Waypoint((310.1, 281.1)), | 105.5 | 101 |
|
|
| item2 | Waypoint((326.2, 298.0)), | 151.8 | 140 |
|
|
| enemy2 | Waypoint((318.6, 334.8)), | 195.2 | 6 |
|
|
| item3 | Waypoint((314.2, 366.5)), | 216.4 | 214 |
|
|
| enemy3 | Waypoint((316.4, 385.0)), | 223.8 | 45 |
|
|
| exit_ | Waypoint((314.6, 385.0)), | 289.0 | 188 |
|
|
| exit1 | Waypoint((320.0, 392.8)), | 179.5 | 170 |
|
|
| exit2 | Waypoint((306.2, 390.8)), | 198.5 | 188 |
|
|
"""
|
|
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(293.6, 243.5))
|
|
self.register_domain_exit(
|
|
Waypoint((314.6, 385.0)), end_rotation=188,
|
|
left_door=Waypoint((320.0, 392.8)), right_door=Waypoint((306.2, 390.8)))
|
|
item1 = Waypoint((302.5, 261.5))
|
|
enemy1right = Waypoint((290.0, 276.0))
|
|
enemy1left = Waypoint((310.1, 281.1))
|
|
item2 = Waypoint((326.2, 298.0))
|
|
enemy2 = Waypoint((318.6, 334.8))
|
|
item3 = Waypoint((314.2, 366.5))
|
|
enemy3 = Waypoint((316.4, 385.0))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# 1, ignore item1
|
|
# watch left
|
|
self.rotation_set(165)
|
|
self.clear_enemy(
|
|
enemy1right,
|
|
enemy1left,
|
|
)
|
|
# 2
|
|
self.clear_item(
|
|
item2
|
|
)
|
|
self.clear_enemy(
|
|
enemy2.straight_run(),
|
|
)
|
|
# 3
|
|
self.clear_enemy(
|
|
enemy3,
|
|
)
|
|
|
|
def Jarilo_RivetTown_F1_X323Y151(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((323.4, 151.5)), | 257.0 | 253 |
|
|
| item1 | Waypoint((298.4, 150.8)), | 282.7 | 278 |
|
|
| enemy1 | Waypoint((260.2, 184.6)), | 241.2 | 239 |
|
|
| item2 | Waypoint((240.4, 178.8)), | 276.0 | 274 |
|
|
| enemy2 | Waypoint((234.6, 204.8)), | 315.9 | 209 |
|
|
| exit_ | Waypoint((234.6, 204.8)), | 315.9 | 209 |
|
|
| exit1 | Waypoint((237.5, 216.3)), | 216.3 | 211 |
|
|
| exit2 | Waypoint((225.8, 210.0)), | 215.8 | 211 |
|
|
"""
|
|
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(323.4, 151.5))
|
|
self.register_domain_exit(
|
|
Waypoint((234.6, 204.8)), end_rotation=209,
|
|
left_door=Waypoint((237.5, 216.3)), right_door=Waypoint((225.8, 210.0)))
|
|
item1 = Waypoint((298.4, 150.8))
|
|
enemy1 = Waypoint((260.2, 184.6))
|
|
item2 = Waypoint((240.4, 178.8))
|
|
enemy2 = Waypoint((234.6, 204.8))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# Ignore item
|
|
# self.clear_item(item1)
|
|
self.clear_enemy(enemy1)
|
|
# Ignore item2, position blocked
|
|
self.clear_enemy(enemy2.straight_run())
|