tuxemon.event.eventcondition module

class tuxemon.event.eventcondition.EventCondition[source]

Bases: object

property done: bool
get_persist(session)[source]

Return dictionary for this event class’s data.

  • This dictionary will be shared across all conditions

  • This dictionary will be saved when game is saved

Returns:

Dictionary with the persisting information.

Parameters:

session (Session) –

Return type:

Dict[str, Any]

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

Return True if the condition is satisfied, or False if not.

Parameters:
  • session (Session) – Object containing the session information.

  • condition (MapCondition) – Condition defined in the map.

Returns:

Value of the condition.

Return type:

bool