summaryrefslogtreecommitdiff
path: root/src/common/mmo.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-05-06 00:19:06 +0200
committerGitHub <noreply@github.com>2019-05-06 00:19:06 +0200
commit574801d93c55b5ac41f9bdbd660f747f1c5aaa76 (patch)
tree473c9ada31454ae62f73215ade30687cd61a3b4e /src/common/mmo.h
parent31f47be4b26e69d2880e12530d021ce6c8c802ea (diff)
parent86a3d6ce9b259baf29d7cc05a8e75aa2b1e3ac24 (diff)
downloadhercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.tar.gz
hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.tar.bz2
hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.tar.xz
hercules-574801d93c55b5ac41f9bdbd660f747f1c5aaa76.zip
Merge pull request #2446 from hemagx/refinery_ui_update
Implement Refinery ui and Refine code refactor
Diffstat (limited to 'src/common/mmo.h')
-rw-r--r--src/common/mmo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index aafa54008..eb74d62b3 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -1366,6 +1366,10 @@ enum questinfo_type {
#define MAX_ITEMLIST MAX_STORAGE
#endif
+#ifndef MAX_REFINE_REQUIREMENTS
+ #define MAX_REFINE_REQUIREMENTS 4
+#endif
+
// sanity checks...
#if MAX_ZENY > INT_MAX
#error MAX_ZENY is too big
@@ -1379,4 +1383,8 @@ enum questinfo_type {
#error MAX_SKILL has been replaced by MAX_SKILL_DB. Please update your custom definitions.
#endif
+#if MAX_REFINE_REQUIREMENTS > 4
+#error MAX_REFINE_REQUIREMENTS is bigger than allowed, this is a hardcoded limit in the client
+#endif
+
#endif /* COMMON_MMO_H */