|
|
@ -123,6 +123,11 @@ bool MWDialogue::Filter::testSelectStructs (const ESM::DialInfo& info) const
|
|
|
|
|
|
|
|
|
|
|
|
bool MWDialogue::Filter::testDisposition (const ESM::DialInfo& info) const
|
|
|
|
bool MWDialogue::Filter::testDisposition (const ESM::DialInfo& info) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
bool isCreature = (mActor.getTypeName() != typeid (ESM::NPC).name());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isCreature)
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
|
|
int actorDisposition = MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(mActor);
|
|
|
|
int actorDisposition = MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(mActor);
|
|
|
|
|
|
|
|
|
|
|
|
return actorDisposition >= info.mData.mDisposition;
|
|
|
|
return actorDisposition >= info.mData.mDisposition;
|
|
|
|