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:
@ -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++)
|
||||
|
Reference in New Issue
Block a user