mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 13:15:53 +12:00
fix quest unlocking
This commit is contained in:
parent
c9c81d721e
commit
6795f3143a
3 changed files with 22 additions and 17 deletions
|
@ -109,12 +109,12 @@ namespace HISP.Game
|
|||
|
||||
// Has completed other required quests?
|
||||
foreach (int questId in quest.RequiresQuestIdCompleted)
|
||||
if (user.Quests.GetTrackedQuestAmount(quest.Id) < 1)
|
||||
if (user.Quests.GetTrackedQuestAmount(questId) < 1)
|
||||
return false;
|
||||
|
||||
// Has NOT competed other MUST NOT BE required quests
|
||||
foreach (int questId in quest.RequiresQuestIdNotCompleted)
|
||||
if (user.Quests.GetTrackedQuestAmount(quest.Id) > 1)
|
||||
if (user.Quests.GetTrackedQuestAmount(questId) > 1)
|
||||
return false;
|
||||
|
||||
// Has allready tracked this quest?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue