gridhead / gi-loadouts

Loadouts for Genshin Impact
GNU General Public License v3.0
6 stars 3 forks source link

Explore the GOOD format and attempt to support the same in future versions #36

Closed gridhead closed 1 month ago

gridhead commented 2 months ago

Explore the GOOD format and attempt to support the same in future versions

gridhead commented 2 months ago

More information on the GOOD format can be found here https://frzyc.github.io/genshin-optimizer/#/doc.

sdglitched commented 1 month ago

GOOD format example of Artifact List from @frzyc's Genshin Optimizer

"artifacts": [
    {
      "setKey": "PaleFlame",
      "rarity": 5,
      "level": 20,
      "slotKey": "sands",
      "mainStatKey": "hp_",
      "substats": [
        {
          "key": "enerRech_",
          "value": 9.1
        },
        {
          "key": "eleMas",
          "value": 33
        },
        {
          "key": "critRate_",
          "value": 5.4
        },
        {
          "key": "critDMG_",
          "value": 10.9
        }
      ],
      "location": "Albedo",
      "lock": false,
      "id": "artifact_0"
    },
    {
      "setKey": "ArchaicPetra",
      "rarity": 5,
      "level": 0,
      "slotKey": "flower",
      "mainStatKey": "hp",
      "substats": [
        {
          "key": "hp_",
          "value": 4.1
        },
        {
          "key": "atk",
          "value": 14
        },
        {
          "key": "atk_",
          "value": 4.1
        },
        {
          "key": "def",
          "value": 16
        }
      ],
      "location": "",
      "lock": false,
      "id": "artifact_1"
    }
  ]

"artifacts" is a list of dictionaries and each dictionaries stores details of a single artifact "substats" of the "artifacts" is a list of dictionaries which stores the stat_name as "key" and stat_data as "value". For every stat_data which have percentage values the statname ends with ``

sdglitched commented 1 month ago

StatKey https://frzyc.github.io/genshin-optimizer/#/doc/StatKey

ArtifactSetKey https://frzyc.github.io/genshin-optimizer/#/doc/ArtifactSetKey

WeaponKey https://frzyc.github.io/genshin-optimizer/#/doc/WeaponKey

sdglitched commented 1 month ago

GOOD format example of Weapon List from @frzyc's Genshin Optimizer

"weapons": [
    {
      "key": "DullBlade",
      "level": 1,
      "ascension": 0,
      "refinement": 1,
      "location": "Albedo",
      "lock": false,
      "id": "weapon_0"
    }
  ]