1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Implemented object schema. Commiting current progress before sync with

upstream.
This commit is contained in:
Ivan Savenko
2014-06-03 21:43:33 +03:00
parent 67f11b1a01
commit dc7f820161
8 changed files with 261 additions and 217 deletions

View File

@@ -658,6 +658,7 @@ void CArtHandler::afterLoadFinalization()
// add new template.
// Necessary for objects added via mods that don't have any templates in H3
VLC->objtypeh->createObject(art->Name(), JsonNode(), Obj::ARTIFACT, art->id.num);
VLC->objtypeh->getHandlerFor(Obj::ARTIFACT, art->id)->addTemplate(base);
}
}