mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 13:53:51 +00:00
tradding skill use
This commit is contained in:
parent
5332546541
commit
ea8ee11ff7
1 changed files with 2 additions and 7 deletions
|
@ -241,12 +241,7 @@ namespace MWGui
|
||||||
}
|
}
|
||||||
|
|
||||||
//skill use!
|
//skill use!
|
||||||
MWWorld::LiveCellRef<ESM::NPC> *ref = playerPtr.get<ESM::NPC>();
|
MWWorld::Class::get(playerPtr).skillUsageSucceeded(playerPtr, ESM::Skill::Mercantile, 0);
|
||||||
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();
|
int iBarterSuccessDisposition = gmst.find("iBarterSuccessDisposition")->getInt();
|
||||||
|
|
Loading…
Reference in a new issue