StarRailCopilot/route/rogue/Combat/Luofu_Cloudford_F1Rogue.py

45 lines
2.0 KiB
Python
Raw Normal View History

2023-10-03 10:03:37 +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-05 11:32:47 +00:00
def Luofu_Cloudford_F1Rogue_X49Y405(self):
2023-10-03 10:03:37 +00:00
"""
2023-10-05 11:32:47 +00:00
| Waypoint | Position | Direction | Rotation |
| --------------------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((49.3, 405.6)), | 96.7 | 91 |
| item1 | Waypoint((96.9, 393.0)), | 87.7 | 84 |
| enemy1_X126Y402 | Waypoint((126.2, 402.5)), | 96.8 | 101 |
| node2 | Waypoint((142.9, 413.0)), | 96.8 | 101 |
| enemy2top | Waypoint((214.6, 432.8)), | 94.1 | 87 |
| enemy2bottom_X212Y483 | Waypoint((211.4, 483.3)), | 191.8 | 174 |
| enemy3 | Waypoint((288.0, 452.2)), | 87.7 | 260 |
| exit_X288Y454 | Waypoint((291.8, 454.4)), | 5.7 | 91 |
2023-10-03 10:03:37 +00:00
"""
self.map_init(plane=Luofu_Cloudford, floor="F1Rogue", position=(49.3, 405.6))
self.register_domain_exit(Waypoint((291.8, 454.4)), end_rotation=91)
item1 = Waypoint((96.9, 393.0))
2023-10-05 11:32:47 +00:00
enemy1_X126Y402 = Waypoint((126.2, 402.5))
node2 = Waypoint((142.9, 413.0))
2023-10-03 10:03:37 +00:00
enemy2top = Waypoint((214.6, 432.8))
2023-10-05 11:32:47 +00:00
enemy2bottom_X212Y483 = Waypoint((211.4, 483.3))
2023-10-03 10:03:37 +00:00
enemy3 = Waypoint((288.0, 452.2))
# ===== End of generated waypoints =====
# 1, ignore item1, which position may cause detection error
# self.clear_item(item1)
2023-10-05 11:32:47 +00:00
self.clear_enemy(enemy1_X126Y402)
2023-10-03 10:03:37 +00:00
# 2 moving enemy
2023-10-04 03:15:14 +00:00
# Ignore enemy2, it might be a pig, you can never catch it.
# self.clear_enemy(
# enemy2top,
# enemy2bottom.straight_run(),
# )
2023-10-03 10:03:37 +00:00
# 3
self.clear_enemy(
2023-10-05 11:32:47 +00:00
node2.set_threshold(3),
2023-10-03 10:03:37 +00:00
enemy3.straight_run(),
)