Skip to content

Commit 6162341

Browse files
committed
migrate more lenience to numerics
1 parent 3a22bb6 commit 6162341

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
@@ -361,34 +361,37 @@
361361
"name": "h_blueGateGlitchLeniency",
362362
"requires": [
363363
{"or": [
364-
{"ammo": {"type": "Missile", "count": 1}},
365-
{"ammo": {"type": "Super", "count": 1}}
364+
{"ammo": {"type": "Missile", "count": "n_gateGlitchLenience"}},
365+
{"ammo": {"type": "Super", "count": "n_gateGlitchLenience"}}
366366
]}
367367
],
368-
"devNote": "Ammo for a second shot for leniency."
368+
"devNote": [
369+
"Ammo for a extra shots for leniency.",
370+
"FIXME: A mixture of Missiles and Supers could be used for leniency."
371+
]
369372
},
370373
{
371374
"name": "h_greenGateGlitchLeniency",
372375
"requires": [
373-
{"ammo": {"type": "Super", "count": 1}}
376+
{"ammo": {"type": "Super", "count": "n_gateGlitchLenience"}}
374377
],
375-
"devNote": "Ammo for a second shot for leniency."
378+
"devNote": "Ammo for extra shots for leniency."
376379
},
377380
{
378381
"name": "h_heatedBlueGateGlitchLeniency",
379382
"requires": [
380383
"h_blueGateGlitchLeniency",
381-
{"heatFrames": 60}
384+
{"heatFrames": {"mul": [60, "n_gateGlitchLenience"]}}
382385
],
383-
"devNote": "One ammo and 60 heatFrames for a second shot for leniency."
386+
"devNote": "This includes 60 heatFrames per leniency attempt."
384387
},
385388
{
386389
"name": "h_heatedGreenGateGlitchLeniency",
387390
"requires": [
388391
"h_greenGateGlitchLeniency",
389-
{"heatFrames": 60}
392+
{"heatFrames": {"mul": [60, "n_gateGlitchLenience"]}}
390393
],
391-
"devNote": "One ammo and 60 heatFrames for a second shot for leniency."
394+
"devNote": "This includes 60 heatFrames per leniency attempt."
392395
},
393396
{
394397
"name": "h_openZebetitesLeniency",
@@ -400,34 +403,6 @@
400403
]}
401404
]
402405
},
403-
{
404-
"name": "h_bombIntoCrystalFlashClipLeniency",
405-
"requires": [
406-
{"ammo": {"type": "PowerBomb","count": 5}}
407-
],
408-
"devNote": "1 Power bomb leniency per attempt, 5 leniency attempts."
409-
},
410-
{
411-
"name": "h_jumpIntoCrystalFlashClipLeniency",
412-
"requires": [
413-
{"ammo": {"type": "PowerBomb","count": 9}}
414-
],
415-
"devNote": "1 Power bomb leniency per attempt, 9 leniency attempts."
416-
},
417-
{
418-
"name": "h_CrystalSparkLeniency",
419-
"requires": [
420-
{"ammo": {"type": "PowerBomb","count": 8}}
421-
],
422-
"devNote": "1 Power Bomb leniency per attempt, 8 leniency attempts."
423-
},
424-
{
425-
"name": "h_ElevatorCrystalFlashLeniency",
426-
"requires": [
427-
{"ammo": {"type": "PowerBomb","count": 8}}
428-
],
429-
"devNote": "1 Power Bomb leniency per attempt, 8 leniency attempts."
430-
},
431406
{
432407
"name": "h_extendedMoondanceBeetomLeniency",
433408
"requires": [
@@ -851,7 +826,7 @@
851826
{"tech": "canBombIntoCrystalFlashClip"},
852827
"Bombs",
853828
"h_artificialMorphCrystalFlash",
854-
"h_bombIntoCrystalFlashClipLeniency"
829+
{"ammo": {"type": "PowerBomb", "count": "n_bombIntoCrystalFlashLenience"}}
855830
]
856831
},
857832
{
@@ -1402,7 +1377,7 @@
14021377
{"tech": "canBombIntoCrystalFlashClip"},
14031378
"Bombs",
14041379
"h_CrystalFlash",
1405-
"h_bombIntoCrystalFlashClipLeniency"
1380+
{"ammo": {"type": "PowerBomb", "count": "n_bombIntoCrystalFlashLenience"}}
14061381
]
14071382
},
14081383
{
@@ -1429,7 +1404,7 @@
14291404
"canMidAirMorph"
14301405
]},
14311406
"h_CrystalFlash",
1432-
"h_jumpIntoCrystalFlashClipLeniency"
1407+
{"ammo": {"type": "PowerBomb", "count": "n_jumpIntoCrystalFlashLenience"}}
14331408
]
14341409
},
14351410
{
@@ -1445,7 +1420,7 @@
14451420
{"tech": "canCrystalSpark"},
14461421
"canMidAirMorph",
14471422
"h_CrystalFlash",
1448-
"h_CrystalSparkLeniency",
1423+
{"ammo": {"type": "PowerBomb", "count": "n_CrystalSparkLenience"}},
14491424
{"gainBlueSuit": {}}
14501425
]
14511426
},
@@ -1464,7 +1439,7 @@
14641439
{"tech": "canUnderwaterCrystalSpark"},
14651440
"canMidAirMorph",
14661441
"h_CrystalFlash",
1467-
"h_CrystalSparkLeniency",
1442+
{"ammo": {"type": "PowerBomb", "count": "n_CrystalSparkLenience"}},
14681443
{"gainBlueSuit": {}}
14691444
]
14701445
},
@@ -1488,7 +1463,7 @@
14881463
"name": "h_elevatorCrystalFlash",
14891464
"requires": [
14901465
"canElevatorCrystalFlash",
1491-
"h_ElevatorCrystalFlashLeniency",
1466+
{"ammo": {"type": "PowerBomb", "count": "n_elevatorCrystalFlashLenience"}},
14921467
"h_usePowerBomb",
14931468
{"resourceAtMost": [
14941469
{"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
"minimum": 0,
@@ -27,6 +34,30 @@
2734
"value": 15,
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)