1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Update bonuses docs

This commit is contained in:
Ivan Savenko
2023-09-23 19:24:20 +03:00
parent 403acc0cf1
commit 43246477d4
3 changed files with 34 additions and 40 deletions

View File

@@ -177,8 +177,6 @@ JsonNode Bonus::toJsonNode() const
root["subtype"] = subtypeToJson(type, subtype);
if(additionalInfo != CAddInfo::NONE)
root["addInfo"] = additionalInfoToJson(type, additionalInfo);
if(turnsRemain != 0)
root["turns"].Integer() = turnsRemain;
if(source != BonusSource::OTHER)
root["sourceType"].String() = vstd::findKey(bonusSourceMap, source);
if(targetSourceType != BonusSource::OTHER)