StarRailCopilot/route/rogue/Combat/Jarilo_RivetTown_F1.py

238 lines
11 KiB
Python
Raw Permalink Normal View History

2023-10-01 15:20:42 +00:00
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 |
2023-10-03 10:03:37 +00:00
| node2 | Waypoint((126.2, 425.6)), | 188.9 | 4 |
2023-10-01 15:20:42 +00:00
| item2 | Waypoint((130.4, 394.2)), | 12.7 | 6 |
| enemy2 | Waypoint((118.4, 380.7)), | 61.1 | 308 |
2023-11-14 17:37:18 +00:00
| node3 | Waypoint((100.8, 364.4)), | 315.9 | 311 |
| item3 | Waypoint((80.2, 356.3)), | 311.8 | 306 |
2023-10-01 15:20:42 +00:00
| enemy3 | Waypoint((58.4, 334.2)), | 318.8 | 322 |
| exit_ | Waypoint((56.8, 332.4)), | 333.0 | 329 |
2023-11-14 17:37:18 +00:00
| exit1 | Waypoint((49.9, 330.4)), | 327.8 | 322 |
| exit2 | Waypoint((58.3, 324.4)), | 350.4 | 350 |
2023-10-01 15:20:42 +00:00
"""
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(181.4, 439.2))
2023-11-14 17:37:18 +00:00
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)))
2023-10-01 15:20:42 +00:00
item1 = Waypoint((168.6, 430.8))
enemy1middle = Waypoint((128.4, 440.0))
2023-10-03 10:03:37 +00:00
node2 = Waypoint((126.2, 425.6))
2023-10-01 15:20:42 +00:00
item2 = Waypoint((130.4, 394.2))
enemy2 = Waypoint((118.4, 380.7))
2023-11-14 17:37:18 +00:00
node3 = Waypoint((100.8, 364.4))
item3 = Waypoint((80.2, 356.3))
2023-10-01 15:20:42 +00:00
enemy3 = Waypoint((58.4, 334.2))
# ===== End of generated waypoints =====
# 1
self.clear_item(item1)
self.clear_enemy(enemy1middle)
2023-10-07 13:26:24 +00:00
# 2, ignore item, too close to enemy
# self.clear_item(
# node2,
# item2.straight_run(),
# )
2023-10-01 15:20:42 +00:00
self.clear_enemy(
2023-10-07 13:26:24 +00:00
node2,
enemy2.straight_run()
2023-10-01 15:20:42 +00:00
)
# 3
2023-11-14 17:37:18 +00:00
self.clear_enemy(
node3.set_threshold(5).straight_run(),
enemy3.straight_run(),
)
2023-10-01 15:20:42 +00:00
2023-10-03 10:03:37 +00:00
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 |
2023-10-03 10:03:37 +00:00
"""
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)))
2023-10-03 10:03:37 +00:00
item = Waypoint((168.6, 430.8))
enemy = Waypoint((137.0, 438.1))
# ===== End of generated waypoints =====
2023-10-15 09:30:19 +00:00
self.minimap.init_position(item.position, locked=True)
2023-10-03 10:03:37 +00:00
self.clear_item(item)
self.clear_enemy(enemy)
2023-10-01 15:20:42 +00:00
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 |
2023-11-18 18:07:09 +00:00
| exit1 | Waypoint((217.5, 403.4)), | 180.0 | 181 |
| exit2 | Waypoint((201.6, 401.5)), | 180.0 | 181 |
2023-10-01 15:20:42 +00:00
"""
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(209.4, 333.5))
2023-11-18 18:07:09 +00:00
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)))
2023-10-01 15:20:42 +00:00
item = Waypoint((222.6, 371.5))
enemy = Waypoint((206.2, 387.8))
# ===== End of generated waypoints =====
2023-10-03 10:03:37 +00:00
# Ignore item, too close to enemy
# self.clear_item(item)
2023-10-01 15:20:42 +00:00
self.clear_enemy(enemy)
2023-10-04 03:15:14 +00:00
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 |
2023-11-26 16:58:58 +00:00
| exit1 | Waypoint((326.6, 145.2)), | 75.0 | 66 |
| exit2 | Waypoint((331.2, 157.6)), | 87.7 | 78 |
2023-10-04 03:15:14 +00:00
"""
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(231.4, 211.1))
2023-11-26 16:58:58 +00:00
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)))
2023-10-04 03:15:14 +00:00
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(
2023-10-04 21:09:50 +00:00
node2.set_threshold(3),
2023-10-04 03:15:14 +00:00
enemy2middle
)
self.clear_enemy(enemy3)
2023-10-01 15:20:42 +00:00
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 |
2023-11-18 18:07:09 +00:00
| exit1 | Waypoint((295.5, 239.4)), | 36.2 | 31 |
| exit2 | Waypoint((305.2, 244.8)), | 36.2 | 31 |
2023-10-01 15:20:42 +00:00
"""
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(279.4, 301.6))
2023-11-18 18:07:09 +00:00
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)))
2023-10-01 15:20:42 +00:00
item = Waypoint((302.6, 270.6))
enemy = Waypoint((298.2, 246.0))
# ===== End of generated waypoints =====
2023-10-07 13:26:24 +00:00
# Ignore item
# self.clear_item(item)
2023-10-01 15:20:42 +00:00
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 |
2023-10-01 15:20:42 +00:00
| 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 |
2023-10-02 09:19:21 +00:00
| enemy2 | Waypoint((318.6, 334.8)), | 195.2 | 6 |
2023-11-14 17:37:18 +00:00
| item3 | Waypoint((314.2, 366.5)), | 216.4 | 214 |
2023-10-01 15:20:42 +00:00
| enemy3 | Waypoint((316.4, 385.0)), | 223.8 | 45 |
| exit_ | Waypoint((314.6, 385.0)), | 289.0 | 188 |
2023-11-14 17:37:18 +00:00
| exit1 | Waypoint((320.0, 392.8)), | 179.5 | 170 |
| exit2 | Waypoint((306.2, 390.8)), | 198.5 | 188 |
2023-10-01 15:20:42 +00:00
"""
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(293.6, 243.5))
2023-11-14 17:37:18 +00:00
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))
2023-10-01 15:20:42 +00:00
enemy1right = Waypoint((290.0, 276.0))
enemy1left = Waypoint((310.1, 281.1))
item2 = Waypoint((326.2, 298.0))
2023-10-02 09:19:21 +00:00
enemy2 = Waypoint((318.6, 334.8))
2023-11-14 17:37:18 +00:00
item3 = Waypoint((314.2, 366.5))
2023-10-01 15:20:42 +00:00
enemy3 = Waypoint((316.4, 385.0))
# ===== End of generated waypoints =====
# 1, ignore item1
# watch left
2023-11-14 17:37:18 +00:00
self.rotation_set(165)
2023-10-01 15:20:42 +00:00
self.clear_enemy(
enemy1right,
enemy1left,
2023-10-01 15:20:42 +00:00
)
# 2
self.clear_item(
item2
2023-10-01 15:20:42 +00:00
)
2023-10-02 09:19:21 +00:00
self.clear_enemy(
enemy2.straight_run(),
)
2023-10-01 15:20:42 +00:00
# 3
self.clear_enemy(
enemy3,
)
2023-10-03 10:03:37 +00:00
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 |
2023-11-16 14:21:04 +00:00
| exit1 | Waypoint((237.5, 216.3)), | 216.3 | 211 |
| exit2 | Waypoint((225.8, 210.0)), | 215.8 | 211 |
2023-10-03 10:03:37 +00:00
"""
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(323.4, 151.5))
2023-11-16 14:21:04 +00:00
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)))
2023-10-03 10:03:37 +00:00
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 =====
2023-10-04 21:09:50 +00:00
# Ignore item
# self.clear_item(item1)
2023-10-03 10:03:37 +00:00
self.clear_enemy(enemy1)
# Ignore item2, position blocked
self.clear_enemy(enemy2.straight_run())