Minor defines cleanup; moved AUTOLOOTITEM_SIZE from pc.h to Core.h

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15552 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
shennetsind 2012-02-09 00:52:58 +00:00
parent 02ef1cadcb
commit 624a7e267d
3 changed files with 19 additions and 5 deletions

View File

@ -11,6 +11,11 @@
**/ **/
#define MAX_REFINE 20 #define MAX_REFINE 20
/**
* Max number of items on @autolootid list
**/
#define AUTOLOOTITEM_SIZE 10
//Uncomment to enable the Cell Stack Limit mod. //Uncomment to enable the Cell Stack Limit mod.
//It's only config is the battle_config cell_stack_limit. //It's only config is the battle_config cell_stack_limit.
//Only chars affected are those defined in BL_CHAR (mobs and players currently) //Only chars affected are those defined in BL_CHAR (mobs and players currently)

View File

@ -12,8 +12,20 @@
/** /**
* "Constants" * "Constants"
**/ **/
#define CONST_CASTRATE_SCALE ( RECASTING ? RECASTING_VMIN : battle_config.castrate_dex_scale ) #if RECASTING
#define CONST_CASTRATE_CALC ( RECASTING ? ((status_get_dex(bl)*2)+status_get_int(bl)) : status_get_dex(bl) ) #define CONST_CASTRATE_SCALE RECASTING_VMIN
/**
* Cast Rate Formula: (DEX x 2)+INT
**/
#define CONST_CASTRATE_CALC ((status_get_dex(bl)*2)+status_get_int(bl))
#else
#define CONST_CASTRATE_SCALE battle_config.castrate_dex_scale
/**
* Cast Rate Formula: (DEX)
**/
#define CONST_CASTRATE_CALC (status_get_dex(bl))
#endif
/** /**
* "Sane Checks" to save you from compiling with cool bugs * "Sane Checks" to save you from compiling with cool bugs

View File

@ -25,9 +25,6 @@
//For Warlock //For Warlock
#define MAX_SPELLBOOK 10 #define MAX_SPELLBOOK 10
//Max number of items on @autolootid list
#define AUTOLOOTITEM_SIZE 10
struct weapon_data { struct weapon_data {
int atkmods[3]; int atkmods[3];
// all the variables except atkmods get zero'ed in each call of status_calc_pc // all the variables except atkmods get zero'ed in each call of status_calc_pc