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