mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
- console logger by default uses same format as previously (no extra data)
- a lot of changes in configs; - - update to creature format - abilities are now json structure - - multiple bugfixes revealed by validation - made schemas a bit more strict - creatures data can be replaced via mods - it is possible to validate vcmi configs using schemas (disabled)
This commit is contained in:
@@ -123,6 +123,7 @@ void CHeroClassHandler::load()
|
||||
JsonNode & classData = h3Data[numeric];
|
||||
JsonUtils::merge(classData, node.second);
|
||||
|
||||
//JsonUtils::validate(classData, "vcmi:heroClass", node.first);
|
||||
heroClasses[numeric] = loadClass(classData);
|
||||
heroClasses[numeric]->id = numeric;
|
||||
|
||||
@@ -457,6 +458,8 @@ void CHeroHandler::loadHeroes()
|
||||
{
|
||||
ui32 identifier = entry.second["id"].Float();
|
||||
JsonUtils::merge(h3Data[identifier], entry.second);
|
||||
|
||||
//JsonUtils::validate(h3Data[identifier], "vcmi:hero", entry.first);
|
||||
CHero * hero = loadHero(h3Data[identifier]);
|
||||
hero->ID = identifier;
|
||||
heroes[identifier] = hero;
|
||||
|
||||
Reference in New Issue
Block a user