slaurent22 / hk-split-maker

HK Split Maker
https://hksplitmaker.com/
17 stars 21 forks source link

add name overrides to split config #24

Closed slaurent22 closed 3 years ago

slaurent22 commented 3 years ago
interface Config {
    names?: Record<string, string>
}

Example

{
    "splitIds": [
        "Dirtmouth",
        "Grub1",
        "MaskFragment1",
        "Grub2",
        "AspidHunter",
        "MaskFragment2",
        "GruzMother",
        "Grub3",
        "Grub4",
        "Grub5",
        "MaskFragment3",
        "Mask1"
    ],
    "names": {
        "Grub1": "Pogo Grub",
        "Grub2": "Acid Grub",
        "Grub3": "Spike Grub",
        "Grub4": "Wall Grub",
        "Grub5": "Guarded Grub"
    },
    "ordered": true,
    "endTriggeringAutosplit": true,
    "gameName": "Hollow Knight Category Extensions",
    "categoryName": "4 Mask Shards",
    "variables": {
        "platform": "PC",
        "patch": "1.4.3.2",
        "glitch": "Current Patch NMG"
    }
}
slaurent22 commented 3 years ago

actually it should probably be Record<string, string|Array<string>> for re-used splits, in case you want to do something like:

{
  "Flame1": ["Cpeaks Flame", "King's Pass Flame"]
}
slaurent22 commented 3 years ago

done. For example, https://hksplitmaker.com/#happy-couple now has the grub and pale ore names instead of Grub X / Ore X, and https://hksplitmaker.com/#NKG_flame_splits has flame names instead of Flame 1, etc