[Tasks] Change zone task data container (#2410)

This allows removal of the task id limit (MAXTASKS)

There's some suspect places task data isn't verified but left unchanged

If memory use becomes too high once more live data is added tasks can be
stored in shared memory instead
This commit is contained in:
hg
2022-09-03 04:33:49 -04:00
committed by GitHub
parent ec857cefae
commit efe1879115
7 changed files with 263 additions and 256 deletions
+2 -3
View File
@@ -5,7 +5,6 @@
#include <algorithm>
#include <array>
#define MAXTASKS 10000
#define MAXTASKSETS 1000
#define MAXACTIVEQUESTS 19 // The Client has a hard cap of 19 active quests, 29 in SoD+
#define MAXCHOOSERENTRIES 40 // The Max Chooser (Task Selector entries) is capped at 40 in the Titanium Client.
@@ -223,8 +222,8 @@ struct TaskInformation {
int reward_points;
AltCurrencyType reward_point_type;
int activity_count{};
short min_level{};
short max_level{};
uint8_t min_level{};
uint8_t max_level{};
int level_spread;
int min_players;
int max_players;