StarRailCopilot/route/rogue/Occurrence/Luofu_Cloudford_F1.py

131 lines
5.8 KiB
Python
Raw Permalink Normal View History

2023-12-06 16:42:10 +00:00
from module.exception import GameStuckError
2023-10-04 03:15:14 +00:00
from tasks.map.control.waypoint import Waypoint
from tasks.map.keywords.plane import Luofu_Cloudford
from tasks.map.route.base import locked_position, locked_rotation
2023-10-04 03:15:14 +00:00
from tasks.rogue.route.base import RouteBase
class Route(RouteBase):
2023-12-06 16:42:10 +00:00
@locked_rotation(270)
2023-10-04 03:15:14 +00:00
def Luofu_Cloudford_F1_X241Y947(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
2023-10-04 21:09:50 +00:00
| spawn | Waypoint((241.4, 947.5)), | 274.2 | 274 |
2023-10-04 03:15:14 +00:00
| event | Waypoint((199.0, 940.8)), | 300.1 | 294 |
| exit_ | Waypoint((193.1, 947.2)), | 12.8 | 274 |
2023-11-14 17:37:18 +00:00
| exit1 | Waypoint((179.0, 956.4)), | 279.8 | 278 |
| exit2 | Waypoint((184.1, 940.2)), | 282.9 | 278 |
2023-10-04 03:15:14 +00:00
"""
2023-10-04 21:09:50 +00:00
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(241.4, 947.5))
2023-11-14 17:37:18 +00:00
self.register_domain_exit(
Waypoint((193.1, 947.2)), end_rotation=274,
left_door=Waypoint((179.0, 956.4)), right_door=Waypoint((184.1, 940.2)))
2023-10-04 03:15:14 +00:00
event = Waypoint((199.0, 940.8))
self.clear_event(event)
# ===== End of generated waypoints =====
2023-10-05 11:32:47 +00:00
@locked_rotation(270)
def Luofu_Cloudford_F1_X244Y951(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((241.4, 947.5)), | 274.2 | 274 |
| event | Waypoint((199.0, 940.8)), | 300.1 | 294 |
| exit_ | Waypoint((193.1, 947.2)), | 12.8 | 274 |
| exit1 | Waypoint((179.0, 956.4)), | 279.8 | 278 |
| exit2 | Waypoint((184.1, 940.2)), | 282.9 | 278 |
"""
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(244, 951))
self.register_domain_exit(
Waypoint((193.1, 947.2)), end_rotation=274,
left_door=Waypoint((179.0, 956.4)), right_door=Waypoint((184.1, 940.2)))
event = Waypoint((199.0, 940.8))
self.clear_event(event)
# ===== End of generated waypoints =====
"""
Notes
Luofu_Cloudford_F1_X244Y951 is the same as Luofu_Cloudford_F1_X241Y947
but for wrong spawn point detected
"""
@locked_position
@locked_rotation(0)
2023-10-07 17:15:15 +00:00
def Luofu_Cloudford_F1_X281Y873(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((283.2, 865.2)), | 6.7 | 4 |
| item | Waypoint((272.2, 840.2)), | 332.7 | 327 |
| event | Waypoint((291.8, 822.2)), | 26.8 | 22 |
| exit_ | Waypoint((285.3, 818.1)), | 99.0 | 1 |
2023-11-16 14:21:04 +00:00
| exit1 | Waypoint((276.2, 807.8)), | 4.4 | 4 |
| exit2 | Waypoint((290.4, 810.2)), | 4.3 | 4 |
2023-10-07 17:15:15 +00:00
"""
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(281, 873))
2023-11-16 14:21:04 +00:00
self.register_domain_exit(
Waypoint((285.3, 818.1)), end_rotation=1,
left_door=Waypoint((276.2, 807.8)), right_door=Waypoint((290.4, 810.2)))
2023-10-07 17:15:15 +00:00
item = Waypoint((272.2, 840.2))
event = Waypoint((291.8, 822.2))
self.clear_item(item)
self.clear_event(event)
# ===== End of generated waypoints =====
"""
Notes
Luofu_Cloudford_F1_X281Y873 is the same as Luofu_Cloudford_F1_X283Y865
but for wrong spawn point detected
"""
@locked_position
@locked_rotation(0)
2023-10-05 11:32:47 +00:00
def Luofu_Cloudford_F1_X283Y865(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((283.2, 865.2)), | 6.7 | 4 |
| item | Waypoint((272.2, 840.2)), | 332.7 | 327 |
| event | Waypoint((291.8, 822.2)), | 26.8 | 22 |
| exit_ | Waypoint((285.3, 818.1)), | 99.0 | 1 |
2023-11-16 14:21:04 +00:00
| exit1 | Waypoint((276.2, 807.8)), | 4.4 | 4 |
| exit2 | Waypoint((290.4, 810.2)), | 4.3 | 4 |
2023-10-05 11:32:47 +00:00
"""
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(283.2, 865.2))
2023-11-16 14:21:04 +00:00
self.register_domain_exit(
Waypoint((285.3, 818.1)), end_rotation=1,
left_door=Waypoint((276.2, 807.8)), right_door=Waypoint((290.4, 810.2)))
2023-10-05 11:32:47 +00:00
item = Waypoint((272.2, 840.2))
event = Waypoint((291.8, 822.2))
self.clear_item(item)
self.clear_event(event)
# ===== End of generated waypoints =====
2023-10-07 17:15:15 +00:00
def Luofu_Cloudford_F1_X537Y373(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((537.4, 373.3)), | 96.7 | 91 |
| item | Waypoint((567.0, 346.6)), | 96.7 | 91 |
| event | Waypoint((580.8, 363.0)), | 94.2 | 91 |
2023-11-18 18:07:09 +00:00
| exit_ | Waypoint((588.6, 372.8)), | 282.4 | 89 |
| exit1 | Waypoint((595.5, 365.6)), | 96.8 | 87 |
| exit2 | Waypoint((595.3, 379.7)), | 96.8 | 87 |
2023-10-07 17:15:15 +00:00
"""
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(537.4, 373.3))
2023-11-18 18:07:09 +00:00
self.register_domain_exit(
Waypoint((588.6, 372.8)), end_rotation=89,
left_door=Waypoint((595.5, 365.6)), right_door=Waypoint((595.3, 379.7)))
2023-10-07 17:15:15 +00:00
item = Waypoint((567.0, 346.6))
event = Waypoint((580.8, 363.0))
self.clear_item(item)
self.clear_event(event)
# ===== End of generated waypoints =====