tuxemon.item.conditions.type module

class tuxemon.item.conditions.type.TypeCondition(elements)[source]

Bases: ItemCondition

Compares the target Monster’s type against the given types.

Returns true if its equal to any of the listed types.

Parameters:

elements (str) –

elements: str
name: ClassVar[str] = 'type'
test(target)[source]

Return True if satisfied, or False if not.

Parameters:

target (Monster) – The target of the item’s use.

Return type:

bool