tuxemon.item.conditions.variable module
- class tuxemon.item.conditions.variable.VariableCondition(var_name, expected=None)[source]
Bases:
ItemCondition
Checks against the variables of the context. Accepts two parameters; variable name and expected value.
- Parameters:
var_name (str) –
expected (str | int | None) –
- expected: str | int | None = None
- name: ClassVar[str] = 'variable'
- test(target)[source]
Return True if satisfied, or False if not.
- Parameters:
target (Monster) – The target of the item’s use.
- Return type:
bool
- var_name: str