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:
@@ -480,7 +480,7 @@
|
||||
"sandWalker" :
|
||||
{
|
||||
"type" : "NO_TERRAIN_PENALTY",
|
||||
"subtype" : 1,
|
||||
"subtype" : "terrain.sand",
|
||||
"propagator" : "HERO"
|
||||
}
|
||||
},
|
||||
|
@@ -284,6 +284,10 @@ CHeroHandler::CHeroHandler()
|
||||
}
|
||||
loadObstacles();
|
||||
loadTerrains();
|
||||
for (int i = 0; i < GameConstants::TERRAIN_TYPES; ++i)
|
||||
{
|
||||
VLC->modh->identifiers.registerObject("core", "terrain", GameConstants::TERRAIN_NAMES[i], i);
|
||||
}
|
||||
loadBallistics();
|
||||
loadExperience();
|
||||
}
|
||||
|
Reference in New Issue
Block a user