--- deliantra/server/include/define.h 2007/07/01 05:00:18 1.62 +++ deliantra/server/include/define.h 2007/08/16 06:36:56 1.69 @@ -74,11 +74,13 @@ #define MAX_AC 120 #define MIN_DAM 0 #define MAX_DAM 200 +#define MIN_DIGESTION -35 +#define MAX_DIGESTION 70 #define MAX_BUF 1024 /* Used for all kinds of things */ #define VERY_BIG_BUF 2048 -#define HUGE_BUF 4096 /* Used for messages - some can be quite long */ +#define HUGE_BUF 10240 /* Used for messages - some can be quite long */ #define SOCKET_BUFLEN 4096 /* Max length a packet could be */ #define FONTSIZE 3000 /* Max chars in font */ @@ -239,6 +241,7 @@ #define WAND 109 +#define INSCRIBABLE 110 // inscribable things, st 0 book st 1 spell #define SCROLL 111 #define DIRECTOR 112 #define GIRDLE 113 @@ -778,94 +781,6 @@ #define PREFER_HIGH 1 #define PREFER_LOW 0 -/* Simple function we use below to keep adding to the same string - * but also make sure we don't overwrite that string. - */ -static inline void -safe_strcat (char *dest, const char *orig, int *curlen, int maxlen) -{ - if (*curlen == (maxlen - 1)) - return; - - strncpy (dest + *curlen, orig, maxlen - *curlen - 1); - dest[maxlen - 1] = 0; - *curlen += strlen (orig); - - if (*curlen > (maxlen - 1)) - *curlen = maxlen - 1; -} - - -/* The SAFE versions of these call the safe_strcat function above. - * Ideally, all functions should use the SAFE functions, but they - * require some extra support in the calling function to remain as - * efficient. - */ -#define DESCRIBE_ABILITY_SAFE(retbuf, variable, name, len, maxlen) \ - if(variable) { \ - int i,j=0; \ - safe_strcat(retbuf,"(" name ": ", len, maxlen); \ - for(i=0; i