fix quest bug checking wrong conditions

This commit is contained in:
2026-04-11 22:04:39 -05:00
parent 54db4e4b73
commit 77625e7ad5
5 changed files with 103 additions and 5 deletions
@@ -60,12 +60,12 @@ private void Awake()
QuestBool[] QID2_List = new QuestBool[1];
// QID2_1_completedQuest3
QID1_List[0] = new QuestBool(() =>
QID2_List[0] = new QuestBool(() =>
{
return CompletedQuests.Contains(3);
});
questBoolMap.Add(2, QID1_List);
questBoolMap.Add(2, QID2_List);
#endregion
#region 3 - (Story Quest #1.5) First Paycheck
@@ -75,17 +75,18 @@ private void Awake()
QuestBool[] QID3_List = new QuestBool[1];
// QID3_1_hasEnoughStarshards
QID1_List[0] = new QuestBool(() =>
QID3_List[0] = new QuestBool(() =>
{
return GameManager.Instance.Inventory.GetItemQuantity(ItemIdEnum.STAR_SHARD) > 0;
});
questBoolMap.Add(3, QID1_List);
questBoolMap.Add(3, QID3_List);
#endregion
return questBoolMap;
}
#region Save/Load Quest Data
// Save completed quests to disk
public void SaveQuestData(ref QuestSaveData data)
{
@@ -113,6 +114,7 @@ public void LoadQuestData(QuestSaveData data)
Instance.CompletedQuests = new List<int>();
}
}
#endregion
}
public class QuestBool