Add: Rogue routes

This commit is contained in:
LmeSzinc 2023-10-20 22:24:30 +08:00
parent e6a7f2c472
commit 6f1e61b140
11 changed files with 262 additions and 11 deletions

View File

@ -139,9 +139,9 @@ class Route(RouteBase):
| item1 | Waypoint((728.9, 48.8)), | 263.8 | 264 |
| enemy1 | Waypoint((686.2, 64.4)), | 256.8 | 260 |
| item2 | Waypoint((674.0, 99.1)), | 212.9 | 204 |
| enemy2right | Waypoint((649.5, 65.6)), | 302.7 | 71 |
| enemy2left | Waypoint((653.4, 85.0)), | 326.7 | 103 |
| node2 | Waypoint((636.8, 81.9)), | 263.8 | 262 |
| enemy2right | Waypoint((628.0, 73.6)), | 350.2 | 345 |
| node3 | Waypoint((598.6, 93.9)), | 256.7 | 253 |
| item3 | Waypoint((588.6, 102.2)), | 245.0 | 246 |
| enemy3 | Waypoint((597.2, 131.0)), | 282.9 | 179 |
@ -152,9 +152,9 @@ class Route(RouteBase):
item1 = Waypoint((728.9, 48.8))
enemy1 = Waypoint((686.2, 64.4))
item2 = Waypoint((674.0, 99.1))
enemy2right = Waypoint((649.5, 65.6))
enemy2left = Waypoint((653.4, 85.0))
node2 = Waypoint((636.8, 81.9))
enemy2right = Waypoint((628.0, 73.6))
node3 = Waypoint((598.6, 93.9))
item3 = Waypoint((588.6, 102.2))
enemy3 = Waypoint((597.2, 131.0))
@ -162,16 +162,20 @@ class Route(RouteBase):
# 1
self.clear_item(item1)
self.clear_enemy(enemy1)
self.clear_enemy(
enemy1.set_threshold(5)
)
# 2
self.clear_item(item2.straight_run())
self.clear_item(
item2.straight_run().set_threshold(5),
)
self.clear_enemy(
enemy2left.straight_run(),
enemy2right.straight_run(),
enemy2right.straight_run().set_threshold(9),
)
# 3
self.goto(
node2.set_threshold(3),
node2.straight_run().set_threshold(5),
node3.straight_run(),
item3,
)
@ -198,9 +202,9 @@ class Route(RouteBase):
item1 = Waypoint((728.9, 48.8))
enemy1 = Waypoint((686.2, 64.4))
item2 = Waypoint((674.0, 99.1))
enemy2right = Waypoint((649.5, 65.6))
enemy2left = Waypoint((653.4, 85.0))
node2 = Waypoint((636.8, 81.9))
enemy2right = Waypoint((628.0, 73.6))
node3 = Waypoint((598.6, 93.9))
item3 = Waypoint((588.6, 102.2))
enemy3 = Waypoint((597.2, 131.0))
@ -214,16 +218,20 @@ class Route(RouteBase):
# 1
self.clear_item(item1)
self.clear_enemy(enemy1)
self.clear_enemy(
enemy1.set_threshold(5)
)
# 2
self.clear_item(item2.straight_run())
self.clear_item(
item2.straight_run().set_threshold(5),
)
self.clear_enemy(
enemy2left.straight_run(),
enemy2right.straight_run(),
enemy2right.straight_run().set_threshold(9),
)
# 3
self.goto(
node2.set_threshold(3),
node2.straight_run().set_threshold(5),
node3.straight_run(),
item3,
)

View File

@ -5,6 +5,24 @@ from tasks.rogue.route.base import RouteBase
class Route(RouteBase):
def Herta_StorageZone_F2_X351Y164(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((351.4, 164.9)), | 274.2 | 274 |
| item | Waypoint((342.8, 155.7)), | 274.2 | 274 |
| enemy | Waypoint((304.0, 165.4)), | 261.9 | 264 |
| exit | Waypoint((300.8, 163.8)), | 2.6 | 262 |
"""
self.map_init(plane=Herta_StorageZone, floor="F2", position=(351.4, 164.9))
self.register_domain_exit(Waypoint((300.8, 163.8)), end_rotation=262)
item = Waypoint((342.8, 155.7))
enemy = Waypoint((304.0, 165.4))
# ===== End of generated waypoints =====
self.clear_item(item)
self.clear_enemy(enemy)
def Herta_StorageZone_F2_X365Y167(self):
"""
| Waypoint | Position | Direction | Rotation |

View File

@ -30,6 +30,31 @@ class Route(RouteBase):
self.clear_item(item_X227Y105)
self.clear_enemy(enemy)
def Herta_SupplyZone_F2Rogue_X215Y112(self):
"""
| Waypoint | Position | Direction | Rotation |
| ------------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((209.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=(215.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 =====
"""
Notes:
Herta_SupplyZone_F2Rogue_X215Y112 is the same as Herta_SupplyZone_F2Rogue_X209Y112 to handle detection errors
Don't change the following preset-position, leave as it is
- exit_X227Y105
- Herta_SupplyZone_F2Rogue_X219Y112
"""
self.clear_item(item_X227Y105)
self.clear_enemy(enemy)
def Herta_SupplyZone_F2Rogue_X219Y112(self):
"""
| Waypoint | Position | Direction | Rotation |

View File

@ -144,6 +144,38 @@ class Route(RouteBase):
enemy4.straight_run(),
)
def Jarilo_CorridorofFadingEchoes_F1_X437Y122(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((437.4, 122.9)), | 96.7 | 91 |
| item1 | Waypoint((459.2, 117.0)), | 82.4 | 80 |
| enemy1 | Waypoint((516.5, 123.4)), | 6.7 | 177 |
| enemy2 | Waypoint((540.6, 122.4)), | 95.7 | 89 |
| node3 | Waypoint((548.6, 135.0)), | 166.8 | 163 |
| item3 | Waypoint((562.4, 168.8)), | 157.2 | 154 |
| enemy3 | Waypoint((556.1, 192.5)), | 188.2 | 184 |
| exit | Waypoint((555.0, 204.8)), | 188.2 | 184 |
"""
self.map_init(plane=Jarilo_CorridorofFadingEchoes, floor="F1", position=(437.4, 122.9))
self.register_domain_exit(Waypoint((555.0, 204.8)), end_rotation=184)
item1 = Waypoint((459.2, 117.0))
enemy1 = Waypoint((516.5, 123.4))
enemy2 = Waypoint((540.6, 122.4))
node3 = Waypoint((548.6, 135.0))
item3 = Waypoint((562.4, 168.8))
enemy3 = Waypoint((556.1, 192.5))
# ===== End of generated waypoints =====
self.clear_item(item1)
self.clear_enemy(enemy1)
self.clear_enemy(enemy2)
self.clear_item(
node3.straight_run().set_threshold(5),
item3.straight_run(),
)
self.clear_enemy(enemy3.straight_run())
def Jarilo_CorridorofFadingEchoes_F1_X463Y123(self):
"""
| Waypoint | Position | Direction | Rotation |

View File

@ -41,11 +41,36 @@ class Route(RouteBase):
# Ignore item
self.clear_enemy(enemy)
def Jarilo_SilvermaneGuardRestrictedZone_F1_X317Y425(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((317.4, 425.4)), | 274.2 | 274 |
| item1 | Waypoint((282.4, 434.2)), | 263.8 | 260 |
| enemy1 | Waypoint((252.6, 426.6)), | 283.0 | 276 |
| enemy2 | Waypoint((166.1, 424.5)), | 182.6 | 267 |
| exit | Waypoint((165.1, 425.2)), | 6.4 | 274 |
"""
self.map_init(plane=Jarilo_SilvermaneGuardRestrictedZone, floor="F1", position=(317.4, 425.4))
self.register_domain_exit(Waypoint((165.1, 425.2)), end_rotation=274)
item1 = Waypoint((282.4, 434.2))
enemy1 = Waypoint((252.6, 426.6))
enemy2 = Waypoint((166.1, 424.5))
# ===== End of generated waypoints =====
self.clear_item(item1)
self.clear_enemy(enemy1)
self.clear_enemy(
enemy1.set_threshold(5),
enemy2,
)
def Jarilo_SilvermaneGuardRestrictedZone_F1_X371Y425(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((371.6, 425.3)), | 274.2 | 274 |
| item1 | Waypoint((350.3, 410.5)), | 318.0 | 315 |
| enemy1 | Waypoint((304.0, 424.2)), | 274.2 | 276 |
| enemy2 | Waypoint((247.9, 426.4)), | 11.2 | 45 |
| enemy3 | Waypoint((163.9, 426.5)), | 282.9 | 278 |
@ -53,11 +78,13 @@ class Route(RouteBase):
"""
self.map_init(plane=Jarilo_SilvermaneGuardRestrictedZone, floor="F1", position=(371.6, 425.3))
self.register_domain_exit(Waypoint((163.9, 426.5)), end_rotation=278)
item1 = Waypoint((350.3, 410.5))
enemy1 = Waypoint((304.0, 424.2))
enemy2 = Waypoint((247.9, 426.4))
enemy3 = Waypoint((163.9, 426.5))
# ===== End of generated waypoints =====
self.clear_item(item1)
self.clear_enemy(enemy1)
self.clear_enemy(enemy2)
self.clear_enemy(enemy3)

View File

@ -29,11 +29,13 @@ class Route(RouteBase):
# ===== End of generated waypoints =====
self.rotation_set(245)
self.minimap.lock_rotation(245)
self.clear_item(item1)
self.clear_enemy(
enemy1right,
enemy1left,
)
self.minimap.init_position(self.minimap.position)
self.clear_enemy(
node2,
enemy2.straight_run(),
@ -127,6 +129,21 @@ class Route(RouteBase):
# Ignore item, too close to enemy
self.clear_enemy(enemy_X701Y242)
def Luofu_ScalegorgeWaterscape_F1_X791Y245(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((791.2, 245.8)), | 22.7 | 18 |
| item | Waypoint((792.4, 224.5)), | 355.8 | 350 |
| enemy | Waypoint((802.3, 198.7)), | 22.7 | 20 |
| exit | Waypoint((801.6, 199.4)), | 210.2 | 13 |
"""
self.map_init(plane=Luofu_ScalegorgeWaterscape, floor="F1", position=(791.2, 245.8))
self.register_domain_exit(Waypoint((801.6, 199.4)), end_rotation=13)
item = Waypoint((792.4, 224.5))
enemy = Waypoint((802.3, 198.7))
# ===== End of generated waypoints =====
def Luofu_ScalegorgeWaterscape_F1_X1181Y279(self):
"""
| Waypoint | Position | Direction | Rotation |

View File

@ -23,6 +23,21 @@ class Route(RouteBase):
self.clear_item(item)
self.clear_enemy(enemy)
def Luofu_StargazerNavalia_F1_X203Y317(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((203.8, 317.4)), | 96.7 | 91 |
| enemy | Waypoint((254.2, 318.9)), | 96.8 | 91 |
| exit | Waypoint((254.2, 318.9)), | 96.8 | 91 |
"""
self.map_init(plane=Luofu_StargazerNavalia, floor="F1", position=(203.8, 317.4))
self.register_domain_exit(Waypoint((254.2, 318.9)), end_rotation=91)
enemy = Waypoint((254.2, 318.9))
# ===== End of generated waypoints =====
self.clear_enemy(enemy)
def Luofu_StargazerNavalia_F1_X215Y192(self):
"""
| Waypoint | Position | Direction | Rotation |
@ -110,4 +125,5 @@ class Route(RouteBase):
enemy = Waypoint((521.2, 507.2))
# ===== End of generated waypoints =====
self.minimap.lock_rotation(180)
self.clear_enemy(enemy)

View File

@ -5,6 +5,10 @@ from tasks.rogue.route.base import RouteBase
class Route(RouteBase):
def map_init(self, *args, **kwargs):
super().map_init(*args, **kwargs)
self.minimap.init_position(self.minimap.position, locked=True)
def Herta_StorageZone_F1_X477Y233(self):
"""
| Waypoint | Position | Direction | Rotation |

View File

@ -29,6 +29,30 @@ class Route(RouteBase):
but for wrong spawn point detected
"""
def Herta_SupplyZone_F2Rogue_X214Y113(self):
"""
| Waypoint | Position | Direction | Rotation |
| -------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((219.6, 113.1)), | 96.7 | 91 |
| item | Waypoint((230.9, 106.7)), | 326.8 | 80 |
| event | Waypoint((256.6, 118.2)), | 96.8 | 96 |
| exit | Waypoint((262.5, 112.9)), | 96.7 | 91 |
"""
self.map_init(plane=Herta_SupplyZone, floor="F2Rogue", position=(214.6, 113.1))
self.register_domain_exit(Waypoint((262.5, 112.9)), end_rotation=91)
item = Waypoint((230.9, 106.7))
event = Waypoint((256.6, 118.2))
self.clear_item(item)
self.clear_event(event)
# ===== End of generated waypoints =====
"""
Notes
Herta_SupplyZone_F2Rogue_X214Y113 is the same as Herta_SupplyZone_F2Rogue_X219Y113
but for wrong spawn point detected
"""
def Herta_SupplyZone_F2Rogue_X219Y113(self):
"""
| Waypoint | Position | Direction | Rotation |

View File

@ -25,12 +25,15 @@ class Route(RouteBase):
| Waypoint | Position | Direction | Rotation |
| -------------- | ------------------------- | --------- | -------- |
| spawn | Waypoint((521.6, 595.4)), | 190.1 | 184 |
| item_X504Y610 | Waypoint((504.0, 610.0)), | 188.9 | 186 |
| event_X510Y626 | Waypoint((510.6, 626.4)), | 282.9 | 181 |
| exit | Waypoint((522.2, 630.6)), | 190.0 | 184 |
"""
self.map_init(plane=Luofu_StargazerNavalia, floor="F1", position=(521.6, 595.4))
self.register_domain_exit(Waypoint((522.2, 630.6)), end_rotation=184)
item_X504Y610 = Waypoint((504.0, 610.0))
event_X510Y626 = Waypoint((510.6, 626.4))
self.clear_item(item_X504Y610)
self.clear_event(event_X510Y626)
# ===== End of generated waypoints =====

View File

@ -65,6 +65,17 @@
],
"domain": "Combat"
},
{
"name": "Combat_Herta_StorageZone_F2_X351Y164",
"route": "route.rogue.Combat.Herta_StorageZone_F2:Herta_StorageZone_F2_X351Y164",
"plane": "Herta_StorageZone",
"floor": "F2",
"position": [
351.4,
164.9
],
"domain": "Combat"
},
{
"name": "Combat_Herta_StorageZone_F2_X365Y167",
"route": "route.rogue.Combat.Herta_StorageZone_F2:Herta_StorageZone_F2_X365Y167",
@ -153,6 +164,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": [
215.0,
112.8
],
"domain": "Combat"
},
{
"name": "Combat_Herta_SupplyZone_F2Rogue_X219Y112",
"route": "route.rogue.Combat.Herta_SupplyZone_F2Rogue:Herta_SupplyZone_F2Rogue_X219Y112",
@ -307,6 +329,17 @@
],
"domain": "Combat"
},
{
"name": "Combat_Jarilo_CorridorofFadingEchoes_F1_X437Y122",
"route": "route.rogue.Combat.Jarilo_CorridorofFadingEchoes_F1:Jarilo_CorridorofFadingEchoes_F1_X437Y122",
"plane": "Jarilo_CorridorofFadingEchoes",
"floor": "F1",
"position": [
437.4,
122.9
],
"domain": "Combat"
},
{
"name": "Combat_Jarilo_CorridorofFadingEchoes_F1_X463Y123",
"route": "route.rogue.Combat.Jarilo_CorridorofFadingEchoes_F1:Jarilo_CorridorofFadingEchoes_F1_X463Y123",
@ -516,6 +549,17 @@
],
"domain": "Combat"
},
{
"name": "Combat_Jarilo_SilvermaneGuardRestrictedZone_F1_X317Y425",
"route": "route.rogue.Combat.Jarilo_SilvermaneGuardRestrictedZone_F1:Jarilo_SilvermaneGuardRestrictedZone_F1_X317Y425",
"plane": "Jarilo_SilvermaneGuardRestrictedZone",
"floor": "F1",
"position": [
317.4,
425.4
],
"domain": "Combat"
},
{
"name": "Combat_Jarilo_SilvermaneGuardRestrictedZone_F1_X371Y425",
"route": "route.rogue.Combat.Jarilo_SilvermaneGuardRestrictedZone_F1:Jarilo_SilvermaneGuardRestrictedZone_F1_X371Y425",
@ -758,6 +802,17 @@
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_ScalegorgeWaterscape_F1_X791Y245",
"route": "route.rogue.Combat.Luofu_ScalegorgeWaterscape_F1:Luofu_ScalegorgeWaterscape_F1_X791Y245",
"plane": "Luofu_ScalegorgeWaterscape",
"floor": "F1",
"position": [
791.2,
245.8
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_ScalegorgeWaterscape_F1_X1181Y279",
"route": "route.rogue.Combat.Luofu_ScalegorgeWaterscape_F1:Luofu_ScalegorgeWaterscape_F1_X1181Y279",
@ -780,6 +835,17 @@
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_StargazerNavalia_F1_X203Y317",
"route": "route.rogue.Combat.Luofu_StargazerNavalia_F1:Luofu_StargazerNavalia_F1_X203Y317",
"plane": "Luofu_StargazerNavalia",
"floor": "F1",
"position": [
203.8,
317.4
],
"domain": "Combat"
},
{
"name": "Combat_Luofu_StargazerNavalia_F1_X215Y192",
"route": "route.rogue.Combat.Luofu_StargazerNavalia_F1:Luofu_StargazerNavalia_F1_X215Y192",
@ -1099,6 +1165,17 @@
],
"domain": "Occurrence"
},
{
"name": "Occurrence_Herta_SupplyZone_F2Rogue_X214Y113",
"route": "route.rogue.Occurrence.Herta_SupplyZone_F2Rogue:Herta_SupplyZone_F2Rogue_X214Y113",
"plane": "Herta_SupplyZone",
"floor": "F2Rogue",
"position": [
214.6,
113.1
],
"domain": "Occurrence"
},
{
"name": "Occurrence_Herta_SupplyZone_F2Rogue_X219Y113",
"route": "route.rogue.Occurrence.Herta_SupplyZone_F2Rogue:Herta_SupplyZone_F2Rogue_X219Y113",