1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:23:52 +00:00

The number of skills points a trainer can teach is based either on its base

values or on its modified ones depending on the new setting 'trainers training
 skills based on base skill' value
This commit is contained in:
CedricMocquillon 2020-07-06 20:30:14 +02:00
parent 281cef9769
commit 1aa4f6bf96

View file

@ -154,7 +154,7 @@ namespace MWGui
if (price > player.getClass().getContainerStore(player).count(MWWorld::ContainerStore::sGoldId))
return;
if (mPtr.getClass().getSkill(mPtr, skillId) <= pcStats.getSkill (skillId).getBase ())
if (getSkillForTraining(mPtr.getClass().getNpcStats(mPtr), skillId) <= pcStats.getSkill(skillId).getBase())
{
MWBase::Environment::get().getWindowManager()->messageBox ("#{sServiceTrainingWords}");
return;