Fix faction requirement calculations (bug #5499)

pull/2935/head
Andrei Kortunov 4 years ago
parent 3dc3fe06e2
commit fde0f20a6f

@ -32,6 +32,7 @@
Bug #5479: NPCs who should be walking around town are standing around without walking
Bug #5484: Zero value items shouldn't be able to be bought or sold for 1 gold
Bug #5490: Hits to carried left slot aren't redistributed if there's no shield equipped
Bug #5499: Faction advance is available when requirements not met
Feature #390: 3rd person look "over the shoulder"
Feature #2386: Distant Statics in the form of Object Paging
Feature #5297: Add a search function to the "Datafiles" tab of the OpenMW launcher

@ -415,7 +415,18 @@ bool MWMechanics::NpcStats::hasSkillsForRank (const std::string& factionId, int
if (skills.size() < 2)
return true;
return *++iter>=rankData.mSkill2;
iter++;
if (*iter<rankData.mSkill2)
return false;
if (skills.size() < 3)
return true;
iter++;
if (*iter<rankData.mSkill2)
return false;
return true;
}
bool MWMechanics::NpcStats::isWerewolf() const

Loading…
Cancel
Save