Skip to content

Commit 43f1df0

Browse files
authored
Merge pull request #2678 from blkerby/more-lenience
Migrate more lenience to numerics
2 parents 334b46c + 0107555 commit 43f1df0

4 files changed

Lines changed: 54 additions & 47 deletions

File tree

helpers.json

Lines changed: 18 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -385,34 +385,37 @@
385385
"name": "h_blueGateGlitchLeniency",
386386
"requires": [
387387
{"or": [
388-
{"ammo": {"type": "Missile", "count": 1}},
389-
{"ammo": {"type": "Super", "count": 1}}
388+
{"ammo": {"type": "Missile", "count": "n_gateGlitchLenience"}},
389+
{"ammo": {"type": "Super", "count": "n_gateGlitchLenience"}}
390390
]}
391391
],
392-
"devNote": "Ammo for a second shot for leniency."
392+
"devNote": [
393+
"Ammo for a extra shots for leniency.",
394+
"FIXME: A mixture of Missiles and Supers could be used for leniency."
395+
]
393396
},
394397
{
395398
"name": "h_greenGateGlitchLeniency",
396399
"requires": [
397-
{"ammo": {"type": "Super", "count": 1}}
400+
{"ammo": {"type": "Super", "count": "n_gateGlitchLenience"}}
398401
],
399-
"devNote": "Ammo for a second shot for leniency."
402+
"devNote": "Ammo for extra shots for leniency."
400403
},
401404
{
402405
"name": "h_heatedBlueGateGlitchLeniency",
403406
"requires": [
404407
"h_blueGateGlitchLeniency",
405-
{"heatFrames": 60}
408+
{"heatFrames": {"mul": [60, "n_gateGlitchLenience"]}}
406409
],
407-
"devNote": "One ammo and 60 heatFrames for a second shot for leniency."
410+
"devNote": "This includes 60 heatFrames per leniency attempt."
408411
},
409412
{
410413
"name": "h_heatedGreenGateGlitchLeniency",
411414
"requires": [
412415
"h_greenGateGlitchLeniency",
413-
{"heatFrames": 60}
416+
{"heatFrames": {"mul": [60, "n_gateGlitchLenience"]}}
414417
],
415-
"devNote": "One ammo and 60 heatFrames for a second shot for leniency."
418+
"devNote": "This includes 60 heatFrames per leniency attempt."
416419
},
417420
{
418421
"name": "h_openZebetitesLeniency",
@@ -424,34 +427,6 @@
424427
]}
425428
]
426429
},
427-
{
428-
"name": "h_bombIntoCrystalFlashClipLeniency",
429-
"requires": [
430-
{"ammo": {"type": "PowerBomb", "count": 5}}
431-
],
432-
"devNote": "1 Power bomb leniency per attempt, 5 leniency attempts."
433-
},
434-
{
435-
"name": "h_jumpIntoCrystalFlashClipLeniency",
436-
"requires": [
437-
{"ammo": {"type": "PowerBomb", "count": 9}}
438-
],
439-
"devNote": "1 Power bomb leniency per attempt, 9 leniency attempts."
440-
},
441-
{
442-
"name": "h_CrystalSparkLeniency",
443-
"requires": [
444-
{"ammo": {"type": "PowerBomb", "count": 8}}
445-
],
446-
"devNote": "1 Power Bomb leniency per attempt, 8 leniency attempts."
447-
},
448-
{
449-
"name": "h_ElevatorCrystalFlashLeniency",
450-
"requires": [
451-
{"ammo": {"type": "PowerBomb", "count": 8}}
452-
],
453-
"devNote": "1 Power Bomb leniency per attempt, 8 leniency attempts."
454-
},
455430
{
456431
"name": "h_extendedMoondanceBeetomLeniency",
457432
"requires": [
@@ -877,7 +852,7 @@
877852
{"tech": "canBombIntoCrystalFlashClip"},
878853
"Bombs",
879854
"h_artificialMorphCrystalFlash",
880-
"h_bombIntoCrystalFlashClipLeniency"
855+
{"ammo": {"type": "PowerBomb", "count": "n_bombIntoCrystalFlashLenience"}}
881856
]
882857
},
883858
{
@@ -1422,7 +1397,7 @@
14221397
{"tech": "canBombIntoCrystalFlashClip"},
14231398
"Bombs",
14241399
"h_CrystalFlash",
1425-
"h_bombIntoCrystalFlashClipLeniency"
1400+
{"ammo": {"type": "PowerBomb", "count": "n_bombIntoCrystalFlashLenience"}}
14261401
]
14271402
},
14281403
{
@@ -1449,7 +1424,7 @@
14491424
"canMidAirMorph"
14501425
]},
14511426
"h_CrystalFlash",
1452-
"h_jumpIntoCrystalFlashClipLeniency"
1427+
{"ammo": {"type": "PowerBomb", "count": "n_jumpIntoCrystalFlashLenience"}}
14531428
]
14541429
},
14551430
{
@@ -1465,7 +1440,7 @@
14651440
{"tech": "canCrystalSpark"},
14661441
"canMidAirMorph",
14671442
"h_CrystalFlash",
1468-
"h_CrystalSparkLeniency",
1443+
{"ammo": {"type": "PowerBomb", "count": "n_CrystalSparkLenience"}},
14691444
{"gainBlueSuit": {}}
14701445
]
14711446
},
@@ -1484,7 +1459,7 @@
14841459
{"tech": "canUnderwaterCrystalSpark"},
14851460
"canMidAirMorph",
14861461
"h_CrystalFlash",
1487-
"h_CrystalSparkLeniency",
1462+
{"ammo": {"type": "PowerBomb", "count": "n_CrystalSparkLenience"}},
14881463
{"gainBlueSuit": {}}
14891464
]
14901465
},
@@ -1508,7 +1483,7 @@
15081483
"name": "h_elevatorCrystalFlash",
15091484
"requires": [
15101485
"canElevatorCrystalFlash",
1511-
"h_ElevatorCrystalFlashLeniency",
1486+
{"ammo": {"type": "PowerBomb", "count": "n_elevatorCrystalFlashLenience"}},
15121487
"h_usePowerBomb",
15131488
{"resourceAtMost": [
15141489
{"type": "RegularEnergy", "count": 50},

numerics.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
"name": "Base Parameters",
66
"description": "Parameters that may commonly be changed, e.g. based on a randomizer implementation or settings.",
77
"numerics": [
8+
{
9+
"name": "n_gateGlitchLenience",
10+
"minimum": 0,
11+
"value": 14,
12+
"note": "Number of failed attempts expected before a successful gate glitch attempt.",
13+
"devNote": "This applies to all types of gate glitches, green and blue, underwater and not."
14+
},
815
{
916
"name": "n_speedKeepLenience",
1017
"value": 5,
@@ -27,6 +34,30 @@
2734
"minimum": 0,
2835
"note": "Number of failed attempts expected before a successful spike suit attempt.",
2936
"devNote": "This applies to spike suits with any applicable damage source, include spikes and thorns."
37+
},
38+
{
39+
"name": "n_bombIntoCrystalFlashLenience",
40+
"minimum": 0,
41+
"value": 5,
42+
"note": "Number of failed attempts expected before a successful bomb into Crystal Flash attempt."
43+
},
44+
{
45+
"name": "n_jumpIntoCrystalFlashLenience",
46+
"minimum": 0,
47+
"value": 9,
48+
"note": "Number of failed attempts expected before a successful jump mid-air morph into Crystal Flash attempt."
49+
},
50+
{
51+
"name": "n_CrystalSparkLenience",
52+
"minimum": 0,
53+
"value": 8,
54+
"note": "Number of failed attempts expected before a successful Crystal Spark attempt."
55+
},
56+
{
57+
"name": "n_elevatorCrystalFlashLenience",
58+
"minimum": 0,
59+
"value": 8,
60+
"note": "Number of failed attempts expected before a successful elevator Crystal Flash attempt."
3061
}
3162
]
3263
},

schema/m3-numeric-parameters.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44
"$id": "https://raw.githubusercontent.com/vg-json-data/sm-json-data/master/schema/m3-numeric-parameters.schema.json",
55
"type": "string",
66
"enum": [
7+
"n_gateGlitchLenience",
78
"n_speedKeepLenience",
89
"n_spikeXModeLenience",
910
"n_spikeSuitLenience",
11+
"n_bombIntoCrystalFlashLenience",
12+
"n_jumpIntoCrystalFlashLenience",
13+
"n_CrystalSparkLenience",
14+
"n_elevatorCrystalFlashLenience",
1015
"n_speedKeepAttempts",
1116
"n_spikeXModeAttempts",
1217
"n_thornXModeLenience",

schema/m3-string-requirements.schema.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,6 @@
339339
"h_heatedBlueGateGlitchLeniency",
340340
"h_heatedGreenGateGlitchLeniency",
341341
"h_openZebetitesLeniency",
342-
"h_bombIntoCrystalFlashClipLeniency",
343-
"h_jumpIntoCrystalFlashClipLeniency",
344-
"h_CrystalSparkLeniency",
345-
"h_ElevatorCrystalFlashLeniency",
346342
"h_extendedMoondanceBeetomLeniency",
347343
"h_IBJFromThorns",
348344
"h_IBJFromSpikes",

0 commit comments

Comments
 (0)