tuxemon.item.conditions.has_path module

class tuxemon.item.conditions.has_path.HasPathCondition(expected)[source]

Bases: ItemCondition

Checks against the creature’s evolution paths.

Accepts a single parameter and returns whether it is applied.

Parameters:

expected (str) –

expected: str
name: ClassVar[str] = 'has_path'
test(target)[source]

Return True if satisfied, or False if not.

Parameters:

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

Return type:

bool