mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 14:31:16 +00:00
194 lines
8.2 KiB
Python
194 lines
8.2 KiB
Python
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):
|
|
|
|
def Luofu_Cloudford_F1_X241Y947(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((240.4, 947.6)), | 274.2 | 274 |
|
|
| node | Waypoint((218.8, 948.8)), | 282.9 | 278 |
|
|
| item | Waypoint((222.4, 934.6)), | 311.8 | 306 |
|
|
| enemy | Waypoint((197.2, 947.4)), | 282.6 | 260 |
|
|
| exit | Waypoint((193.1, 947.2)), | 12.8 | 274 |
|
|
"""
|
|
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(240.4, 947.6))
|
|
self.register_domain_exit(Waypoint((193.1, 947.2)), end_rotation=274)
|
|
node = Waypoint((218.8, 948.8))
|
|
item = Waypoint((222.4, 934.6))
|
|
enemy = Waypoint((197.2, 947.4))
|
|
# ===== End of generated waypoints =====
|
|
|
|
self.minimap.lock_rotation(270)
|
|
# ignore item
|
|
# self.clear_item(item)
|
|
self.clear_enemy(
|
|
enemy,
|
|
)
|
|
|
|
def Luofu_Cloudford_F1_X257Y947(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((257.3, 951.2)), | 274.2 | 274 |
|
|
| item | Waypoint((236.8, 934.2)), | 302.7 | 299 |
|
|
| node | Waypoint((221.6, 946.2)), | 272.8 | 269 |
|
|
| enemy | Waypoint((193.7, 949.5)), | 143.8 | 269 |
|
|
| exit | Waypoint((194.4, 947.2)), | 4.2 | 274 |
|
|
"""
|
|
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(257.3, 947))
|
|
self.register_domain_exit(Waypoint((194.4, 947.2)), end_rotation=274)
|
|
item = Waypoint((236.8, 934.2))
|
|
node = Waypoint((221.6, 946.2))
|
|
enemy = Waypoint((193.7, 949.5))
|
|
# ===== End of generated waypoints =====
|
|
|
|
"""
|
|
Notes
|
|
Luofu_Cloudford_F1_X257Y947 is the same as Luofu_Cloudford_F1_X257Y951
|
|
but for wrong spawn point detected
|
|
"""
|
|
|
|
self.minimap.lock_rotation(270)
|
|
self.clear_item(item)
|
|
self.clear_enemy(
|
|
node,
|
|
enemy
|
|
)
|
|
|
|
def Luofu_Cloudford_F1_X257Y951(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((257.3, 951.2)), | 274.2 | 274 |
|
|
| item | Waypoint((236.8, 934.2)), | 302.7 | 299 |
|
|
| node | Waypoint((221.6, 946.2)), | 272.8 | 269 |
|
|
| enemy | Waypoint((193.7, 949.5)), | 143.8 | 269 |
|
|
| exit | Waypoint((194.4, 947.2)), | 4.2 | 274 |
|
|
"""
|
|
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(257.3, 951.2))
|
|
self.register_domain_exit(Waypoint((194.4, 947.2)), end_rotation=274)
|
|
item = Waypoint((236.8, 934.2))
|
|
node = Waypoint((221.6, 946.2))
|
|
enemy = Waypoint((193.7, 949.5))
|
|
# ===== End of generated waypoints =====
|
|
|
|
self.minimap.lock_rotation(270)
|
|
self.clear_item(item)
|
|
self.clear_enemy(
|
|
node,
|
|
enemy
|
|
)
|
|
|
|
def Luofu_Cloudford_F1_X281Y873(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((283.4, 865.3)), | 6.7 | 4 |
|
|
| item | Waypoint((297.0, 841.4)), | 36.1 | 31 |
|
|
| enemy | Waypoint((282.4, 814.2)), | 8.1 | 1 |
|
|
| exit | Waypoint((284.5, 816.8)), | 5.7 | 1 |
|
|
"""
|
|
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(281, 873))
|
|
self.register_domain_exit(Waypoint((284.5, 816.8)), end_rotation=1)
|
|
item = Waypoint((297.0, 841.4))
|
|
enemy = Waypoint((282.4, 814.2))
|
|
# ===== End of generated waypoints =====
|
|
|
|
"""
|
|
Notes
|
|
Luofu_Cloudford_F1_X281Y873 is the same as Luofu_Cloudford_F1_X283Y865
|
|
but for wrong spawn point detected
|
|
"""
|
|
self.clear_enemy(enemy)
|
|
|
|
def Luofu_Cloudford_F1_X283Y865(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((283.4, 865.3)), | 6.7 | 4 |
|
|
| item | Waypoint((297.0, 841.4)), | 36.1 | 31 |
|
|
| enemy | Waypoint((282.4, 814.2)), | 8.1 | 1 |
|
|
| exit | Waypoint((284.5, 816.8)), | 5.7 | 1 |
|
|
"""
|
|
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(283.4, 865.3))
|
|
self.register_domain_exit(Waypoint((284.5, 816.8)), end_rotation=1)
|
|
item = Waypoint((297.0, 841.4))
|
|
enemy = Waypoint((282.4, 814.2))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# Ignore random item
|
|
# self.clear_item(item)
|
|
self.clear_enemy(enemy)
|
|
|
|
def Luofu_Cloudford_F1_X431Y593(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| --------------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((431.5, 593.4)), | 2.7 | 357 |
|
|
| item1 | Waypoint((373.8, 592.8)), | 263.8 | 267 |
|
|
| enemy1_X341Y586 | Waypoint((341.2, 586.8)), | 274.2 | 274 |
|
|
| item2 | Waypoint((310.4, 582.2)), | 289.0 | 288 |
|
|
| enemy2 | Waypoint((275.9, 584.9)), | 274.1 | 271 |
|
|
| exit | Waypoint((275.9, 584.9)), | 274.1 | 271 |
|
|
"""
|
|
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(431.5, 593.4))
|
|
self.register_domain_exit(Waypoint((275.9, 584.9)), end_rotation=271)
|
|
item1 = Waypoint((373.8, 592.8))
|
|
enemy1_X341Y586 = Waypoint((341.2, 586.8))
|
|
item2 = Waypoint((310.4, 582.2))
|
|
enemy2 = Waypoint((275.9, 584.9))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# 1
|
|
self.clear_item(
|
|
item1.straight_run(),
|
|
)
|
|
self.clear_enemy(
|
|
enemy1_X341Y586.straight_run(),
|
|
)
|
|
# 2
|
|
self.clear_item(item2)
|
|
self.clear_enemy(enemy2)
|
|
|
|
def Luofu_Cloudford_F1_X435Y669(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((435.4, 669.2)), | 6.7 | 4 |
|
|
| item1 | Waypoint((432.2, 628.3)), | 2.7 | 357 |
|
|
| enemy1 | Waypoint((428.6, 598.8)), | 8.0 | 177 |
|
|
| node2 | Waypoint((421.2, 590.8)), | 44.2 | 285 |
|
|
| node3 | Waypoint((366.6, 588.2)), | 274.2 | 274 |
|
|
| enemy3 | Waypoint((344.9, 590.4)), | 191.8 | 357 |
|
|
| item4 | Waypoint((309.6, 580.2)), | 290.1 | 281 |
|
|
| enemy4 | Waypoint((269.3, 549.6)), | 275.8 | 278 |
|
|
| exit | Waypoint((271.3, 585.5)), | 285.0 | 274 |
|
|
"""
|
|
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(435.4, 669.2))
|
|
self.register_domain_exit(Waypoint((271.3, 585.5)), end_rotation=274)
|
|
item1 = Waypoint((432.2, 628.3))
|
|
enemy1 = Waypoint((428.6, 598.8))
|
|
node2 = Waypoint((421.2, 590.8))
|
|
node3 = Waypoint((366.6, 588.2))
|
|
enemy3 = Waypoint((344.9, 590.4))
|
|
item4 = Waypoint((309.6, 580.2))
|
|
enemy4 = Waypoint((269.3, 549.6))
|
|
# ===== End of generated waypoints =====
|
|
|
|
self.clear_item(item1)
|
|
self.clear_enemy(enemy1)
|
|
# Go through bridges
|
|
self.rotation_set(270)
|
|
self.minimap.lock_rotation(270)
|
|
self.clear_enemy(
|
|
node2.set_threshold(3),
|
|
node3.set_threshold(3),
|
|
enemy3,
|
|
)
|
|
self.clear_item(item4)
|
|
self.clear_enemy(enemy4)
|