1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

Extending hero info callback

Allow to check battle enemy hero details + adding max spell points to available data
This commit is contained in:
dydzio
2016-09-27 13:48:04 +02:00
parent 2576dd4692
commit d831c087d9
3 changed files with 12 additions and 1 deletions

View File

@ -3044,6 +3044,7 @@ void InfoAboutHero::initFromHero(const CGHeroInstance *h, bool detailed)
details->luck = h->LuckVal();
details->morale = h->MoraleVal();
details->mana = h->mana;
details->manaLimit = h->manaLimit();
details->primskills.resize(GameConstants::PRIMARY_SKILLS);
for (int i = 0; i < GameConstants::PRIMARY_SKILLS ; i++)