mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix validation of addInfo of bonuses
- Added missing docs on addInfo of some bonuses - Unified naming in docs to match json keys - Removed addInfo from bonuses that don't actually support it - Added loading of addInfo to bonuses that support it
This commit is contained in:
@@ -214,9 +214,12 @@ static void loadBonusAddInfo(CAddInfo & var, BonusType type, const JsonNode & no
|
||||
case BonusType::DESTRUCTION:
|
||||
case BonusType::LIMITED_SHOOTING_RANGE:
|
||||
case BonusType::ACID_BREATH:
|
||||
case BonusType::BIND_EFFECT:
|
||||
case BonusType::SPELLCASTER:
|
||||
case BonusType::FEROCITY:
|
||||
case BonusType::PRIMARY_SKILL:
|
||||
case BonusType::ENCHANTER:
|
||||
case BonusType::SPECIAL_PECULIAR_ENCHANT:
|
||||
// 1 number
|
||||
var = getFirstValue(value).Integer();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user