Closed doshidak closed 2 years ago
Down the rabbit hole we go...
Apparently it wasn't enough fixing the item lookup via dex
since there are other things like the species and moves that also aren't available in the gen 8 dex
.
Anyways, got gen8nationaldex*
formats working for the most part:
Had to add a couple checks to conditionally change the gen to 7 we're in since solely relying on the gen 8 dex
crashes the extension. Additionally, slowly working on phasing out using the dex
from @pkmn/dex
and using the global Dex
object that's available in the Showdown client instead.
speciesForme
changed for Mawile in the above screenshot due to hitting the mega-evolution (from 'Mawile'
to 'Mawile-Mega'
), which changed the ability from 'Intimidate'
to 'Huge Power'
.gen8.json
or even gen8nationaldex.json
from the pkmn API.Will close this via reference on the next PR.
this is caused by mega evo items like Mawilite not existing in the Gen 8
Generation
object from@pkmn/dex
.returns:
we can either load from a previous gen (e.g.,
gens.get(6)
) ifdex.items.get()
returnsundefined
, or use the globalDex
object from the Showdown client:returns:
note that the following is the return object of
dex.items.get()
(from@pkmn/dex
):returns:
the objects from
Dex.items.get()
anddex.items.get()
share similar properties, but differ slightly, such as the return object fromDex.items.get()
not including theisNonstandard
property that the return object fromdex.items.get()
has.