mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 00:23:51 +00:00
tradding skill use
This commit is contained in:
parent
8bcd7d8fb1
commit
5332546541
1 changed files with 8 additions and 0 deletions
|
@ -239,6 +239,14 @@ namespace MWGui
|
|||
MWBase::Environment::get().getDialogueManager()->applyTemporaryDispositionChange(iBarterFailDisposition);
|
||||
return;
|
||||
}
|
||||
|
||||
//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_);
|
||||
}
|
||||
|
||||
int iBarterSuccessDisposition = gmst.find("iBarterSuccessDisposition")->getInt();
|
||||
|
|
Loading…
Reference in a new issue