Bases: _DataSetIntFlags
This enum class provides the integer values used to references the different unit trait flags that can be used in
the 'Modify Attribute' effect with the 'Unit Trait' attribute.
Examples
Source code in AoE2ScenarioParser/datasets/trigger_lists/unit_trait.py
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | class UnitTrait(_DataSetIntFlags):
"""
This enum class provides the integer values used to references the different unit trait flags that can be used in
the 'Modify Attribute' effect with the 'Unit Trait' attribute.
**Examples**
"""
GARRISONABLE = 1
SHIP = 2
BUILD_BUILDING = 4
TRANSFORMABLE = 8
AUTO_SCOUT = 16
|
Attributes
GARRISONABLE = 1
class-attribute
instance-attribute
Value:
1
SHIP = 2
class-attribute
instance-attribute
Value:
2
BUILD_BUILDING = 4
class-attribute
instance-attribute
Value:
4
AUTO_SCOUT = 16
class-attribute
instance-attribute
Value:
16