ridoy / pokemon-showdown-god-mode

Automatic damage calculation plugin for Pokemon Showdown (a popular battle simulator)
0 stars 0 forks source link

Correctly parse formes #15

Closed ridoy closed 1 year ago

ridoy commented 1 year ago

Thought this was fixed but Sawsbuck-Autumn just broke it

Guide on how formes are handled in PS : https://github.com/smogon/pokemon-showdown/blob/master/data/FORMES.md

{
    abilities: {0: 'Chlorophyll', 1: 'Sap Sipper', H: 'Serene Grace'},
    baseForme: "Spring",
    baseSpecies: "Sawsbuck",
    baseStats: {hp: 80, atk: 100, def: 70, spa: 60, spd: 70, …},
    battleOnly: undefined,
    bst: 475,
    canGigantamax: false,
    cannotDynamax: false,
    changesFrom: undefined,
    color: "Brown",
    cosmeticFormes: (3) ['Sawsbuck-Summer', 'Sawsbuck-Autumn', 'Sawsbuck-Winter'],
    effectType: "Species",
    eggGroups: ['Field'],
    evoCondition: "",
    evoItem: "",
    evoLevel: 34,
    evoMove: "",
    evoType: "",
    evos: null,
    exists: true,
    forme: "",
    formeid: "",
    gen: 5,
    gender: "",
    genderRatio: null,
    heightm: 1.9,
    id: "sawsbuck",
    isMega: false,
    isNonstandard: "Past",
    isPrimal: false,
    isTotem: false,
    name: "Sawsbuck",
    num: 586,
    otherFormes: null,
    prevo: "Deerling",
    requiredItems: [],
    spriteid: "sawsbuck",
    tags: [],
    tier: "(PU)",
    types: (2) ['Normal', 'Grass'],
    unreleasedHidden: false,
    weightkg: 92.5
}
ridoy commented 1 year ago

Closing this for now because

  1. I haven't encountered it again after recent changes
  2. The problem was described poorly so I don't know how to reproduce (no stack trace etc)

It'll come up again soon if it's a problem.