mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 03:15:32 +00:00
Fix faction requirement calculations (bug #5499)
This commit is contained in:
parent
3dc3fe06e2
commit
fde0f20a6f
2 changed files with 13 additions and 1 deletions
|
@ -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…
Reference in a new issue