1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fixed Tree of Knowledge component

This commit is contained in:
Ivan Savenko 2023-01-24 17:35:06 +02:00
parent 3ba8d708f8
commit ca6947b2cc

View File

@ -426,7 +426,8 @@ void CRewardInfo::loadComponents(std::vector<Component> & comps,
comps.push_back(Component(
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));