Skip to content

TerrainRestrictions

Bases: _DataSetIntEnums

This enum class provides the integer values used to reference the terrain restriction IDs in the game. Used in the 'Modify Attribute' effects

Examples

Source code in AoE2ScenarioParser/datasets/trigger_lists/terrain_restrictions.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
class TerrainRestrictions(_DataSetIntEnums):
    """
    This enum class provides the integer values used to reference the terrain restriction IDs in the game. Used in the
    'Modify Attribute' effects

    **Examples**



    """
    ALL = 0
    """Used by terrain eyecandy and sundries"""
    LAND_AND_SHALLOWS = 1
    """Used by part of animals"""
    BEACH = 2
    WATER_SMALL_TRAIL = 3
    """Used by most ships and sea gate"""
    LAND = 4
    """Used by most land buildings"""
    NOTHING = 5
    WATER_NO_TRAIL = 6
    """Used by docks"""
    ALL_EXCEPT_WATER = 7
    """Used by land troops"""
    LAND_EXCEPT_FARM = 8
    """Used by land resources"""
    NOTHING_2 = 9
    LAND_AND_BEACH = 10
    """Used by land walls and gates"""
    LAND_EXCEPT_FARM_2 = 11
    """Used by trees and mountains"""
    ALL_EXCEPT_WATER_BRIDGE_CANNON = 12
    WATER_MEDIUM_TRAIL = 13
    """Used by big fish and fishing ship"""
    ALL_EXCEPT_WATER_BRIDGE_ARROW = 14
    WATER_LARGE_TRAIL = 15
    """Only used by transport ship"""
    GRASS_AND_BEACH = 16
    WATER_AND_BRIDGE_EXCEPT_BEACH = 17
    ALL_EXCEPT_WATER_BRIDGE_SPEAR = 18
    ONLY_WATER_AND_ICE = 19
    """Used by fish"""
    ALL_EXCEPT_WATER_WHEEL = 20
    """Used by units with wheels, such as Rams and Scorpions"""
    SHALLOW_WATER = 21
    ALL_DART = 22
    ALL_ARROW_FIRE = 23
    """Only used by Arrows with fire (After chemistry)"""
    ALL_CANNON_FIRE = 24
    """Only used by Cannon balls (After chemistry)"""
    ALL_SPEAR_FIRE = 25
    """Only used by Spears with fire (After chemistry)"""
    ALL_DART_FIRE = 26
    """Only used by Darts with fire (After chemistry)"""
    ALL_LASER = 27
    """Only used by Projectile Laser with id 1595"""
    ALL_EXCEPT_WATER_CAVALRY = 28
    """Such as Cavalry Archer, Cavalry, Conquistador, Missionary and Flaming Camel"""
    ALL_EXCEPT_WATER_PACKET_TREBUCHET = 29
    """All types of Trebuchet(Packed)"""
    WATER_SMALLEST_TRAIL = 30
    """Used by medium ships, such as Trade Cog, Fire Galley and Longboat"""

Attributes

ALL = 0 class-attribute instance-attribute

Value: 0

Used by terrain eyecandy and sundries

LAND_AND_SHALLOWS = 1 class-attribute instance-attribute

Value: 1

Used by part of animals

BEACH = 2 class-attribute instance-attribute

Value: 2

WATER_SMALL_TRAIL = 3 class-attribute instance-attribute

Value: 3

Used by most ships and sea gate

LAND = 4 class-attribute instance-attribute

Value: 4

Used by most land buildings

NOTHING = 5 class-attribute instance-attribute

Value: 5

WATER_NO_TRAIL = 6 class-attribute instance-attribute

Value: 6

Used by docks

ALL_EXCEPT_WATER = 7 class-attribute instance-attribute

Value: 7

Used by land troops

LAND_EXCEPT_FARM = 8 class-attribute instance-attribute

Value: 8

Used by land resources

NOTHING_2 = 9 class-attribute instance-attribute

Value: 9

LAND_AND_BEACH = 10 class-attribute instance-attribute

Value: 10

Used by land walls and gates

LAND_EXCEPT_FARM_2 = 11 class-attribute instance-attribute

Value: 11

Used by trees and mountains

ALL_EXCEPT_WATER_BRIDGE_CANNON = 12 class-attribute instance-attribute

Value: 12

WATER_MEDIUM_TRAIL = 13 class-attribute instance-attribute

Value: 13

Used by big fish and fishing ship

ALL_EXCEPT_WATER_BRIDGE_ARROW = 14 class-attribute instance-attribute

Value: 14

WATER_LARGE_TRAIL = 15 class-attribute instance-attribute

Value: 15

Only used by transport ship

GRASS_AND_BEACH = 16 class-attribute instance-attribute

Value: 16

WATER_AND_BRIDGE_EXCEPT_BEACH = 17 class-attribute instance-attribute

Value: 17

ALL_EXCEPT_WATER_BRIDGE_SPEAR = 18 class-attribute instance-attribute

Value: 18

ONLY_WATER_AND_ICE = 19 class-attribute instance-attribute

Value: 19

Used by fish

ALL_EXCEPT_WATER_WHEEL = 20 class-attribute instance-attribute

Value: 20

Used by units with wheels, such as Rams and Scorpions

SHALLOW_WATER = 21 class-attribute instance-attribute

Value: 21

ALL_DART = 22 class-attribute instance-attribute

Value: 22

ALL_ARROW_FIRE = 23 class-attribute instance-attribute

Value: 23

Only used by Arrows with fire (After chemistry)

ALL_CANNON_FIRE = 24 class-attribute instance-attribute

Value: 24

Only used by Cannon balls (After chemistry)

ALL_SPEAR_FIRE = 25 class-attribute instance-attribute

Value: 25

Only used by Spears with fire (After chemistry)

ALL_DART_FIRE = 26 class-attribute instance-attribute

Value: 26

Only used by Darts with fire (After chemistry)

ALL_LASER = 27 class-attribute instance-attribute

Value: 27

Only used by Projectile Laser with id 1595

ALL_EXCEPT_WATER_CAVALRY = 28 class-attribute instance-attribute

Value: 28

Such as Cavalry Archer, Cavalry, Conquistador, Missionary and Flaming Camel

ALL_EXCEPT_WATER_PACKET_TREBUCHET = 29 class-attribute instance-attribute

Value: 29

All types of Trebuchet(Packed)

WATER_SMALLEST_TRAIL = 30 class-attribute instance-attribute

Value: 30

Used by medium ships, such as Trade Cog, Fire Galley and Longboat