Bases: BaseModel
Stats of a pokemon at a particular level
View all stats here on the unite-db website.
Source code in py_unite_db/models/stats.py
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | class Stats(BaseModel):
"""Stats of a pokemon at a particular level
View all stats [here](https://unite-db.com/stats) on the unite-db website.
"""
# absolute
hp: int
attack: int
defense: int
sp_attack: int
sp_defense: int
# percentages
crit: int
cooldown_reduction: int
lifesteal: int
@staticmethod
def _transform(v: dict[str, Any]) -> dict[str, Any]:
v["cooldown_reduction"] = v.pop("cdr") # make cdr more user friendly
return v
|
attack: int
instance-attribute
cooldown_reduction: int
instance-attribute
crit: int
instance-attribute
defense: int
instance-attribute
hp: int
instance-attribute
lifesteal: int
instance-attribute
sp_attack: int
instance-attribute
sp_defense: int
instance-attribute