added docs and fixed desc loading from item def

This commit is contained in:
GHOST11111100
2025-07-26 17:58:57 +03:00
parent 59d706323a
commit 0caed92baa
5 changed files with 21 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@ template<> void ContentUnitLoader<ItemDef>::loadUnit(
parentDef->cloneTo(def);
}
root.at("caption").get(def.caption);
root.at("description").get(def.description);
std::string iconTypeStr = "";
root.at("icon-type").get(iconTypeStr);