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

remove base json from specialty bonuses

This commit is contained in:
Henning Koehler
2017-09-13 20:27:01 +12:00
parent eb02ce0f31
commit 038cb4bf19
4 changed files with 40 additions and 1 deletions

View File

@@ -766,7 +766,8 @@ void CHeroHandler::afterLoadFinalization()
if(!base.isEmpty())
{
specNode["base"] = base;
//TODO: subtract base from bonuses
for(JsonNode & node : specVec)
node = JsonUtils::difference(node, base);
}
}
// add json for bonuses