mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fixed Tree of Knowledge component
This commit is contained in:
@@ -426,7 +426,8 @@ void CRewardInfo::loadComponents(std::vector<Component> & comps,
|
|||||||
comps.push_back(Component(
|
comps.push_back(Component(
|
||||||
Component::EXPERIENCE, 0, (si32)h->calculateXp(gainedExp), 0));
|
Component::EXPERIENCE, 0, (si32)h->calculateXp(gainedExp), 0));
|
||||||
}
|
}
|
||||||
if (gainedLevels) comps.push_back(Component(Component::EXPERIENCE, 0, gainedLevels, 0));
|
if (gainedLevels)
|
||||||
|
comps.push_back(Component(Component::EXPERIENCE, 1, gainedLevels, 0));
|
||||||
|
|
||||||
if (manaDiff) comps.push_back(Component(Component::PRIM_SKILL, 5, manaDiff, 0));
|
if (manaDiff) comps.push_back(Component(Component::PRIM_SKILL, 5, manaDiff, 0));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user