tuxemon.item.conditions.has_tech module

class tuxemon.item.conditions.has_tech.HasTechCondition(expected)[source]

Bases: ItemCondition

Checks if the monster knows already the technique.

Accepts a single parameter and returns whether it is applied.

Parameters:

expected (str) –

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

Return True if satisfied, or False if not.

Parameters:

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

Return type:

bool