tradding skill use

actorid
eduard 12 years ago
parent 5332546541
commit ea8ee11ff7

@ -241,13 +241,8 @@ 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();
MWBase::Environment::get().getDialogueManager()->applyTemporaryDispositionChange(iBarterSuccessDisposition); MWBase::Environment::get().getDialogueManager()->applyTemporaryDispositionChange(iBarterSuccessDisposition);

Loading…
Cancel
Save