1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Some more fixes for limiters and specialties.

This commit is contained in:
DjWarmonger
2013-01-19 18:52:13 +00:00
parent 79062eb15c
commit 1e90de3c9f
3 changed files with 3 additions and 2 deletions

View File

@ -1181,7 +1181,6 @@ void CGHeroInstance::Updatespecialty() //TODO: calculate special value of bonuse
param = creatures[b->additionalInfo]->Defense(); param = creatures[b->additionalInfo]->Defense();
break; break;
default: default:
assert(0);
param = 0; param = 0;
} }
b->val = ceil(param * (1 + primSkillModifier)) - param; //yep, overcomplicated but matches original b->val = ceil(param * (1 + primSkillModifier)) - param; //yep, overcomplicated but matches original

View File

@ -328,7 +328,7 @@ public:
struct DLL_LINKAGE HeroSpecial : CBonusSystemNode struct DLL_LINKAGE HeroSpecial : CBonusSystemNode
{ {
bool growsWithLevel; ui8 growsWithLevel;
HeroSpecial(){growsWithLevel = false;}; HeroSpecial(){growsWithLevel = false;};

View File

@ -1065,6 +1065,8 @@ Bonus * JsonUtils::parseBonus (const JsonNode &ability)
} }
else else
l2->includeUpgrades = false; l2->includeUpgrades = false;
l = l2;
} }
if (limiter["type"].String() == "HAS_ANOTHER_BONUS_LIMITER") if (limiter["type"].String() == "HAS_ANOTHER_BONUS_LIMITER")
{ {