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" :
|
"sandWalker" :
|
||||||
{
|
{
|
||||||
"type" : "NO_TERRAIN_PENALTY",
|
"type" : "NO_TERRAIN_PENALTY",
|
||||||
"subtype" : 1,
|
"subtype" : "terrain.sand",
|
||||||
"propagator" : "HERO"
|
"propagator" : "HERO"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user