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

tradding skill use

This commit is contained in:
eduard 2012-12-06 14:25:53 +01:00
parent 5332546541
commit ea8ee11ff7

View file

@ -241,12 +241,7 @@ namespace MWGui
}
//skill use!
MWWorld::LiveCellRef<ESM::NPC> *ref = playerPtr.get<ESM::NPC>();
const ESM::Class *class_ =
MWBase::Environment::get().getWorld()->getStore().get<ESM::Class>().find (
ref->mBase->mClass
);
playerSkill.useSkill(ESM::Skill::Mercantile,*class_);
MWWorld::Class::get(playerPtr).skillUsageSucceeded(playerPtr, ESM::Skill::Mercantile, 0);
}
int iBarterSuccessDisposition = gmst.find("iBarterSuccessDisposition")->getInt();