Skip to content

Commit 6ea0e63

Browse files
authored
Merge pull request #2408 from kjbranch/r-more-than-e
Add h_MoreRTanksThanETanks
2 parents f889cd3 + e548711 commit 6ea0e63

2 files changed

Lines changed: 37 additions & 4 deletions

File tree

helpers.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,10 @@
16421642
{"tech": "canRModeCrystalFlashInterrupt"},
16431643
{"resourceAtMost": [{"type": "RegularEnergy", "count": 50}]},
16441644
{"resourceAtMost": [{"type": "ReserveEnergy", "count": 0}]},
1645-
{"disableEquipment": "ETank"},
1645+
{"or": [
1646+
{"disableEquipment": "ETank"},
1647+
{"resourceMaxCapacity": [{"type": "RegularEnergy", "count": 99}]}
1648+
]},
16461649
"h_artificialMorphPowerBomb",
16471650
{"resourceAvailable": [{"type": "Missile", "count": 10}]},
16481651
{"resourceAvailable": [{"type": "Super", "count": 10}]},
@@ -1677,6 +1680,33 @@
16771680
"IBJ is not usable for underwater rooms without Gravity."
16781681
]
16791682
},
1683+
{
1684+
"name": "h_MoreRTanksThanETanks",
1685+
"requires": [
1686+
{"or": [
1687+
{"and": [
1688+
{"disableEquipment": "ETank"},
1689+
{"resourceCapacity": [{"type": "ReserveEnergy", "count": 100}]}
1690+
]},
1691+
{"and": [
1692+
{"resourceMaxCapacity": [{"type": "RegularEnergy", "count": 99}]},
1693+
{"resourceCapacity": [{"type": "ReserveEnergy", "count": 100}]}
1694+
]},
1695+
{"and": [
1696+
{"resourceMaxCapacity": [{"type": "RegularEnergy", "count": 199}]},
1697+
{"resourceCapacity": [{"type": "ReserveEnergy", "count": 200}]}
1698+
]},
1699+
{"and": [
1700+
{"resourceMaxCapacity": [{"type": "RegularEnergy", "count": 299}]},
1701+
{"resourceCapacity": [{"type": "ReserveEnergy", "count": 300}]}
1702+
]},
1703+
{"and": [
1704+
{"resourceMaxCapacity": [{"type": "RegularEnergy", "count": 399}]},
1705+
{"resourceCapacity": [{"type": "ReserveEnergy", "count": 400}]}
1706+
]}
1707+
]}
1708+
]
1709+
},
16801710
{
16811711
"name": "h_RModeCanRefillReserves",
16821712
"requires": [

tech.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,10 @@
23992399
"otherRequires": [
24002400
{"resourceAtMost": [{"type": "RegularEnergy", "count": 50}]},
24012401
{"resourceAtMost": [{"type": "ReserveEnergy", "count": 0}]},
2402-
{"disableEquipment": "ETank"},
2402+
{"or": [
2403+
{"disableEquipment": "ETank"},
2404+
{"resourceMaxCapacity": [{"type": "RegularEnergy", "count": 99}]}
2405+
]},
24032406
"Morph",
24042407
{"ammo": {"type": "PowerBomb", "count": 1}},
24052408
{"resourceAvailable": [{"type": "Missile", "count": 10}]},
@@ -2420,8 +2423,8 @@
24202423
"so a second hit may be difficult to avoid or may trigger automatically, if the enemy stays nearby."
24212424
],
24222425
"devNote": [
2423-
"Strats are primarily tested with zero E-Tanks, unless otherwise documented.",
2424-
"There could also be a no E-Tank option with canRiskPermanentLossOfAccess, instead of being able to disable them, but there is not a good way to represent that yet.",
2426+
"Strats are only tested with zero E-Tanks, unless otherwise documented.",
2427+
"FIXME: Some strats can be done with more than one E-Tank, which needs to be represented without requiring disabling E-Tanks.",
24252428
"The amount of resources consumed depends upon when during the Crystal Flash the reserves trigger, which will be strat dependent.",
24262429
"The amount of Energy remaining after the strat is complex and depends on the number of Reserve Tanks, when Samus gets hit, and by which enemy;",
24272430
"for simplicity, it is just assumed that Samus retains the small amount of Energy she had before the Crystal Flash (50 or less) and doesn't gain any refill.",

0 commit comments

Comments
 (0)