tuxemon.event.conditions.player_defeated module

class tuxemon.event.conditions.player_defeated.PlayerDefeatedCondition[source]

Bases: EventCondition

Check to see the player has at least one tuxemon, and all tuxemon in their party are defeated.

Script usage

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

Check to see the player has at least one tuxemon, and all tuxemon in their party are defeated.

Parameters:
  • session (Session) – The session object

  • condition (MapCondition) – The map condition object.

Returns:

Whether the player has at least one tuxemon in their party and if all their tuxemon are defeated.

Return type:

bool