tuxemon.event.conditions.has_monster module

class tuxemon.event.conditions.has_monster.HasMonsterCondition[source]

Bases: EventCondition

Check to see the player is has a monster in his party.

Script usage

is has_monster <monster>
Script parameters:

monster – Monster slug name (e.g. “rockitten”).

name: ClassVar[str] = 'has_monster'
test(session, condition)[source]

Check to see the player is has a monster in his party.

Parameters:
  • session (Session) – The session object

  • condition (MapCondition) – The map condition object.

Returns:

Whether the player has the monster in his party.

Return type:

bool