1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Implemented visit mode "limiter". Fixed h3m variable loading

This commit is contained in:
Ivan Savenko
2023-09-30 21:22:31 +03:00
parent fd01a25352
commit a3b2354481
9 changed files with 37 additions and 13 deletions

View File

@@ -101,6 +101,9 @@ bool Rewardable::Limiter::heroAllowed(const CGHeroInstance * hero) const
if(manaPoints > hero->mana)
return false;
if (canLearnSkills && !hero->canLearnSkill())
return false;
if(manaPercentage > 100 * hero->mana / hero->manaLimit())
return false;