Home › Enums › AdjacencyBonusTypes

Available out of the box. Usable from Lua in the unmodified game.

AdjacencyBonusTypes

Lua constant table AdjacencyBonusTypes. Engine enum: GameCore::AdjacencyBonusTypes.

The table name and the Lua key column come from the Civilization VI Modding Companion (ChimpanG, expanded and maintained by WildW). The engine names and values come from the game library's debug info. Every member the Companion lists has the same value in the engine enum, which is how the two were matched.

11 of 11 engine members are listed by the Companion. The others exist in the engine, but we do not know whether Lua exposes them, so use the Lua key column as the safe set.

Lua key Engine name Value
NO_ADJACENCY NO_ADJACENCY -1
ADJACENCY_DISTRICT ADJACENCY_DISTRICT 0
ADJACENCY_FEATURE ADJACENCY_FEATURE 1
ADJACENCY_IMPROVEMENT ADJACENCY_IMPROVEMENT 2
ADJACENCY_NATURAL_WONDER ADJACENCY_NATURAL_WONDER 3
ADJACENCY_RESOURCE ADJACENCY_RESOURCE 4
ADJACENCY_RESOURCE_CLASS ADJACENCY_RESOURCE_CLASS 5
ADJACENCY_RIVER ADJACENCY_RIVER 6
ADJACENCY_SEA_RESOURCE ADJACENCY_SEA_RESOURCE 7
ADJACENCY_TERRAIN ADJACENCY_TERRAIN 8
ADJACENCY_WONDER ADJACENCY_WONDER 9