tuxemon.item.conditions.shape module

class tuxemon.item.conditions.shape.ShapeCondition(shapes)[source]

Bases: ItemCondition

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

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

Parameters:

shapes (str) –

name: ClassVar[str] = 'shape'
shapes: str
test(target)[source]

Return True if satisfied, or False if not.

Parameters:

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

Return type:

bool