1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Merge pull request #1705 from rilian-la-te/convert-scouting

HeroBonus: add scouting to converter
This commit is contained in:
Ivan Savenko 2023-03-17 22:14:54 +02:00 committed by GitHub
commit 95d56d3f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1757,6 +1757,8 @@ BonusParams::BonusParams(std::string deprecatedTypeStr, std::string deprecatedSu
type = Bonus::MAGIC_RESISTANCE;
else if(deprecatedSubtype == SecondarySkill::EAGLE_EYE || deprecatedSubtypeStr == "skill.eagleEye")
type = Bonus::LEARN_BATTLE_SPELL_CHANCE;
else if(deprecatedSubtype == SecondarySkill::SCOUTING || deprecatedSubtypeStr == "skill.scouting")
type = Bonus::SIGHT_RADIUS;
else if(deprecatedSubtype == SecondarySkill::INTELLIGENCE || deprecatedSubtypeStr == "skill.intelligence")
{
type = Bonus::MANA_PER_KNOWLEDGE;