Skip to content

Commit 145d6bc

Browse files
committed
Introduce helper for heat-trigger spark interrupts.
1 parent cf99594 commit 145d6bc

3 files changed

Lines changed: 30 additions & 40 deletions

File tree

helpers.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,32 @@
17921792
{"shinespark": {"frames": 4, "excessFrames": 4}}
17931793
]
17941794
},
1795+
{
1796+
"name": "h_heatTriggerRModeSparkInterrupt",
1797+
"requires": [
1798+
{"disableEquipment": "Varia"},
1799+
{"disableEquipment": "Gravity"},
1800+
{"or": [
1801+
{"and": [
1802+
"canReserveTriggerBufferXRay",
1803+
{"autoReserveTrigger": {"implicitHeatFrames": "no"}},
1804+
"canRModeSparkInterrupt",
1805+
{"suitlessHeatFrames": 32}
1806+
]},
1807+
{"and": [
1808+
"h_heatProof",
1809+
{"autoReserveTrigger": {}},
1810+
"canRModePauseAbuseSparkInterrupt"
1811+
]},
1812+
{"and": [
1813+
{"autoReserveTrigger": {"implicitHeatFrames": "suitless"}},
1814+
"canRModeSparkInterrupt",
1815+
{"suitlessHeatFrames": 32}
1816+
]}
1817+
]}
1818+
],
1819+
"note": "Represents triggering an R-Mode Spark Interrupt by using heat damage."
1820+
},
17951821
{
17961822
"name": "h_SpikeXModeSpikeSuit",
17971823
"requires": [

region/lowernorfair/east/Metal Pirates Room.json

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@
773773
"canHitbox",
774774
{"heatFrames": 180},
775775
"h_shinechargeMaxRunway",
776-
{"autoReserveTrigger": {"maxReserveEnergy": 95}},
776+
{"autoReserveTrigger": {}},
777777
"canRModeSparkInterrupt"
778778
],
779779
"flashSuitChecked": true,
@@ -831,26 +831,7 @@
831831
]}
832832
]},
833833
"h_shinechargeMaxRunway",
834-
{"disableEquipment": "Varia"},
835-
{"disableEquipment": "Gravity"},
836-
{"or": [
837-
{"and": [
838-
"canReserveTriggerBufferXRay",
839-
{"autoReserveTrigger": {"implicitHeatFrames": "no"}},
840-
"canRModeSparkInterrupt",
841-
{"suitlessHeatFrames": 32}
842-
]},
843-
{"and": [
844-
"h_heatProof",
845-
{"autoReserveTrigger": {}},
846-
"canRModePauseAbuseSparkInterrupt"
847-
]},
848-
{"and": [
849-
{"autoReserveTrigger": {"implicitHeatFrames": "suitless"}},
850-
"canRModeSparkInterrupt",
851-
{"suitlessHeatFrames": 32}
852-
]}
853-
]}
834+
"h_heatTriggerRModeSparkInterrupt"
854835
],
855836
"clearsObstacles": ["A"],
856837
"flashSuitChecked": true,
@@ -927,30 +908,13 @@
927908
]},
928909
{"heatFrames": 90},
929910
"h_shinechargeMaxRunway",
930-
{"disableEquipment": "Varia"},
931-
{"disableEquipment": "Gravity"},
932911
{"or": [
933912
{"and": [
934913
"canHitbox",
935914
{"autoReserveTrigger": {}},
936915
"canRModeSparkInterrupt"
937916
]},
938-
{"and": [
939-
"canReserveTriggerBufferXRay",
940-
{"autoReserveTrigger": {"implicitHeatFrames": "no"}},
941-
"canRModeSparkInterrupt",
942-
{"suitlessHeatFrames": 32}
943-
]},
944-
{"and": [
945-
"h_heatProof",
946-
{"autoReserveTrigger": {}},
947-
"canRModePauseAbuseSparkInterrupt"
948-
]},
949-
{"and": [
950-
{"autoReserveTrigger": {"implicitHeatFrames": "suitless"}},
951-
"canRModeSparkInterrupt",
952-
{"suitlessHeatFrames": 32}
953-
]}
917+
"h_heatTriggerRModeSparkInterrupt"
954918
]}
955919
],
956920
"clearsObstacles": ["A"],

tests/asserts/keywords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def process_req_speed_state(req, states, err_fn):
504504
states = {"preshinespark"}
505505
elif req in ["h_CrystalSpark", "h_CrystalSparkWithoutLenience",
506506
"h_underwaterCrystalSpark", "h_underwaterCrystalSparkWithoutLenience", "h_heatedCrystalSpark",
507-
"canRModeSparkInterrupt", "canRModePauseAbuseSparkInterrupt", "h_RModeKnockbackSpark"]:
507+
"canRModeSparkInterrupt", "canRModePauseAbuseSparkInterrupt", "h_RModeKnockbackSpark", "h_heatTriggerRModeSparkInterrupt"]:
508508
if not states.issubset(["shinecharging", "shinecharged", "preshinespark"]):
509509
err_fn(f"{req} while not shinecharging/shinecharged/preshinespark")
510510
states = {"normal"}

0 commit comments

Comments
 (0)