Skip to content

ChargeEvent

Bases: _DataSetIntEnums

This enum provides the integer values used to reference the action which depletes a unit's charge The meaning of this value depends on Charge Type

Examples

Source code in AoE2ScenarioParser/datasets/trigger_lists/charge_event.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
class ChargeEvent(_DataSetIntEnums):
    """
    This enum provides the integer values used to reference the action which depletes a unit's charge
    The meaning of this value depends on `Charge Type`

    **Examples**



    """
    PERFORM_ATTACK_GROUND_ON_OWN_LOCATION = -1
    NO_CHARGE_DEPLETED = 0
    TRANSFORM_AFTER_ATTACK = 0
    CHARGE_DEPLETED_ON_ATTACK = 1

Attributes

PERFORM_ATTACK_GROUND_ON_OWN_LOCATION = -1 class-attribute instance-attribute

Value: -1

NO_CHARGE_DEPLETED = 0 class-attribute instance-attribute

Value: 0

TRANSFORM_AFTER_ATTACK = 0 class-attribute instance-attribute

Value: 0

CHARGE_DEPLETED_ON_ATTACK = 1 class-attribute instance-attribute

Value: 1