|
|
|
@ -12,6 +12,9 @@
|
|
|
|
|
#include "../mwworld/cellstore.hpp"
|
|
|
|
|
#include "../mwworld/physicssystem.hpp"
|
|
|
|
|
#include "../mwworld/actioneat.hpp"
|
|
|
|
|
#include "../mwworld/player.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwmechanics/npcstats.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwgui/tooltips.hpp"
|
|
|
|
|
|
|
|
|
@ -154,6 +157,10 @@ namespace MWClass
|
|
|
|
|
text += MWGui::ToolTips::getMiscString(ref->mBase->mScript, "Script");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MWWorld::Ptr player = MWBase::Environment::get().getWorld ()->getPlayer ().getPlayer();
|
|
|
|
|
MWMechanics::NpcStats& npcStats = MWWorld::Class::get(player).getNpcStats (player);
|
|
|
|
|
int alchemySkill = npcStats.getSkill (ESM::Skill::Alchemy).getBase();
|
|
|
|
|
|
|
|
|
|
MWGui::Widgets::SpellEffectList list;
|
|
|
|
|
for (int i=0; i<4; ++i)
|
|
|
|
|
{
|
|
|
|
@ -163,6 +170,12 @@ namespace MWClass
|
|
|
|
|
params.mEffectID = ref->mBase->mData.mEffectID[i];
|
|
|
|
|
params.mAttribute = ref->mBase->mData.mAttributes[i];
|
|
|
|
|
params.mSkill = ref->mBase->mData.mSkills[i];
|
|
|
|
|
|
|
|
|
|
params.mKnown = ( (i == 0 && alchemySkill >= 15)
|
|
|
|
|
|| (i == 1 && alchemySkill >= 30)
|
|
|
|
|
|| (i == 2 && alchemySkill >= 45)
|
|
|
|
|
|| (i == 3 && alchemySkill >= 60));
|
|
|
|
|
|
|
|
|
|
list.push_back(params);
|
|
|
|
|
}
|
|
|
|
|
info.effects = list;
|
|
|
|
|