mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 14:31:16 +00:00
72 lines
3.4 KiB
Python
72 lines
3.4 KiB
Python
from tasks.map.control.waypoint import Waypoint
|
|
from tasks.map.keywords.plane import Luofu_ArtisanshipCommission
|
|
from tasks.map.route.base import locked_position
|
|
from tasks.rogue.route.base import RouteBase
|
|
|
|
|
|
class Route(RouteBase):
|
|
|
|
@locked_position
|
|
def Luofu_ArtisanshipCommission_F1_X185Y361(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((185.4, 361.4)), | 157.2 | 151 |
|
|
| enemy_X212Y398 | Waypoint((212.5, 398.4)), | 149.9 | 327 |
|
|
| item | Waypoint((232.4, 388.4)), | 129.9 | 133 |
|
|
| exit_ | Waypoint((217.4, 405.1)), | 166.7 | 168 |
|
|
| exit1 | Waypoint((226.2, 411.6)), | 171.7 | 163 |
|
|
| exit2_X211Y409 | Waypoint((211.0, 409.2)), | 166.7 | 156 |
|
|
"""
|
|
self.map_init(plane=Luofu_ArtisanshipCommission, floor="F1", position=(185.4, 361.4))
|
|
self.register_domain_exit(
|
|
Waypoint((217.4, 405.1)), end_rotation=168,
|
|
left_door=Waypoint((226.2, 411.6)), right_door=Waypoint((211.0, 409.2)))
|
|
enemy_X212Y398 = Waypoint((212.5, 398.4))
|
|
item = Waypoint((232.4, 388.4))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# Enemy first, then go back for item
|
|
self.clear_enemy(enemy_X212Y398)
|
|
self.clear_item(item)
|
|
|
|
def Luofu_ArtisanshipCommission_F1_X217Y807(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((217.3, 807.4)), | 190.1 | 184 |
|
|
| item | Waypoint((221.2, 833.4)), | 166.7 | 163 |
|
|
| enemy | Waypoint((216.2, 860.2)), | 193.1 | 188 |
|
|
| exit_ | Waypoint((215.7, 861.4)), | 11.3 | 186 |
|
|
| exit1 | Waypoint((224.2, 870.2)), | 179.9 | 179 |
|
|
| exit2 | Waypoint((208.4, 870.3)), | 206.0 | 200 |
|
|
"""
|
|
self.map_init(plane=Luofu_ArtisanshipCommission, floor="F1", position=(217.3, 807.4))
|
|
self.register_domain_exit(
|
|
Waypoint((215.7, 861.4)), end_rotation=186,
|
|
left_door=Waypoint((224.2, 870.2)), right_door=Waypoint((208.4, 870.3)))
|
|
item = Waypoint((221.2, 833.4))
|
|
enemy = Waypoint((216.2, 860.2))
|
|
# ===== End of generated waypoints =====
|
|
|
|
self.clear_item(item)
|
|
self.clear_enemy(enemy)
|
|
|
|
def Luofu_ArtisanshipCommission_F1_X655Y537(self):
|
|
"""
|
|
| Waypoint | Position | Direction | Rotation |
|
|
| -------- | ------------------------- | --------- | -------- |
|
|
| spawn | Waypoint((655.5, 537.3)), | 6.7 | 1 |
|
|
| item | Waypoint((680.6, 503.2)), | 30.1 | 27 |
|
|
| enemy | Waypoint((656.2, 484.2)), | 11.1 | 184 |
|
|
| exit_ | Waypoint((647.0, 477.5)), | 357.8 | 352 |
|
|
"""
|
|
self.map_init(plane=Luofu_ArtisanshipCommission, floor="F1", position=(655.5, 537.3))
|
|
self.register_domain_exit(Waypoint((647.0, 477.5)), end_rotation=352)
|
|
item = Waypoint((680.6, 503.2))
|
|
enemy = Waypoint((656.2, 484.2))
|
|
# ===== End of generated waypoints =====
|
|
|
|
# Ignore item, bad way
|
|
self.clear_enemy(enemy)
|