diff options
author | shennetsind <ind@henn.et> | 2013-12-04 11:36:31 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-04 11:36:31 -0200 |
commit | 2350c7e6a28630c0157ebca7e41f96b7716e79ce (patch) | |
tree | 2114c6ed441588450b01473e3896d620e513eaac /src/common/mmo.h | |
parent | 85023b1aad64d2b3b5d5ff53e1704abe0e689aa9 (diff) | |
parent | fdd8d1556526abcfbc95263aa3b0a651e7f4cf0a (diff) | |
download | hercules-2350c7e6a28630c0157ebca7e41f96b7716e79ce.tar.gz hercules-2350c7e6a28630c0157ebca7e41f96b7716e79ce.tar.bz2 hercules-2350c7e6a28630c0157ebca7e41f96b7716e79ce.tar.xz hercules-2350c7e6a28630c0157ebca7e41f96b7716e79ce.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/common/mmo.h')
-rw-r--r-- | src/common/mmo.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h index 5816b467c..47257265f 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -119,7 +119,6 @@ #define MAX_GUILDSKILL 15 // Increased max guild skills because of new skills [Sara-chan] #define MAX_GUILDLEVEL 50 #define MAX_GUARDIANS 8 // Local max per castle. [Skotlex] -#define MAX_QUEST_DB 2670 // Max quests that the server will load #define MAX_QUEST_OBJECTIVES 3 // Max quest objectives for a quest #define MAX_START_ITEMS 32 // Max number of items allowed to be given to a char whenever it's created. [mkbu95] @@ -202,14 +201,19 @@ enum item_types { }; -// Questlog system [Kevin] [Inkfish] -typedef enum quest_state { Q_INACTIVE, Q_ACTIVE, Q_COMPLETE } quest_state; +// Questlog states +enum quest_state { + Q_INACTIVE, ///< Inactive quest (the user can toggle between active and inactive quests) + Q_ACTIVE, ///< Active quest + Q_COMPLETE, ///< Completed quest +}; +/// Questlog entry struct quest { - int quest_id; - unsigned int time; - int count[MAX_QUEST_OBJECTIVES]; - quest_state state; + int quest_id; ///< Quest ID + unsigned int time; ///< Expiration time + int count[MAX_QUEST_OBJECTIVES]; ///< Kill counters of each quest objective + enum quest_state state; ///< Current quest state }; struct item { |