1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Better names for terrain parameters. Support for new movement sounds.

This commit is contained in:
Ivan Savenko
2022-12-21 00:45:35 +02:00
parent 4e4dae854f
commit 64885bdf6b
21 changed files with 121 additions and 150 deletions

View File

@@ -360,7 +360,7 @@ void ObjectTemplate::writeJson(JsonNode & node, const bool withTerrain) const
for(auto type : allowedTerrains)
{
JsonNode value(JsonNode::JsonType::DATA_STRING);
value.String() = VLC->terrainTypeHandler->getById(type)->name;
value.String() = VLC->terrainTypeHandler->getById(type)->identifier;
data.push_back(value);
}
}