The PokedexClass
poketypes.dex.pokedex
OR directly import from poketypes.dex
Basics
Each PokedexClass is a pydantic BaseModel, holding every possibly-useful attribute sourced directly from pokemon showdown typescript files as the ground truth.
Reference
Provides BaseModels for accessing real information about specific items/pokemon/moves/etc.
All Pokedex{NAME} classes are defined in this module, though you can also import these directly from poketypes.dex.
PokedexMove
Pokedex class for Move information.
ATTRIBUTE | DESCRIPTION |
---|---|
name |
The friendly string name of this move
TYPE:
|
id |
The DexMove ID of this move
TYPE:
|
base_power |
The base power of the move
TYPE:
|
pp |
The pp of this move
TYPE:
|
priority |
The priority of the move
TYPE:
|
crit_ratio |
The crit ratio of the move (e.g. 2 = twice the chance to crit)
TYPE:
|
category |
The move category as a DexMoveCategory
TYPE:
|
target |
The target type of this move
TYPE:
|
mtype |
The type of the move
TYPE:
|
breaks_protect |
Whether the move breaks target protect
TYPE:
|
ignore_ability |
Whether the move ignores target ability
TYPE:
|
ignore_defensive |
Whether the move ignores target defensive boosts
TYPE:
|
ignore_evasion |
Whether the move ignores target evasion boosts
TYPE:
|
ignore_immunity |
Whether the move ignores target immunity to this move type
TYPE:
|
multiaccuracy |
Whether the multihit move is all or nothing
TYPE:
|
ohko |
Whether the move is a one-hit-ko
TYPE:
|
stalling_move |
Whether the move is considered a stalling move
TYPE:
|
will_crit |
Whether the move will 100% crit if it lands
TYPE:
|
has_crash_damage |
Whether the move does damage to its user on failure
TYPE:
|
has_sheer_force |
The move is always boosted by sheer-force without losing benefit
TYPE:
|
selfdestruct_always |
Whether this move always causes the user to faint
TYPE:
|
selfdestruct_ifhit |
Whether the move causes the user to faint if and only if it hits
TYPE:
|
steals_boosts |
Whether the move steals the targets boosts
TYPE:
|
level_damage |
Whether the move does damage based on the level of the user
TYPE:
|
force_switch |
Whether the move forces the target to switch out
TYPE:
|
mindblown_recoil |
Whether the move has special 'Mind Blown' style recoil
TYPE:
|
struggle_recoil |
Whether the move has special 'Struggle' style recoil
TYPE:
|
smart_target |
Whether the move uses smart targetting
TYPE:
|
thaws_target |
Whether the move thaws target as a special effect
TYPE:
|
tracks_target |
Whether the move ignores
TYPE:
|
selfswitch_standard |
Whether the move is a typical self-switching move. Teleport/U-Turn/etc
TYPE:
|
selfswitch_volatile |
Whether the move is a volatile-keeping self-switching move. Baton Pass
TYPE:
|
selfswitch_shedtail |
Whether the move is a substitue creating self-switching move. Shed Tail
TYPE:
|
sleep_usable |
Whether the move can be used when sleeping
TYPE:
|
no_metronome |
Whether the move can NOT be used as a result of metronome
TYPE:
|
no_sketch |
Whether the move can NOT be copied as a result of sketch
TYPE:
|
no_ppboosts |
Whether the move can NOT have its pp boosted beyond default
TYPE:
|
accuracy |
The accuracy of this move. Optional if the move bypasses accuracy
TYPE:
|
multihit |
The move hits multiple times from slot0 - slot1 times inclusive. Optional
TYPE:
|
drain |
The move drains hp: (slot0 / slot1) times damage dealt. Optional
TYPE:
|
heal |
The move directly heals hp: (slot0 / slot1) times maximum health. Optional
TYPE:
|
recoil |
The move recoils back hp: (slot0 / slot1) times damage dealt. Optional
TYPE:
|
boosts |
Any boosts for the target this move provides (100%). Optional
TYPE:
|
direct_damage |
An integer exact amount of damage the move does. Optional
TYPE:
|
weather |
The weather started by this move. Optional
TYPE:
|
flag_allyanim |
MOVE FLAG: allyanim
TYPE:
|
flag_bite |
MOVE FLAG: bite
TYPE:
|
flag_bullet |
MOVE FLAG: bullet
TYPE:
|
flag_bypasssub |
MOVE FLAG: bypasssub
TYPE:
|
flag_cantusetwice |
MOVE FLAG: cantusetwice
TYPE:
|
flag_charge |
MOVE FLAG: charge
TYPE:
|
flag_contact |
MOVE FLAG: contact
TYPE:
|
flag_dance |
MOVE FLAG: dance
TYPE:
|
flag_defrost |
MOVE FLAG: defrost
TYPE:
|
flag_distance |
MOVE FLAG: distance
TYPE:
|
flag_failcopycat |
MOVE FLAG: failcopycat
TYPE:
|
flag_failencore |
MOVE FLAG: failencore
TYPE:
|
flag_failinstruct |
MOVE FLAG: failinstruct
TYPE:
|
flag_failmefirst |
MOVE FLAG: failmefirst
TYPE:
|
flag_failmimic |
MOVE FLAG: failmimic
TYPE:
|
flag_futuremove |
MOVE FLAG: futuremove
TYPE:
|
flag_gravity |
MOVE FLAG: gravity
TYPE:
|
flag_heal |
MOVE FLAG: heal
TYPE:
|
flag_mirror |
MOVE FLAG: mirror
TYPE:
|
flag_mustpressure |
MOVE FLAG: mustpressure
TYPE:
|
flag_noassist |
MOVE FLAG: noassist
TYPE:
|
flag_nonsky |
MOVE FLAG: nonsky
TYPE:
|
flag_noparentalbond |
MOVE FLAG: noparentalbond
TYPE:
|
flag_nosleeptalk |
MOVE FLAG: nosleeptalk
TYPE:
|
flag_pledgecombo |
MOVE FLAG: pledgecombo
TYPE:
|
flag_powder |
MOVE FLAG: powder
TYPE:
|
flag_protect |
MOVE FLAG: protect
TYPE:
|
flag_pulse |
MOVE FLAG: pulse
TYPE:
|
flag_punch |
MOVE FLAG: punch
TYPE:
|
flag_recharge |
MOVE FLAG: recharge
TYPE:
|
flag_reflectable |
MOVE FLAG: reflectable
TYPE:
|
flag_slicing |
MOVE FLAG: slicing
TYPE:
|
flag_snatch |
MOVE FLAG: snatch
TYPE:
|
flag_sound |
MOVE FLAG: sound
TYPE:
|
flag_wind |
MOVE FLAG: wind
TYPE:
|
PokedexItem
Pokedex class for Item information.
ATTRIBUTE | DESCRIPTION |
---|---|
name |
The friendly string name of this item
TYPE:
|
id |
The DexItem ID of this item
TYPE:
|
is_gem |
Whether the item is a gem or not
TYPE:
|
is_berry |
Whether the item is a berry
TYPE:
|
naturalgift_base_power |
If this item is usable with Natural Gift, what is the base power
TYPE:
|
naturalgift_type |
If this item is usable with Natural Gift, what is the type
TYPE:
|
item_users |
A list of intended holders of this item
TYPE:
|
zmove_to |
What move this zmove transforms the move into
TYPE:
|
zmove_from |
What special move this zmove transforms
TYPE:
|
mega_evolves |
Which base-forme pokemon this megastone evolves from. Optional
TYPE:
|
mega_forme |
Which mega-forme pokemon this megastone evolves into. Optional
TYPE:
|
ignore_klutz |
Whether the item ignores klutz
TYPE:
|
fling_basepower |
The basepower of fling when flinging this item. None if n/a
TYPE:
|
StatBlock
Helper object for containing base stats information.
ATTRIBUTE | DESCRIPTION |
---|---|
hp_stat |
The base hp of the pokemon
TYPE:
|
atk_stat |
The base attack of the pokemon
TYPE:
|
def_stat |
The base defence of the pokemon
TYPE:
|
spa_stat |
The base special attack of the pokemon
TYPE:
|
spd_stat |
The base special defence of the pokemon
TYPE:
|
spe_stat |
The base speed of the pokemon
TYPE:
|
PokedexPokemon
Pokedex class for Pokemon information.
ATTRIBUTE | DESCRIPTION |
---|---|
name |
The friendly string name of this pokemon
TYPE:
|
id |
The DexPokemon ID of this pokemon
TYPE:
|
base_name |
The friendly string name of this pokemon's base forme
TYPE:
|
base_id |
The DexPokemon ID of this pokemon's base forme
TYPE:
|
types |
The types of this pokemon
TYPE:
|
base_stats |
The base stat block of this pokemon
TYPE:
|
abilities |
The list of abilities this pokemon can have
TYPE:
|