Skip to content

DamageClass

Bases: _DataSetIntEnums

This enum class provides the integer values that represent the damage classes in the game. Used in the 'Chnage Object Attack/Armour' and 'Modify Attribute' with the 'Attack/Armour' attibutes

Examples

Source code in AoE2ScenarioParser/datasets/trigger_lists/damage_class.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
class DamageClass(_DataSetIntEnums):
    """
    This enum class provides the integer values that represent the damage classes in the game. Used in the 'Chnage
    Object Attack/Armour' and 'Modify Attribute' with the 'Attack/Armour' attibutes

    **Examples**



    """
    WONDER = 0
    """Since HD. Only wonders has this armour class. However there is no unit that has this attack class."""
    INFANTRY = 1
    TURTLE_SHIPS = 2
    BASE_PIERCE = 3
    BASE_MELEE = 4
    WAR_ELEPHANTS = 5
    UNUSED_ID6 = 6
    UNUSED_ID7 = 7
    CAVALRY = 8
    UNUSED_ID9 = 9
    UNUSED_ID10 = 10
    ALL_BUILDINGS_EXCEPT_PORT = 11
    """Port is the building with id 446"""
    UNUSED_ID12 = 12
    STONE_DEFENSE = 13
    PREDATOR_ANIMALS_FE = 14
    """Wolf, Bear, Jaguar, Tiger, etc. have this armour class"""
    ARCHERS = 15
    BATTLE_SHIPS_AND_SABOTEUR = 16
    """Camels also had this armour class before AK"""
    RAMS_TREBUCHETS_SIEGE_TOWERS = 17
    TREES = 18
    UNIQUE_UNITS = 19
    SIEGE_WEAPONS = 20
    STANDARD_BUILDINGS = 21
    WALLS_AND_GATES = 22
    GUNPOWDER_UNITS = 23
    BOARS = 24
    MONKS = 25
    CASTLES = 26
    """Castles, Kreposts, Fortresses, Poenari Castles"""
    SPEARMEN = 27
    CAVALRY_ARCHERS = 28
    EAGLE_WARRIORS = 29
    CAMELS = 30
    """Camels use this armour class since and after AK"""
    UNUSED_ID31 = 31
    CONDOTTIERI = 32
    PROJECTILE_GUNPOWDER_SECONDARY = 33
    FISHING_SHIPS = 34
    MAMELUKES = 35
    HEROES_AND_KINGS = 36
    HUSSITE_WAGONS = 37
    UNUSED_ID38 = 38
    UNUSED_ID39 = 39
    UNUSED_ID40 = 40
    UNUSED_ID41 = 41
    UNUSED_ID42 = 42
    UNUSED_ID43 = 43
    UNUSED_ID44 = 44
    UNUSED_ID45 = 45
    UNUSED_ID46 = 46
    UNUSED_ID47 = 47
    UNUSED_ID48 = 48
    UNUSED_ID49 = 49

Attributes

WONDER = 0 class-attribute instance-attribute

Value: 0

Since HD. Only wonders has this armour class. However there is no unit that has this attack class.

INFANTRY = 1 class-attribute instance-attribute

Value: 1

TURTLE_SHIPS = 2 class-attribute instance-attribute

Value: 2

BASE_PIERCE = 3 class-attribute instance-attribute

Value: 3

BASE_MELEE = 4 class-attribute instance-attribute

Value: 4

WAR_ELEPHANTS = 5 class-attribute instance-attribute

Value: 5

UNUSED_ID6 = 6 class-attribute instance-attribute

Value: 6

UNUSED_ID7 = 7 class-attribute instance-attribute

Value: 7

CAVALRY = 8 class-attribute instance-attribute

Value: 8

UNUSED_ID9 = 9 class-attribute instance-attribute

Value: 9

UNUSED_ID10 = 10 class-attribute instance-attribute

Value: 10

ALL_BUILDINGS_EXCEPT_PORT = 11 class-attribute instance-attribute

Value: 11

Port is the building with id 446

UNUSED_ID12 = 12 class-attribute instance-attribute

Value: 12

STONE_DEFENSE = 13 class-attribute instance-attribute

Value: 13

PREDATOR_ANIMALS_FE = 14 class-attribute instance-attribute

Value: 14

Wolf, Bear, Jaguar, Tiger, etc. have this armour class

ARCHERS = 15 class-attribute instance-attribute

Value: 15

BATTLE_SHIPS_AND_SABOTEUR = 16 class-attribute instance-attribute

Value: 16

Camels also had this armour class before AK

RAMS_TREBUCHETS_SIEGE_TOWERS = 17 class-attribute instance-attribute

Value: 17

TREES = 18 class-attribute instance-attribute

Value: 18

UNIQUE_UNITS = 19 class-attribute instance-attribute

Value: 19

SIEGE_WEAPONS = 20 class-attribute instance-attribute

Value: 20

STANDARD_BUILDINGS = 21 class-attribute instance-attribute

Value: 21

WALLS_AND_GATES = 22 class-attribute instance-attribute

Value: 22

GUNPOWDER_UNITS = 23 class-attribute instance-attribute

Value: 23

BOARS = 24 class-attribute instance-attribute

Value: 24

MONKS = 25 class-attribute instance-attribute

Value: 25

CASTLES = 26 class-attribute instance-attribute

Value: 26

Castles, Kreposts, Fortresses, Poenari Castles

SPEARMEN = 27 class-attribute instance-attribute

Value: 27

CAVALRY_ARCHERS = 28 class-attribute instance-attribute

Value: 28

EAGLE_WARRIORS = 29 class-attribute instance-attribute

Value: 29

CAMELS = 30 class-attribute instance-attribute

Value: 30

Camels use this armour class since and after AK

UNUSED_ID31 = 31 class-attribute instance-attribute

Value: 31

CONDOTTIERI = 32 class-attribute instance-attribute

Value: 32

PROJECTILE_GUNPOWDER_SECONDARY = 33 class-attribute instance-attribute

Value: 33

FISHING_SHIPS = 34 class-attribute instance-attribute

Value: 34

MAMELUKES = 35 class-attribute instance-attribute

Value: 35

HEROES_AND_KINGS = 36 class-attribute instance-attribute

Value: 36

HUSSITE_WAGONS = 37 class-attribute instance-attribute

Value: 37

UNUSED_ID38 = 38 class-attribute instance-attribute

Value: 38

UNUSED_ID39 = 39 class-attribute instance-attribute

Value: 39

UNUSED_ID40 = 40 class-attribute instance-attribute

Value: 40

UNUSED_ID41 = 41 class-attribute instance-attribute

Value: 41

UNUSED_ID42 = 42 class-attribute instance-attribute

Value: 42

UNUSED_ID43 = 43 class-attribute instance-attribute

Value: 43

UNUSED_ID44 = 44 class-attribute instance-attribute

Value: 44

UNUSED_ID45 = 45 class-attribute instance-attribute

Value: 45

UNUSED_ID46 = 46 class-attribute instance-attribute

Value: 46

UNUSED_ID47 = 47 class-attribute instance-attribute

Value: 47

UNUSED_ID48 = 48 class-attribute instance-attribute

Value: 48

UNUSED_ID49 = 49 class-attribute instance-attribute

Value: 49