2023-10-02 09:19:21 +00:00
|
|
|
from tasks.map.control.waypoint import Waypoint
|
|
|
|
from tasks.map.keywords.plane import Luofu_Cloudford
|
|
|
|
from tasks.rogue.route.base import RouteBase
|
|
|
|
|
|
|
|
|
|
|
|
class Route(RouteBase):
|
|
|
|
|
2023-10-14 20:23:50 +00:00
|
|
|
def Luofu_Cloudford_F2_X425Y111(self):
|
|
|
|
"""
|
|
|
|
| Waypoint | Position | Direction | Rotation |
|
|
|
|
| ---------- | ------------------------- | --------- | -------- |
|
|
|
|
| spawn | Waypoint((425.4, 111.6)), | 190.1 | 184 |
|
|
|
|
| enemy1 | Waypoint((424.9, 203.0)), | 189.0 | 186 |
|
|
|
|
| node2left | Waypoint((426.1, 222.3)), | 193.1 | 184 |
|
|
|
|
| node2right | Waypoint((402.8, 252.8)), | 244.9 | 253 |
|
|
|
|
| enemy3 | Waypoint((320.2, 266.4)), | 282.6 | 274 |
|
2023-11-12 14:17:26 +00:00
|
|
|
| exit_ | Waypoint((320.2, 266.4)), | 282.6 | 274 |
|
2023-11-14 17:37:18 +00:00
|
|
|
| exit1 | Waypoint((312.4, 272.6)), | 272.8 | 269 |
|
|
|
|
| exit2 | Waypoint((312.4, 260.2)), | 272.8 | 269 |
|
2023-10-14 20:23:50 +00:00
|
|
|
"""
|
|
|
|
self.map_init(plane=Luofu_Cloudford, floor="F2", position=(425.4, 111.6))
|
2023-11-14 17:37:18 +00:00
|
|
|
self.register_domain_exit(
|
|
|
|
Waypoint((320.2, 266.4)), end_rotation=274,
|
|
|
|
left_door=Waypoint((312.4, 272.6)), right_door=Waypoint((312.4, 260.2)))
|
2023-10-14 20:23:50 +00:00
|
|
|
enemy1 = Waypoint((424.9, 203.0))
|
|
|
|
node2left = Waypoint((426.1, 222.3))
|
|
|
|
node2right = Waypoint((402.8, 252.8))
|
|
|
|
enemy3 = Waypoint((320.2, 266.4))
|
|
|
|
# ===== End of generated waypoints =====
|
|
|
|
|
2023-11-19 11:17:07 +00:00
|
|
|
# Look right
|
|
|
|
self.rotation_set(210)
|
2023-10-14 20:23:50 +00:00
|
|
|
self.clear_enemy(enemy1)
|
2023-11-16 14:21:04 +00:00
|
|
|
# Enemy2
|
2023-10-14 20:23:50 +00:00
|
|
|
self.clear_enemy(
|
|
|
|
node2left,
|
|
|
|
node2right.straight_run(),
|
|
|
|
enemy3.straight_run(),
|
|
|
|
)
|
2023-11-16 14:21:04 +00:00
|
|
|
# Possible enemy 3
|
|
|
|
if self.minimap.position_diff(enemy3.position) > 50:
|
|
|
|
self.clear_enemy(
|
|
|
|
node2right.straight_run(),
|
|
|
|
enemy3.straight_run(),
|
|
|
|
)
|
2023-10-14 20:23:50 +00:00
|
|
|
|
2023-10-02 09:19:21 +00:00
|
|
|
def Luofu_Cloudford_F2_X425Y171(self):
|
|
|
|
"""
|
|
|
|
| Waypoint | Position | Direction | Rotation |
|
|
|
|
| ----------- | ------------------------- | --------- | -------- |
|
|
|
|
| spawn | Waypoint((425.5, 171.6)), | 190.1 | 184 |
|
|
|
|
| item1 | Waypoint((436.8, 203.6)), | 166.7 | 161 |
|
|
|
|
| item2 | Waypoint((407.1, 205.3)), | 181.3 | 177 |
|
2023-10-03 10:03:37 +00:00
|
|
|
| enemy2left | Waypoint((426.6, 252.0)), | 237.2 | 234 |
|
2023-10-02 09:19:21 +00:00
|
|
|
| enemy2right | Waypoint((407.2, 253.0)), | 311.8 | 274 |
|
|
|
|
| item3 | Waypoint((382.4, 275.3)), | 250.8 | 251 |
|
|
|
|
| enemy3 | Waypoint((318.8, 267.0)), | 279.8 | 281 |
|
2023-11-12 14:17:26 +00:00
|
|
|
| exit_ | Waypoint((324.8, 268.5)), | 283.0 | 278 |
|
2023-11-16 14:21:04 +00:00
|
|
|
| exit1 | Waypoint((312.6, 276.0)), | 284.8 | 283 |
|
|
|
|
| exit2 | Waypoint((313.2, 259.0)), | 177.5 | 271 |
|
2023-10-02 09:19:21 +00:00
|
|
|
"""
|
|
|
|
self.map_init(plane=Luofu_Cloudford, floor="F2", position=(425.5, 171.6))
|
2023-11-16 14:21:04 +00:00
|
|
|
self.register_domain_exit(
|
|
|
|
Waypoint((324.8, 268.5)), end_rotation=278,
|
|
|
|
left_door=Waypoint((312.6, 276.0)), right_door=Waypoint((313.2, 259.0)))
|
2023-10-02 09:19:21 +00:00
|
|
|
item1 = Waypoint((436.8, 203.6))
|
|
|
|
item2 = Waypoint((407.1, 205.3))
|
2023-10-03 10:03:37 +00:00
|
|
|
enemy2left = Waypoint((426.6, 252.0))
|
2023-10-02 09:19:21 +00:00
|
|
|
enemy2right = Waypoint((407.2, 253.0))
|
|
|
|
item3 = Waypoint((382.4, 275.3))
|
|
|
|
enemy3 = Waypoint((318.8, 267.0))
|
|
|
|
# ===== End of generated waypoints =====
|
|
|
|
|
|
|
|
# Items are randomly generated in 4 position, ignore all
|
|
|
|
# self.clear_item(item1)
|
|
|
|
# self.clear_item(item2)
|
2023-10-03 10:03:37 +00:00
|
|
|
|
|
|
|
# Look right
|
|
|
|
self.rotation_set(210)
|
2023-11-17 16:21:23 +00:00
|
|
|
self.minimap.lock_rotation(210)
|
2023-10-02 09:19:21 +00:00
|
|
|
self.clear_enemy(
|
|
|
|
enemy2left,
|
2023-11-17 16:21:23 +00:00
|
|
|
enemy2right,
|
2023-10-02 09:19:21 +00:00
|
|
|
)
|
|
|
|
# 3
|
2023-11-17 16:21:23 +00:00
|
|
|
self.rotation_set(270)
|
|
|
|
self.minimap.lock_rotation(270)
|
2023-10-02 09:19:21 +00:00
|
|
|
# self.clear_item(item3.straight_run())
|
|
|
|
self.clear_enemy(
|
2023-11-26 13:48:24 +00:00
|
|
|
enemy3
|
2023-10-02 09:19:21 +00:00
|
|
|
)
|