StarRailCopilot/route/rogue/Combat/Herta_StorageZone_F1.py

212 lines
9.3 KiB
Python
Raw Normal View History

2023-10-01 15:20:42 +00:00
from tasks.map.control.waypoint import Waypoint
from tasks.map.keywords.plane import Herta_StorageZone
from tasks.rogue.route.base import RouteBase
class Route(RouteBase):
def Herta_StorageZone_F1_X225Y258(self):
2023-10-04 21:09:50 +00:00
"""
2023-11-17 16:21:23 +00:00
| Waypoint | Position | Direction | Rotation |
| -------------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((225.8, 258.8)), | 96.7 | 91 |
| item1 | Waypoint((240.8, 270.0)), | 135.8 | 131 |
| enemy1 | Waypoint((270.6, 258.8)), | 76.4 | 73 |
| node2 | Waypoint((273.2, 269.2)), | 157.2 | 156 |
| node3 | Waypoint((284.6, 283.0)), | 157.2 | 154 |
| item3 | Waypoint((293.2, 288.6)), | 105.5 | 103 |
| node4 | Waypoint((307.2, 305.2)), | 126.2 | 124 |
| item5 | Waypoint((332.8, 304.8)), | 96.8 | 96 |
| node5 | Waypoint((336.2, 312.0)), | 102.9 | 98 |
| enemy5 | Waypoint((392.5, 312.4)), | 4.1 | 91 |
| exit_ | Waypoint((392.5, 312.4)), | 4.1 | 91 |
| exit1_X400Y318 | Waypoint((411.2, 301.8)), | 101.1 | 91 |
| exit2_X400Y318 | Waypoint((400.8, 318.9)), | 101.1 | 91 |
2023-10-04 21:09:50 +00:00
"""
self.map_init(plane=Herta_StorageZone, floor="F1", position=(225.8, 258.8))
2023-11-17 16:21:23 +00:00
self.register_domain_exit(
Waypoint((392.5, 312.4)), end_rotation=91,
left_door=Waypoint((411.2, 301.8)), right_door=Waypoint((400.8, 318.9)))
2023-10-04 21:09:50 +00:00
item1 = Waypoint((240.8, 270.0))
enemy1 = Waypoint((270.6, 258.8))
node2 = Waypoint((273.2, 269.2))
node3 = Waypoint((284.6, 283.0))
item3 = Waypoint((293.2, 288.6))
node4 = Waypoint((307.2, 305.2))
item5 = Waypoint((332.8, 304.8))
node5 = Waypoint((336.2, 312.0))
enemy5 = Waypoint((392.5, 312.4))
# ===== End of generated waypoints =====
2023-11-17 16:21:23 +00:00
self.register_domain_exit(
Waypoint((392.5, 312.4)), end_rotation=91,
2023-11-18 18:07:09 +00:00
left_door=Waypoint((406.2, 307.8)), right_door=Waypoint((406.8, 318.9)))
2023-10-04 21:09:50 +00:00
# 1
self.clear_item(item1.straight_run())
self.clear_enemy(enemy1.straight_run())
# 2
2023-12-09 16:40:09 +00:00
self.rotation_set(135)
2023-10-07 04:35:21 +00:00
self.clear_enemy(
2023-10-07 13:26:24 +00:00
enemy1,
node2.set_threshold(3),
2023-10-04 21:09:50 +00:00
node3,
2023-12-09 16:40:09 +00:00
node4,
2023-10-04 21:09:50 +00:00
)
# 5
self.clear_enemy(
node5.straight_run(),
enemy5.straight_run(),
)
2023-10-01 15:20:42 +00:00
def Herta_StorageZone_F1_X257Y85(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------ | --------- | -------- |
| spawn | Waypoint((257.3, 85.5)), | 308.0 | 304 |
| item | Waypoint((244.2, 66.3)), | 334.7 | 331 |
| door | Waypoint((215.4, 65.1)), | 303.8 | 301 |
| enemy | Waypoint((202.7, 57.9)), | 297.8 | 294 |
| exit_ | Waypoint((202.4, 58.1)), | 302.9 | 301 |
2023-11-26 13:48:24 +00:00
| exit1 | Waypoint((195.0, 61.2)), | 306.4 | 304 |
| exit2 | Waypoint((199.4, 49.4)), | 306.4 | 304 |
2023-10-01 15:20:42 +00:00
"""
self.map_init(plane=Herta_StorageZone, floor="F1", position=(257.3, 85.5))
2023-11-26 13:48:24 +00:00
self.register_domain_exit(
Waypoint((202.4, 58.1)), end_rotation=301,
left_door=Waypoint((195.0, 61.2)), right_door=Waypoint((199.4, 49.4)))
2023-10-01 15:20:42 +00:00
item = Waypoint((244.2, 66.3))
door = Waypoint((215.4, 65.1))
enemy = Waypoint((202.7, 57.9))
# ===== End of generated waypoints =====
self.clear_item(item)
self.clear_enemy(door, enemy)
2023-10-03 10:03:37 +00:00
def Herta_StorageZone_F1_X273Y92(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------ | --------- | -------- |
| spawn | Waypoint((273.4, 92.2)), | 308.0 | 304 |
| item | Waypoint((248.4, 59.4)), | 334.8 | 331 |
| enemy | Waypoint((227.8, 69.5)), | 30.2 | 299 |
| exit_ | Waypoint((227.8, 69.5)), | 30.2 | 299 |
2023-11-18 18:07:09 +00:00
| exit1 | Waypoint((216.0, 74.4)), | 302.9 | 304 |
| exit2 | Waypoint((224.9, 59.4)), | 306.3 | 306 |
2023-10-03 10:03:37 +00:00
"""
self.map_init(plane=Herta_StorageZone, floor="F1", position=(273.4, 92.2))
2023-11-18 18:07:09 +00:00
self.register_domain_exit(
Waypoint((227.8, 69.5)), end_rotation=299,
left_door=Waypoint((216.0, 74.4)), right_door=Waypoint((224.9, 59.4)))
2023-10-03 10:03:37 +00:00
item = Waypoint((248.4, 59.4))
enemy = Waypoint((227.8, 69.5))
2023-10-03 10:03:37 +00:00
# ===== End of generated waypoints =====
# Ignore item, bad way
self.clear_enemy(enemy)
2023-10-03 10:03:37 +00:00
2023-10-01 15:20:42 +00:00
def Herta_StorageZone_F1_X692Y61(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((692.0, 62.0)), | 263.8 | 260 |
| item1 | Waypoint((676.1, 98.5)), | 222.6 | 218 |
| enemy2 | Waypoint((649.3, 68.7)), | 354.1 | 350 |
2023-10-03 10:03:37 +00:00
| enemy1 | Waypoint((654.7, 84.5)), | 282.9 | 288 |
2023-10-01 15:20:42 +00:00
| item2 | Waypoint((642.2, 66.1)), | 290.2 | 285 |
2023-11-14 17:37:18 +00:00
| door | Waypoint((636.8, 81.9)), | 263.8 | 262 |
2023-10-01 15:20:42 +00:00
| node | Waypoint((599.2, 91.0)), | 256.7 | 255 |
2023-11-14 17:37:18 +00:00
| item3 | Waypoint((588.6, 102.2)), | 245.0 | 246 |
2023-10-01 15:20:42 +00:00
| enemy3 | Waypoint((598.3, 129.1)), | 181.3 | 174 |
| exit_ | Waypoint((598.3, 129.1)), | 181.3 | 174 |
2023-11-17 16:21:23 +00:00
| exit1 | Waypoint((605.4, 137.2)), | 185.7 | 179 |
| exit2 | Waypoint((591.5, 137.0)), | 185.8 | 179 |
2023-10-01 15:20:42 +00:00
"""
self.map_init(plane=Herta_StorageZone, floor="F1", position=(692.0, 62.0))
2023-11-17 16:21:23 +00:00
self.register_domain_exit(
Waypoint((598.3, 129.1)), end_rotation=174,
left_door=Waypoint((605.4, 137.2)), right_door=Waypoint((591.5, 137.0)))
2023-10-01 15:20:42 +00:00
item1 = Waypoint((676.1, 98.5))
enemy2 = Waypoint((649.3, 68.7))
2023-10-03 10:03:37 +00:00
enemy1 = Waypoint((654.7, 84.5))
2023-10-01 15:20:42 +00:00
item2 = Waypoint((642.2, 66.1))
2023-11-14 17:37:18 +00:00
door = Waypoint((636.8, 81.9))
2023-10-01 15:20:42 +00:00
node = Waypoint((599.2, 91.0))
2023-11-14 17:37:18 +00:00
item3 = Waypoint((588.6, 102.2))
2023-10-01 15:20:42 +00:00
enemy3 = Waypoint((598.3, 129.1))
# ===== End of generated waypoints =====
# item1
self.clear_item(
item1.straight_run(),
)
# enemy12
2023-10-02 09:19:21 +00:00
self.clear_enemy(
2023-10-01 15:20:42 +00:00
enemy1.straight_run(),
2023-11-14 17:37:18 +00:00
enemy2.straight_run().set_threshold(9),
2023-10-01 15:20:42 +00:00
)
self.clear_item(item2)
# 3
2023-11-14 17:37:18 +00:00
self.rotation_set(255)
self.clear_item(
2023-11-18 18:07:09 +00:00
door.set_threshold(2),
2023-11-14 17:37:18 +00:00
node,
item3,
)
self.clear_enemy(
2023-10-01 15:20:42 +00:00
enemy3.straight_run(),
)
2023-10-03 10:03:37 +00:00
2023-10-07 04:35:21 +00:00
def Herta_StorageZone_F1_X749Y45(self):
2023-10-03 10:03:37 +00:00
"""
| Waypoint | Position | Direction | Rotation |
| ----------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((749.5, 45.6)), | 263.8 | 260 |
| item1 | Waypoint((728.9, 48.8)), | 263.8 | 264 |
| enemy1 | Waypoint((686.2, 64.4)), | 256.8 | 260 |
| item2 | Waypoint((674.0, 99.1)), | 212.9 | 204 |
2023-10-20 14:24:30 +00:00
| enemy2right | Waypoint((649.5, 65.6)), | 302.7 | 71 |
2023-10-03 10:03:37 +00:00
| enemy2left | Waypoint((653.4, 85.0)), | 326.7 | 103 |
| node2 | Waypoint((636.8, 81.9)), | 263.8 | 262 |
| node3 | Waypoint((598.6, 93.9)), | 256.7 | 253 |
| item3 | Waypoint((588.6, 102.2)), | 245.0 | 246 |
| enemy3 | Waypoint((597.2, 131.0)), | 282.9 | 179 |
| exit_ | Waypoint((597.2, 131.0)), | 282.9 | 179 |
2023-11-14 17:37:18 +00:00
| exit1 | Waypoint((604.3, 133.1)), | 179.5 | 193 |
| exit2 | Waypoint((590.2, 137.0)), | 185.7 | 177 |
2023-10-03 10:03:37 +00:00
"""
self.map_init(plane=Herta_StorageZone, floor="F1", position=(749.5, 45.6))
2023-11-14 17:37:18 +00:00
self.register_domain_exit(
Waypoint((597.2, 131.0)), end_rotation=179,
left_door=Waypoint((604.3, 133.1)), right_door=Waypoint((590.2, 137.0)))
2023-10-03 10:03:37 +00:00
item1 = Waypoint((728.9, 48.8))
enemy1 = Waypoint((686.2, 64.4))
item2 = Waypoint((674.0, 99.1))
2023-10-20 14:24:30 +00:00
enemy2right = Waypoint((649.5, 65.6))
2023-10-03 10:03:37 +00:00
enemy2left = Waypoint((653.4, 85.0))
node2 = Waypoint((636.8, 81.9))
node3 = Waypoint((598.6, 93.9))
item3 = Waypoint((588.6, 102.2))
enemy3 = Waypoint((597.2, 131.0))
# ===== End of generated waypoints =====
# 1
self.clear_item(item1)
2023-10-20 14:24:30 +00:00
self.clear_enemy(
enemy1.set_threshold(5)
)
2023-10-03 10:03:37 +00:00
# 2
2023-10-20 14:24:30 +00:00
self.clear_item(
item2.straight_run().set_threshold(5),
)
2023-10-03 10:03:37 +00:00
self.clear_enemy(
enemy2left.straight_run(),
2023-10-20 14:24:30 +00:00
enemy2right.straight_run().set_threshold(9),
2023-10-03 10:03:37 +00:00
)
# 3
2023-10-20 14:24:30 +00:00
self.clear_item(
node2.straight_run().set_threshold(5),
2023-10-03 10:03:37 +00:00
node3.straight_run(),
item3,
)
self.clear_enemy(enemy3.straight_run())