mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Add: Rogue routes
This commit is contained in:
parent
0dbdd27f9b
commit
e8f3fd2a18
@ -11,19 +11,21 @@ class Route(RouteBase):
|
||||
| ------------------- | ------------------------- | --------- | -------- |
|
||||
| spawn | Waypoint((45.5, 369.5)), | 6.7 | 4 |
|
||||
| item1 | Waypoint((38.7, 346.8)), | 36.0 | 359 |
|
||||
| enemy1 | Waypoint((44.2, 328.8)), | 6.7 | 4 |
|
||||
| door1 | Waypoint((46.6, 343.9)), | 12.6 | 6 |
|
||||
| enemy1 | Waypoint((46.2, 328.2)), | 12.6 | 8 |
|
||||
| item2 | Waypoint((34.4, 299.0)), | 352.8 | 348 |
|
||||
| door2 | Waypoint((46.4, 284.5)), | 4.2 | 361 |
|
||||
| enemy2left_X31Y248 | Waypoint((31.2, 248.8)), | 183.8 | 84 |
|
||||
| enemy2right_X55Y247 | Waypoint((55.2, 247.2)), | 96.7 | 91 |
|
||||
| item3 | Waypoint((68.5, 226.5)), | 30.2 | 29 |
|
||||
| enemy3_X114Y234 | Waypoint((114.4, 234.7)), | 105.5 | 101 |
|
||||
| exit_X116Y228 | Waypoint((116.6, 228.8)), | 96.8 | 94 |
|
||||
| exit | Waypoint((119.1, 235.4)), | 6.8 | 96 |
|
||||
"""
|
||||
self.map_init(plane=Herta_SupplyZone, floor="F2", position=(45.5, 369.5))
|
||||
self.register_domain_exit(Waypoint((116.6, 228.8)), end_rotation=94)
|
||||
self.register_domain_exit(Waypoint((119.1, 235.4)), end_rotation=96)
|
||||
item1 = Waypoint((38.7, 346.8))
|
||||
enemy1 = Waypoint((44.2, 328.8))
|
||||
door1 = Waypoint((46.6, 343.9))
|
||||
enemy1 = Waypoint((46.2, 328.2))
|
||||
item2 = Waypoint((34.4, 299.0))
|
||||
door2 = Waypoint((46.4, 284.5))
|
||||
enemy2left_X31Y248 = Waypoint((31.2, 248.8))
|
||||
@ -33,9 +35,12 @@ class Route(RouteBase):
|
||||
# ===== End of generated waypoints =====
|
||||
|
||||
# 1, ignore item1, bad way
|
||||
self.clear_enemy(enemy1)
|
||||
self.clear_enemy(
|
||||
door1.set_threshold(3),
|
||||
enemy1,
|
||||
)
|
||||
# 2
|
||||
self.clear_item(item2)
|
||||
# self.clear_item(item2)
|
||||
self.clear_enemy(
|
||||
door2,
|
||||
enemy2left_X31Y248.straight_run(),
|
||||
@ -49,41 +54,23 @@ class Route(RouteBase):
|
||||
enemy3_X114Y234.straight_run(),
|
||||
)
|
||||
|
||||
def Herta_SupplyZone_F2_X215Y112(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
| ------------- | ------------------------- | --------- | -------- |
|
||||
| spawn | Waypoint((215.6, 112.7)), | 96.7 | 91 |
|
||||
| item_X227Y105 | Waypoint((227.4, 105.0)), | 67.2 | 61 |
|
||||
| enemy | Waypoint((264.4, 114.1)), | 101.1 | 98 |
|
||||
| exit_X227Y105 | Waypoint((266.7, 113.7)), | 60.8 | 91 |
|
||||
"""
|
||||
self.map_init(plane=Herta_SupplyZone, floor="F2", position=(215.6, 112.7))
|
||||
self.register_domain_exit(Waypoint((266.7, 113.7)), end_rotation=91)
|
||||
item_X227Y105 = Waypoint((227.4, 105.0))
|
||||
enemy = Waypoint((264.4, 114.1))
|
||||
# ===== End of generated waypoints =====
|
||||
|
||||
self.clear_item(item_X227Y105)
|
||||
self.clear_enemy(enemy)
|
||||
|
||||
def Herta_SupplyZone_F2_X397Y233(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
| -------- | ------------------------- | --------- | -------- |
|
||||
| spawn | Waypoint((397.4, 233.5)), | 6.7 | 4 |
|
||||
| item | Waypoint((65.2, 49.2)), | 48.1 | 45 |
|
||||
| enemy | Waypoint((48.3, 25.4)), | 12.6 | 179 |
|
||||
| exit | Waypoint((47.4, 29.7)), | 356.3 | 4 |
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
| -------------- | ------------------------- | --------- | -------- |
|
||||
| spawn | Waypoint((397.4, 233.5)), | 6.7 | 4 |
|
||||
| item_X406Y202 | Waypoint((406.5, 202.1)), | 48.1 | 45 |
|
||||
| enemy_X397Y182 | Waypoint((397.2, 183.1)), | 356.3 | 4 |
|
||||
| exit_X397Y182 | Waypoint((397.2, 183.1)), | 356.3 | 4 |
|
||||
"""
|
||||
self.map_init(plane=Herta_SupplyZone, floor="F2", position=(397.4, 233.5))
|
||||
self.register_domain_exit(Waypoint((47.4, 29.7)), end_rotation=4)
|
||||
item = Waypoint((65.2, 49.2))
|
||||
enemy = Waypoint((48.3, 25.4))
|
||||
self.register_domain_exit(Waypoint((397.2, 183.1)), end_rotation=4)
|
||||
item_X406Y202 = Waypoint((406.5, 202.1))
|
||||
enemy_X397Y182 = Waypoint((397.2, 183.1))
|
||||
# ===== End of generated waypoints =====
|
||||
|
||||
# Ignore item, bad way
|
||||
self.clear_enemy(enemy)
|
||||
self.clear_enemy(enemy_X397Y182)
|
||||
|
||||
def Herta_SupplyZone_F2_X658Y247(self):
|
||||
"""
|
||||
|
24
route/rogue/Combat/Herta_SupplyZone_F2Rogue.py
Normal file
24
route/rogue/Combat/Herta_SupplyZone_F2Rogue.py
Normal file
@ -0,0 +1,24 @@
|
||||
from tasks.map.control.waypoint import Waypoint
|
||||
from tasks.map.keywords.plane import Herta_SupplyZone
|
||||
from tasks.rogue.route.base import RouteBase
|
||||
|
||||
|
||||
class Route(RouteBase):
|
||||
|
||||
def Herta_SupplyZone_F2Rogue_X215Y112(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
| ------------- | ------------------------- | --------- | -------- |
|
||||
| spawn | Waypoint((219.6, 112.8)), | 96.7 | 91 |
|
||||
| item_X227Y105 | Waypoint((227.4, 105.1)), | 67.2 | 61 |
|
||||
| enemy | Waypoint((264.2, 114.1)), | 101.1 | 98 |
|
||||
| exit_X227Y105 | Waypoint((266.7, 113.7)), | 60.8 | 91 |
|
||||
"""
|
||||
self.map_init(plane=Herta_SupplyZone, floor="F2Rogue", position=(219.6, 112.8))
|
||||
self.register_domain_exit(Waypoint((266.7, 113.7)), end_rotation=91)
|
||||
item_X227Y105 = Waypoint((227.4, 105.1))
|
||||
enemy = Waypoint((264.2, 114.1))
|
||||
# ===== End of generated waypoints =====
|
||||
|
||||
self.clear_item(item_X227Y105)
|
||||
self.clear_enemy(enemy)
|
@ -61,6 +61,32 @@ class Route(RouteBase):
|
||||
# ignore item, bad way
|
||||
self.clear_enemy(node, enemy)
|
||||
|
||||
def Jarilo_GreatMine_F1_X165Y537(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
| -------- | ------------------------- | --------- | -------- |
|
||||
| spawn | Waypoint((165.5, 537.8)), | 157.2 | 151 |
|
||||
| item1 | Waypoint((174.8, 564.8)), | 190.1 | 184 |
|
||||
| enemy1 | Waypoint((218.2, 582.4)), | 129.8 | 304 |
|
||||
| node2 | Waypoint((234.0, 586.6)), | 129.8 | 121 |
|
||||
| enemy2 | Waypoint((244.8, 626.0)), | 182.7 | 177 |
|
||||
| exit | Waypoint((243.4, 622.2)), | 2.6 | 174 |
|
||||
"""
|
||||
self.map_init(plane=Jarilo_GreatMine, floor="F1", position=(165.5, 537.8))
|
||||
self.register_domain_exit(Waypoint((243.4, 622.2)), end_rotation=174)
|
||||
item1 = Waypoint((174.8, 564.8))
|
||||
enemy1 = Waypoint((218.2, 582.4))
|
||||
node2 = Waypoint((234.0, 586.6))
|
||||
enemy2 = Waypoint((244.8, 626.0))
|
||||
# ===== End of generated waypoints =====
|
||||
|
||||
# Ignore item1, bad way
|
||||
self.clear_enemy(enemy1.straight_run())
|
||||
self.clear_enemy(
|
||||
node2,
|
||||
enemy2.straight_run(),
|
||||
)
|
||||
|
||||
def Jarilo_GreatMine_F1_X299Y254(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
|
@ -79,6 +79,38 @@ class Route(RouteBase):
|
||||
# self.clear_item(item)
|
||||
self.clear_enemy(enemy)
|
||||
|
||||
def Jarilo_RivetTown_F1_X231Y211(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
| ------------ | ------------------------- | --------- | -------- |
|
||||
| spawn | Waypoint((231.4, 211.1)), | 30.1 | 27 |
|
||||
| item1 | Waypoint((236.7, 180.5)), | 25.6 | 22 |
|
||||
| node2 | Waypoint((256.9, 180.9)), | 182.9 | 84 |
|
||||
| enemy1 | Waypoint((256.6, 169.0)), | 36.3 | 211 |
|
||||
| item2 | Waypoint((280.5, 188.5)), | 114.2 | 110 |
|
||||
| enemy2middle | Waypoint((290.0, 174.6)), | 92.7 | 84 |
|
||||
| enemy3 | Waypoint((319.6, 153.1)), | 76.4 | 73 |
|
||||
| exit | Waypoint((317.4, 155.3)), | 60.9 | 73 |
|
||||
"""
|
||||
self.map_init(plane=Jarilo_RivetTown, floor="F1", position=(231.4, 211.1))
|
||||
self.register_domain_exit(Waypoint((317.4, 155.3)), end_rotation=73)
|
||||
item1 = Waypoint((236.7, 180.5))
|
||||
node2 = Waypoint((256.9, 180.9))
|
||||
enemy1 = Waypoint((256.6, 169.0))
|
||||
item2 = Waypoint((280.5, 188.5))
|
||||
enemy2middle = Waypoint((290.0, 174.6))
|
||||
enemy3 = Waypoint((319.6, 153.1))
|
||||
# ===== End of generated waypoints =====
|
||||
|
||||
self.rotation_set(73)
|
||||
# Ignore all items, road blocked
|
||||
self.clear_enemy(enemy1)
|
||||
self.clear_enemy(
|
||||
node2,
|
||||
enemy2middle
|
||||
)
|
||||
self.clear_enemy(enemy3)
|
||||
|
||||
def Jarilo_RivetTown_F1_X279Y301(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
|
@ -30,10 +30,11 @@ class Route(RouteBase):
|
||||
# self.clear_item(item1)
|
||||
self.clear_enemy(enemy1)
|
||||
# 2 moving enemy
|
||||
self.clear_enemy(
|
||||
enemy2top,
|
||||
enemy2bottom.straight_run(),
|
||||
)
|
||||
# Ignore enemy2, it might be a pig, you can never catch it.
|
||||
# self.clear_enemy(
|
||||
# enemy2top,
|
||||
# enemy2bottom.straight_run(),
|
||||
# )
|
||||
# 3
|
||||
self.clear_enemy(
|
||||
enemy3.straight_run(),
|
||||
|
@ -23,6 +23,32 @@ class Route(RouteBase):
|
||||
self.clear_item(item)
|
||||
self.clear_enemy(enemy)
|
||||
|
||||
def Luofu_StargazerNavalia_F1_X432Y593(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
| -------------- | ------------------------- | --------- | -------- |
|
||||
| spawn | Waypoint((432.7, 593.4)), | 96.7 | 91 |
|
||||
| event | Waypoint((449.6, 606.4)), | 135.8 | 131 |
|
||||
| item1_X464Y586 | Waypoint((464.6, 586.5)), | 64.9 | 61 |
|
||||
| enemy1 | Waypoint((506.2, 596.2)), | 96.8 | 94 |
|
||||
| item2 | Waypoint((522.8, 589.0)), | 64.9 | 64 |
|
||||
| enemy3 | Waypoint((556.5, 599.8)), | 96.8 | 96 |
|
||||
| exit | Waypoint((559.5, 601.5)), | 129.8 | 94 |
|
||||
"""
|
||||
self.map_init(plane=Luofu_StargazerNavalia, floor="F1", position=(432.7, 593.4))
|
||||
self.register_domain_exit(Waypoint((559.5, 601.5)), end_rotation=94)
|
||||
event = Waypoint((449.6, 606.4))
|
||||
item1_X464Y586 = Waypoint((464.6, 586.5))
|
||||
enemy1 = Waypoint((506.2, 596.2))
|
||||
item2 = Waypoint((522.8, 589.0))
|
||||
enemy3 = Waypoint((556.5, 599.8))
|
||||
# ===== End of generated waypoints =====
|
||||
|
||||
# Ignore items
|
||||
self.clear_enemy(enemy1)
|
||||
# Ignore enemy2
|
||||
self.clear_enemy(enemy3)
|
||||
|
||||
def Luofu_StargazerNavalia_F1_X499Y581(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
|
@ -12,10 +12,10 @@ class Route(RouteBase):
|
||||
| spawn | Waypoint((363.4, 166.9)), | 274.2 | 274 |
|
||||
| item | Waypoint((332.8, 172.0)), | 263.8 | 260 |
|
||||
| event | Waypoint((318.9, 155.2)), | 290.1 | 285 |
|
||||
| exit | Waypoint((298.5, 162.7)), | 271.8 | 269 |
|
||||
| exit | Waypoint((314.3, 164.1)), | 276.0 | 271 |
|
||||
"""
|
||||
self.map_init(plane=Herta_StorageZone, floor="F2", position=(363.4, 166.9))
|
||||
self.register_domain_exit(Waypoint((298.5, 162.7)), end_rotation=269)
|
||||
self.register_domain_exit(Waypoint((314.3, 164.1)), end_rotation=271)
|
||||
item = Waypoint((332.8, 172.0))
|
||||
event = Waypoint((318.9, 155.2))
|
||||
|
||||
|
@ -40,3 +40,21 @@ class Route(RouteBase):
|
||||
self.clear_item(item)
|
||||
self.clear_event(event)
|
||||
# ===== End of generated waypoints =====
|
||||
|
||||
def Jarilo_SilvermaneGuardRestrictedZone_F1_X509Y541(self):
|
||||
"""
|
||||
| Waypoint | Position | Direction | Rotation |
|
||||
| -------- | ------------------------- | --------- | -------- |
|
||||
| spawn | Waypoint((509.4, 541.3)), | 96.7 | 91 |
|
||||
| item | Waypoint((539.4, 533.0)), | 76.4 | 66 |
|
||||
| event | Waypoint((552.9, 547.7)), | 105.5 | 98 |
|
||||
| exit | Waypoint((557.1, 543.0)), | 96.8 | 89 |
|
||||
"""
|
||||
self.map_init(plane=Jarilo_SilvermaneGuardRestrictedZone, floor="F1", position=(509.4, 541.3))
|
||||
self.register_domain_exit(Waypoint((557.1, 543.0)), end_rotation=89)
|
||||
item = Waypoint((539.4, 533.0))
|
||||
event = Waypoint((552.9, 547.7))
|
||||
|
||||
self.clear_item(item)
|
||||
self.clear_event(event)
|
||||
# ===== End of generated waypoints =====
|
||||
|
21
route/rogue/Occurrence/Luofu_Cloudford_F1.py
Normal file
21
route/rogue/Occurrence/Luofu_Cloudford_F1.py
Normal file
@ -0,0 +1,21 @@
|
||||
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((216.3, 948.3)), | 275.8 | 271 |
|
||||
| event | Waypoint((199.0, 940.8)), | 300.1 | 294 |
|
||||
| exit | Waypoint((193.1, 947.2)), | 12.8 | 274 |
|
||||
"""
|
||||
self.map_init(plane=Luofu_Cloudford, floor="F1", position=(216.3, 948.3))
|
||||
self.register_domain_exit(Waypoint((193.1, 947.2)), end_rotation=274)
|
||||
event = Waypoint((199.0, 940.8))
|
||||
|
||||
self.clear_event(event)
|
||||
# ===== End of generated waypoints =====
|
@ -76,17 +76,6 @@
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Herta_SupplyZone_F2_X215Y112",
|
||||
"route": "route.rogue.Combat.Herta_SupplyZone_F2:Herta_SupplyZone_F2_X215Y112",
|
||||
"plane": "Herta_SupplyZone",
|
||||
"floor": "F2",
|
||||
"position": [
|
||||
215.6,
|
||||
112.7
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Herta_SupplyZone_F2_X397Y233",
|
||||
"route": "route.rogue.Combat.Herta_SupplyZone_F2:Herta_SupplyZone_F2_X397Y233",
|
||||
@ -109,6 +98,17 @@
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Herta_SupplyZone_F2Rogue_X215Y112",
|
||||
"route": "route.rogue.Combat.Herta_SupplyZone_F2Rogue:Herta_SupplyZone_F2Rogue_X215Y112",
|
||||
"plane": "Herta_SupplyZone",
|
||||
"floor": "F2Rogue",
|
||||
"position": [
|
||||
219.6,
|
||||
112.8
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Jarilo_BackwaterPass_F1_X475Y49",
|
||||
"route": "route.rogue.Combat.Jarilo_BackwaterPass_F1:Jarilo_BackwaterPass_F1_X475Y49",
|
||||
@ -219,6 +219,17 @@
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Jarilo_GreatMine_F1_X165Y537",
|
||||
"route": "route.rogue.Combat.Jarilo_GreatMine_F1:Jarilo_GreatMine_F1_X165Y537",
|
||||
"plane": "Jarilo_GreatMine",
|
||||
"floor": "F1",
|
||||
"position": [
|
||||
165.5,
|
||||
537.8
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Jarilo_GreatMine_F1_X299Y254",
|
||||
"route": "route.rogue.Combat.Jarilo_GreatMine_F1:Jarilo_GreatMine_F1_X299Y254",
|
||||
@ -296,6 +307,17 @@
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Jarilo_RivetTown_F1_X231Y211",
|
||||
"route": "route.rogue.Combat.Jarilo_RivetTown_F1:Jarilo_RivetTown_F1_X231Y211",
|
||||
"plane": "Jarilo_RivetTown",
|
||||
"floor": "F1",
|
||||
"position": [
|
||||
231.4,
|
||||
211.1
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Jarilo_RivetTown_F1_X279Y301",
|
||||
"route": "route.rogue.Combat.Jarilo_RivetTown_F1:Jarilo_RivetTown_F1_X279Y301",
|
||||
@ -461,6 +483,17 @@
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Luofu_StargazerNavalia_F1_X432Y593",
|
||||
"route": "route.rogue.Combat.Luofu_StargazerNavalia_F1:Luofu_StargazerNavalia_F1_X432Y593",
|
||||
"plane": "Luofu_StargazerNavalia",
|
||||
"floor": "F1",
|
||||
"position": [
|
||||
432.7,
|
||||
593.4
|
||||
],
|
||||
"domain": "Combat"
|
||||
},
|
||||
{
|
||||
"name": "Combat_Luofu_StargazerNavalia_F1_X499Y581",
|
||||
"route": "route.rogue.Combat.Luofu_StargazerNavalia_F1:Luofu_StargazerNavalia_F1_X499Y581",
|
||||
@ -670,6 +703,17 @@
|
||||
],
|
||||
"domain": "Occurrence"
|
||||
},
|
||||
{
|
||||
"name": "Occurrence_Jarilo_SilvermaneGuardRestrictedZone_F1_X509Y541",
|
||||
"route": "route.rogue.Occurrence.Jarilo_SilvermaneGuardRestrictedZone_F1:Jarilo_SilvermaneGuardRestrictedZone_F1_X509Y541",
|
||||
"plane": "Jarilo_SilvermaneGuardRestrictedZone",
|
||||
"floor": "F1",
|
||||
"position": [
|
||||
509.4,
|
||||
541.3
|
||||
],
|
||||
"domain": "Occurrence"
|
||||
},
|
||||
{
|
||||
"name": "Occurrence_Luofu_ArtisanshipCommission_F1_X169Y491",
|
||||
"route": "route.rogue.Occurrence.Luofu_ArtisanshipCommission_F1:Luofu_ArtisanshipCommission_F1_X169Y491",
|
||||
@ -703,6 +747,17 @@
|
||||
],
|
||||
"domain": "Occurrence"
|
||||
},
|
||||
{
|
||||
"name": "Occurrence_Luofu_Cloudford_F1_X241Y947",
|
||||
"route": "route.rogue.Occurrence.Luofu_Cloudford_F1:Luofu_Cloudford_F1_X241Y947",
|
||||
"plane": "Luofu_Cloudford",
|
||||
"floor": "F1",
|
||||
"position": [
|
||||
216.3,
|
||||
948.3
|
||||
],
|
||||
"domain": "Occurrence"
|
||||
},
|
||||
{
|
||||
"name": "Respite_Herta_StorageZone_F1_X703Y267",
|
||||
"route": "route.rogue.Respite.Herta_StorageZone_F1:Herta_StorageZone_F1_X703Y267",
|
||||
|
Loading…
Reference in New Issue
Block a user