diff options
author | Carlos <carloshlfzanon@gmail.com> | 2018-09-18 17:10:35 -0300 |
---|---|---|
committer | Carlos Henrique <carloshlfzanon@gmail.com> | 2018-11-27 13:33:42 -0200 |
commit | 3f6b7497531f9ace331ca74d271898e938245c04 (patch) | |
tree | 5779f5a49338561fd1965008d9aa52e01499821d /src | |
parent | 41d370cd3308be48b4ce00a50ee46515742978b0 (diff) | |
download | hercules-3f6b7497531f9ace331ca74d271898e938245c04.tar.gz hercules-3f6b7497531f9ace331ca74d271898e938245c04.tar.bz2 hercules-3f6b7497531f9ace331ca74d271898e938245c04.tar.xz hercules-3f6b7497531f9ace331ca74d271898e938245c04.zip |
Added ifdef on mmo.h to allow change it with CPPFLAGS
Diffstat (limited to 'src')
-rw-r--r-- | src/common/mmo.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h index 9bcf82cc7..78a14e20c 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -132,7 +132,9 @@ #endif // PACKETVER_RE && (PACKETVER == 20120410 || PACKETVER == 10120418) // Comment the following line to disable sc_data saving. [Skotlex] +#ifndef ENABLE_SC_SAVING #define ENABLE_SC_SAVING +#endif #if PACKETVER >= 20070227 // Comment the following like to disable server-side hot-key saving support. [Skotlex] @@ -163,9 +165,13 @@ #else #define MAX_BASE_CARTS 5 #endif +#ifndef MAX_CARTS #define MAX_CARTS (MAX_BASE_CARTS + MAX_CARTDECORATION_CARTS) +#endif +#ifndef MAX_INVENTORY #define MAX_INVENTORY 100 +#endif //Max number of characters per account. Note that changing this setting alone is not enough if the client is not hexed to support more characters as well. #if PACKETVER >= 20100413 #ifndef MAX_CHARS @@ -178,19 +184,31 @@ #endif //Number of slots carded equipment can have. Never set to less than 4 as they are also used to keep the data of forged items/equipment. [Skotlex] //Note: The client seems unable to receive data for more than 4 slots due to all related packets having a fixed size. +#ifndef MAX_SLOTS #define MAX_SLOTS 4 +#endif //Max amount of a single stacked item +#ifndef MAX_AMOUNT #define MAX_AMOUNT 30000 +#endif +#ifndef MAX_ZENY #define MAX_ZENY INT_MAX +#endif //Official Limit: 2.1b ( the var that stores the money doesn't go much higher than this by default ) +#ifndef MAX_BANK_ZENY #define MAX_BANK_ZENY INT_MAX +#endif #ifndef MAX_LEVEL #define MAX_LEVEL 175 #endif +#ifndef MAX_FAME #define MAX_FAME 1000000000 +#endif +#ifndef MAX_CART #define MAX_CART 100 +#endif #ifndef MAX_SKILL_DB #define MAX_SKILL_DB 1510 ///< Maximum number of skills in the skill DB (compacted array size) #endif |