1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Added string identifiers for terrain types.

This commit is contained in:
DjWarmonger
2016-02-04 17:57:51 +01:00
parent e7b639898e
commit b98a83f743
2 changed files with 5 additions and 1 deletions

View File

@@ -480,7 +480,7 @@
"sandWalker" : "sandWalker" :
{ {
"type" : "NO_TERRAIN_PENALTY", "type" : "NO_TERRAIN_PENALTY",
"subtype" : 1, "subtype" : "terrain.sand",
"propagator" : "HERO" "propagator" : "HERO"
} }
}, },

View File

@@ -284,6 +284,10 @@ CHeroHandler::CHeroHandler()
} }
loadObstacles(); loadObstacles();
loadTerrains(); loadTerrains();
for (int i = 0; i < GameConstants::TERRAIN_TYPES; ++i)
{
VLC->modh->identifiers.registerObject("core", "terrain", GameConstants::TERRAIN_NAMES[i], i);
}
loadBallistics(); loadBallistics();
loadExperience(); loadExperience();
} }