If found this in terrain CDB. I think I could add all my terrain types here, but I think that will create the problem that modders have to mod the code. So should I copy the terrain movement types into settle types ? I'm kind of lost at how to link it to a terrain name, but I'll keep digging.
Code:
unit.cdb
Bits Settle {
Land,
Water,
Mountain,
Space
probably add a can'tsettle?
Code:
terrain.cdb
Bits MovementType {
Land,
Sea,
Air,
Mountain,
Trade,
ShallowWater,
Space
}
# Map record to the pseudo-enum (TERRAIN_*, not an enum any more)
Bits InternalType {
Forest,
Plains,
Tundra,
Glacier,
Grassland,
Desert,
Swamp,
Jungle,
Mountain,
Hill,
WaterShallow,
WaterDeep,
WaterVolcano,
WaterBeach,
WaterShelf,
WaterTrench,
WaterRift,
Dead,
BrownHill,
BrownMountain,
WhiteHill,
WhiteMountain,
WaterKelp,
WaterReef,
Special
}
# For gfx system use
Int TilesetIndex
}
Code:
terrimprove.cdb
Record Terrain[] CantBuildOn
Or should I just copy the terrimprove cantbuild on and rename it and put it into the unit.cdb?
Bookmarks