1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

* added support for archery, offence and armorer secondary abilities

* hero's primary skills account for damage dealt by creatures in battle
* magical hero are given spellbook at the beginning
* added initial secondary skills for heroes
* minor fixes and improvements
This commit is contained in:
mateuszb
2008-09-29 11:03:30 +00:00
parent 917be0693d
commit 538ffb1579
13 changed files with 290 additions and 29 deletions

View File

@ -275,6 +275,10 @@ int CGHeroInstance::getCurrentMorale() const
//TODO: write it
return 0;
}
int CGHeroInstance::getPrimSkillLevel(int id) const
{
return primSkills[id];
}
int CGHeroInstance::getSecSkillLevel(const int & ID) const
{
for(int i=0;i<secSkills.size();i++)