mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
vcmi: fix first aid regression
This commit is contained in:
@@ -86,12 +86,6 @@
|
|||||||
"heals" : {
|
"heals" : {
|
||||||
"type" : "HEALER" ,
|
"type" : "HEALER" ,
|
||||||
"subtype" : "spell.firstAid"
|
"subtype" : "spell.firstAid"
|
||||||
},
|
|
||||||
"power" : {
|
|
||||||
"type" : "SPECIFIC_SPELL_POWER",
|
|
||||||
"subtype" : "spell.firstAid",
|
|
||||||
"val" : 10,
|
|
||||||
"valueType" : "BASE_NUMBER"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"graphics" :
|
"graphics" :
|
||||||
|
@@ -805,17 +805,17 @@
|
|||||||
},
|
},
|
||||||
"basic" : {
|
"basic" : {
|
||||||
"effects" : {
|
"effects" : {
|
||||||
"main" : { "val" : 40 }
|
"main" : { "val" : 50 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"advanced" : {
|
"advanced" : {
|
||||||
"effects" : {
|
"effects" : {
|
||||||
"main" : { "val" : 65 }
|
"main" : { "val" : 75 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"expert" : {
|
"expert" : {
|
||||||
"effects" : {
|
"effects" : {
|
||||||
"main" : { "val" : 90 }
|
"main" : { "val" : 100 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -818,8 +818,6 @@ static BonusParams convertDeprecatedBonus(const JsonNode &ability)
|
|||||||
if(!params.valRelevant) {
|
if(!params.valRelevant) {
|
||||||
params.val = static_cast<si32>(ability["val"].Float());
|
params.val = static_cast<si32>(ability["val"].Float());
|
||||||
params.valRelevant = true;
|
params.valRelevant = true;
|
||||||
if(params.type == Bonus::SPECIFIC_SPELL_POWER) //First Aid value should be substracted by 10
|
|
||||||
params.val -= 10; //Base First Aid value
|
|
||||||
}
|
}
|
||||||
Bonus::ValueType valueType = Bonus::ADDITIVE_VALUE;
|
Bonus::ValueType valueType = Bonus::ADDITIVE_VALUE;
|
||||||
if(!ability["valueType"].isNull())
|
if(!ability["valueType"].isNull())
|
||||||
|
Reference in New Issue
Block a user