tuxemon.item.conditions.location_inside module

class tuxemon.item.conditions.location_inside.LocationInsideCondition(location_inside)[source]

Bases: ItemCondition

Checks against the location type the player’s in.

Accepts “inside” or “outside”

Parameters:

location_inside (str) –

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

Return True if satisfied, or False if not.

Parameters:

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

Return type:

bool