From 3f6b7497531f9ace331ca74d271898e938245c04 Mon Sep 17 00:00:00 2001 From: Carlos Date: Tue, 18 Sep 2018 17:10:35 -0300 Subject: Added ifdef on mmo.h to allow change it with CPPFLAGS --- src/common/mmo.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/common') 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 -- cgit v1.2.3-60-g2f50