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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user