Type chart¶
Full 18-type Gen 6 type chart including all immunities.
The module-level TYPE_CHART singleton is imported by the battle engine and
models. Call TYPE_CHART.multiplier(attacking_type, defender_types) to get
the combined damage multiplier for a move.
types ¶
Type chart -- type effectiveness lookup.
TypeChart accepts a chart dict at construction time so each generation can supply its own matchup data. The module-level TYPE_CHART singleton uses the Gen 6 chart and is kept for backwards compatibility.
multiplier(attacking_type, defender_types) returns the combined effectiveness multiplier (e.g. 2.0, 0.5, 0.0, 4.0).
TypeChart ¶
Type effectiveness lookup for a specific generation.
Accepts a chart dict at construction time. Each gen's BattleRules subclass passes its own chart so matchups are generation-accurate.
Source code in pokerena/engine/types.py
multiplier ¶
Return combined type effectiveness multiplier. Chains multipliers for each defender type independently.
Source code in pokerena/engine/types.py
is_immune ¶
Return True if the attacking type deals zero damage to the defender types.