|
|
|
@ -156,6 +156,9 @@ namespace MWClass
|
|
|
|
|
MWMechanics::NpcStats& npcStats = MWWorld::Class::get(player).getNpcStats (player);
|
|
|
|
|
int alchemySkill = npcStats.getSkill (ESM::Skill::Alchemy).getBase();
|
|
|
|
|
|
|
|
|
|
static const float fWortChanceValue =
|
|
|
|
|
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fWortChanceValue")->getFloat();
|
|
|
|
|
|
|
|
|
|
MWGui::Widgets::SpellEffectList list;
|
|
|
|
|
for (int i=0; i<4; ++i)
|
|
|
|
|
{
|
|
|
|
@ -166,10 +169,10 @@ namespace MWClass
|
|
|
|
|
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));
|
|
|
|
|
params.mKnown = ( (i == 0 && alchemySkill >= fWortChanceValue)
|
|
|
|
|
|| (i == 1 && alchemySkill >= fWortChanceValue*2)
|
|
|
|
|
|| (i == 2 && alchemySkill >= fWortChanceValue*3)
|
|
|
|
|
|| (i == 3 && alchemySkill >= fWortChanceValue*4));
|
|
|
|
|
|
|
|
|
|
list.push_back(params);
|
|
|
|
|
}
|
|
|
|
|