mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 12:39:59 +00:00
Take in account PC rank during disposition calculation (bug #4322)
This commit is contained in:
parent
b1b8e31562
commit
f626a7fcc7
@ -566,9 +566,16 @@ namespace MWMechanics
|
||||
{
|
||||
std::string itFaction = playerFactionIt->first;
|
||||
|
||||
// Ignore the faction, if a player was expelled from it.
|
||||
if (playerStats.getExpelled(itFaction))
|
||||
continue;
|
||||
|
||||
int itReaction = MWBase::Environment::get().getDialogueManager()->getFactionReaction(npcFaction, itFaction);
|
||||
if (playerFactionIt == playerStats.getFactionRanks().begin() || itReaction < reaction)
|
||||
{
|
||||
reaction = static_cast<float>(itReaction);
|
||||
rank = playerFactionIt->second;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user