Split quest flags into two separate boolean values

This commit is contained in:
2023-01-22 18:14:04 -05:00
parent b19356757d
commit b03c34396d
10 changed files with 28 additions and 23 deletions

View File

@@ -13,7 +13,8 @@ enum class eQuestStatus {AVAILABLE, STARTED, COMPLETED, FAILED};
class cQuest {
public:
short flags = 0; // 0 - absolute deadline, 1 - relative to when quest started, +10 - start quest when scenario starts
bool deadline_is_relative = false;
bool auto_start = false;
short deadline = -1;
short event = -1; // if this event occurs before the deadline, then the deadline is waived
short xp = 0, gold = 0; // automatically award this much XP and gold to the party when the quest is marked complete