Is it possible to get only the hp of a pokemon?
Closed this issue · 2 comments
OmyDaGreat commented
When I use p.base_stats, it shows all of the base stats of the pokemon. However, is it possible to only return the HP of the pokemon? I tried p.hp, but it returned an error.
Emboarger commented
p.base_stats.hp returns the hp only
arnavb commented
@Emboarger Yep! That's correct. For the sake of completeness, here's a snippet showing that:
import pypokedex
p = pypokedex.get(name="garchomp")
print(p.base_stats.hp) # >>> 108