Browse Source

Merge pull request #1722 from rilian-la-te/fix-first-aid

vcmi: fix first aid regression
Ivan Savenko 2 years ago
parent
commit
9289646dab
3 changed files with 3 additions and 11 deletions
  1. 0 6
      config/creatures/special.json
  2. 3 3
      config/skills.json
  3. 0 2
      lib/JsonNode.cpp

+ 0 - 6
config/creatures/special.json

@@ -86,12 +86,6 @@
 			"heals" : {
 				"type" : "HEALER" ,
 				"subtype" : "spell.firstAid"
-			},
-			"power" : {
-				"type" : "SPECIFIC_SPELL_POWER",
-				"subtype" : "spell.firstAid",
-				"val" : 10,
-				"valueType" : "BASE_NUMBER"
 			}
 		},
 		"graphics" :

+ 3 - 3
config/skills.json

@@ -805,17 +805,17 @@
 		},
 		"basic" : {
 			"effects" : {
-				"main" : { "val" : 40 }
+				"main" : { "val" : 50 }
 			}
 		},
 		"advanced" : {
 			"effects" : {
-				"main" : { "val" : 65 }
+				"main" : { "val" : 75 }
 			}
 		},
 		"expert" : {
 			"effects" : {
-				"main" : { "val" : 90 }
+				"main" : { "val" : 100 }
 			}
 		}
 	}

+ 0 - 2
lib/JsonNode.cpp

@@ -818,8 +818,6 @@ static BonusParams convertDeprecatedBonus(const JsonNode &ability)
 			if(!params.valRelevant) {
 				params.val = static_cast<si32>(ability["val"].Float());
 				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;
 			if(!ability["valueType"].isNull())