--- deliantra/server/include/define.h 2007/07/10 05:51:38 1.64 +++ deliantra/server/include/define.h 2007/07/21 14:37:25 1.66 @@ -74,6 +74,8 @@ #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 */ @@ -778,94 +780,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