Skip to content

Evolutions

pokelance.models.abstract.utils.evolutions ⚓︎

Bases: BaseModel

A chain link resource.

Attributes:

Name Type Description
is_baby bool

Whether or not this link is for a baby Pokémon.

species NamedResource

The Pokémon species at this point in the evolution chain.

evolution_details List[EvolutionDetail]

A list of details regarding the specific details of the referenced Pokémon species evolution.

evolves_to List[ChainLink]

A list of chain links.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)

EvolutionDetail ⚓︎

Bases: BaseModel

An evolution detail resource.

Attributes:

Name Type Description
item NamedResource

The item required to cause evolution this into Pokémon species.

trigger NamedResource

The type of event that triggers evolution into this Pokémon species.

gender str

Gender of the evolving Pokémon species must be in order to evolve.

held_item NamedResource

The item the evolving Pokémon species must be holding during the evolution trigger event.

known_move NamedResource

The move that must be known by the evolving Pokémon species during the evolution trigger event.

known_move_type NamedResource

The evolving Pokémon species must know a move with this type during the evolution trigger event.

location NamedResource

The location the evolution must be triggered at.

min_affection int

The minimum required level of affection the evolving Pokémon species must have.

min_beauty int

The minimum required level of beauty the evolving Pokémon species must have.

min_happiness int

The minimum required level of happiness the evolving Pokémon species must have.

min_level int

The minimum required level of the evolving Pokémon species.

needs_overworld_rain bool

Whether or not it must be raining in the overworld to cause evolution this Pokémon species.

party_species NamedResource

The specific Pokémon species that must be in the players party in order for the evolution to occur.

party_type NamedResource

The player must have a Pokémon of this type in their party during the evolution trigger event.

relative_physical_stats int

The required relation between the Pokémon's Attack and Defense stats.

time_of_day str

The time of day the evolution must be triggered at.

trade_species NamedResource

The specific Pokémon species that must be traded with the evolving Pokémon species.

turn_upside_down bool

Whether or not the 3DS needs to be turned upside-down as this Pokémon levels up.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)