diff options
author | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-10 01:27:41 +0000 |
---|---|---|
committer | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-10 01:27:41 +0000 |
commit | e308a2a1912aaa0968f551e9284151cbf0a27054 (patch) | |
tree | ee64bed7296fdaf070f681d775514b8327d480ca /src/map/config/Data/Const.h | |
parent | be2fdb7066f39069d748a89a61f60f3b7b6f902e (diff) | |
download | hercules-e308a2a1912aaa0968f551e9284151cbf0a27054.tar.gz hercules-e308a2a1912aaa0968f551e9284151cbf0a27054.tar.bz2 hercules-e308a2a1912aaa0968f551e9284151cbf0a27054.tar.xz hercules-e308a2a1912aaa0968f551e9284151cbf0a27054.zip |
- Renamed 'RRConfig' folder to 'config'.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15052 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/config/Data/Const.h')
-rw-r--r-- | src/map/config/Data/Const.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/map/config/Data/Const.h b/src/map/config/Data/Const.h new file mode 100644 index 000000000..31f68fdbc --- /dev/null +++ b/src/map/config/Data/Const.h @@ -0,0 +1,33 @@ +#ifndef _RRCONFIGS_CONST_ +#define _RRCONFIGS_CONST_ +/** + * Ragnarok Resources Configuration File (http://ro-resources.net) + * The following settings are applied upon compiling the program, + * therefore any settings you disable will not even be added to the program + * making these settings the most performance-effiecient possible + **/ + +/** + * @INFO: This file holds constants that aims at making code smoother and more efficient + */ + +/** + * "Constants" + **/ +#define CONST_CASTRATE_SCALE ( RECASTING ? RECASTING_VMIN : battle_config.castrate_dex_scale ) +#define CONST_CASTRATE_CALC ( RECASTING ? ((status_get_dex(bl)*2)+status_get_int(bl)) : status_get_dex(bl) ) + +/** + * "Sane Checks" to save you from compiling with cool bugs + **/ +#if SECURE_NPCTIMEOUT_INTERVAL <= 0 + #error SECURE_NPCTIMEOUT_INTERVAL should be at least 1 (1s) +#endif +#if SECURE_NPCTIMEOUT < 0 + #error SECURE_NPCTIMEOUT cannot be lower than 0 +#endif + +/** + * End of File + **/ +#endif |