1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

json validation & mithril remove

This commit is contained in:
Laserlicht
2025-09-16 01:52:47 +02:00
parent 2bf9454b77
commit 3ec731ef6e
11 changed files with 20 additions and 74 deletions

View File

@@ -375,8 +375,7 @@ void CQuest::serializeJson(JsonSerializeFormat & handler, const std::string & fi
auto r = handler.enterStruct("resources");
for(auto & idx : LIBRARY->resourceTypeHandler->getAllObjects())
if(idx != GameResID::MITHRIL)
handler.serializeInt(idx.toResource()->getJsonKey(), mission.resources[idx], 0);
handler.serializeInt(idx.toResource()->getJsonKey(), mission.resources[idx], 0);
}
if(missionType == "Hero")