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

scouting uses SIGHT_RADIUS bonus

This commit is contained in:
Henning Koehler 2017-08-26 17:33:00 +12:00
parent e8c32e05d8
commit 1fa6cbe514
3 changed files with 105 additions and 1 deletions

View File

@ -34,6 +34,108 @@
]
}
},
"archery" : {
"basic" : {
"description" : "",
"effects" : [
{
"subtype" : "skill.archery",
"type" : "SECONDARY_SKILL_PREMY",
"val" : 10,
"valueType" : "BASE_NUMBER"
}
]
},
"advanced" : {
"description" : "",
"effects" : [
{
"subtype" : "skill.archery",
"type" : "SECONDARY_SKILL_PREMY",
"val" : 25,
"valueType" : "BASE_NUMBER"
}
]
},
"expert" : {
"description" : "",
"effects" : [
{
"subtype" : "skill.archery",
"type" : "SECONDARY_SKILL_PREMY",
"val" : 50,
"valueType" : "BASE_NUMBER"
}
]
}
},
"logistics" : {
"basic" : {
"description" : "",
"effects" : [
{
"subtype" : "skill.logistics",
"type" : "SECONDARY_SKILL_PREMY",
"val" : 10,
"valueType" : "BASE_NUMBER"
}
]
},
"advanced" : {
"description" : "",
"effects" : [
{
"subtype" : "skill.logistics",
"type" : "SECONDARY_SKILL_PREMY",
"val" : 20,
"valueType" : "BASE_NUMBER"
}
]
},
"expert" : {
"description" : "",
"effects" : [
{
"subtype" : "skill.logistics",
"type" : "SECONDARY_SKILL_PREMY",
"val" : 30,
"valueType" : "BASE_NUMBER"
}
]
}
},
"scouting" : {
"basic" : {
"description" : "",
"effects" : [
{
"type" : "SIGHT_RADIOUS",
"val" : 1,
"valueType" : "BASE_NUMBER"
}
]
},
"advanced" : {
"description" : "",
"effects" : [
{
"type" : "SIGHT_RADIOUS",
"val" : 2,
"valueType" : "BASE_NUMBER"
}
]
},
"expert" : {
"description" : "",
"effects" : [
{
"type" : "SIGHT_RADIOUS",
"val" : 3,
"valueType" : "BASE_NUMBER"
}
]
}
},
"estates" : {
"basic" : {
"description" : "",

View File

@ -223,6 +223,8 @@ const std::shared_ptr<Bonus> CSkillHandler::defaultBonus(SecondarySkill skill, i
bonusVal = 5 + 5 * level * level; break;
case SecondarySkill::LOGISTICS:
bonusVal = 10 * level; break;
case SecondarySkill::SCOUTING:
bonusType = Bonus::SIGHT_RADIOUS; break;
case SecondarySkill::DIPLOMACY:
bonusType = Bonus::SURRENDER_DISCOUNT;
bonusVal = 20 * level; break;

View File

@ -1071,7 +1071,7 @@ int3 CGHeroInstance::getSightCenter() const
int CGHeroInstance::getSightRadius() const
{
return 5 + getSecSkillLevel(SecondarySkill::SCOUTING) + valOfBonuses(Bonus::SIGHT_RADIOUS); //default + scouting
return 5 + valOfBonuses(Bonus::SIGHT_RADIOUS); // scouting gives SIGHT_RADIUS bonus
}
si32 CGHeroInstance::manaRegain() const