summaryrefslogtreecommitdiff
path: root/src/map/config/const.h
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-09 23:21:18 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-09 23:21:18 +0000
commit7d50f79a9c5c5de524b4e532d3ce1b2fd0745857 (patch)
treeb7eb5c8d352702638cd7820cde8ee5d508bc4096 /src/map/config/const.h
parent059ae946435c89351b95d9a647e7cc37541ba5e2 (diff)
downloadhercules-7d50f79a9c5c5de524b4e532d3ce1b2fd0745857.tar.gz
hercules-7d50f79a9c5c5de524b4e532d3ce1b2fd0745857.tar.bz2
hercules-7d50f79a9c5c5de524b4e532d3ce1b2fd0745857.tar.xz
hercules-7d50f79a9c5c5de524b4e532d3ce1b2fd0745857.zip
- Follow-up to r15837, fixed compiler error due to missing header file
- Cleaned upper-case file naming which goes against coding standards git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15838 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/config/const.h')
-rw-r--r--src/map/config/const.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/map/config/const.h b/src/map/config/const.h
new file mode 100644
index 000000000..dc85bda82
--- /dev/null
+++ b/src/map/config/const.h
@@ -0,0 +1,72 @@
+// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
+// For more information, see LICENCE in the main folder
+#ifndef _RRCONFIGS_CONST_
+#define _RRCONFIGS_CONST_
+
+/**
+ * rAthena configuration file (http://rathena.org)
+ * For detailed guidance on these check http://rathena.org/wiki/SRC/map/config/
+ **/
+
+/**
+ * @INFO: This file holds constants that aims at making code smoother and more efficient
+ */
+
+/**
+ * "Constants"
+ **/
+#ifdef RENEWAL_CAST
+
+ #ifndef RENEWAL
+ #error RENEWAL_CAST requires RENEWAL enabled
+ #endif
+
+ #define CONST_CASTRATE_SCALE RENEWAL_CAST_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
+ **/
+#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
+
+/**
+ * Path within the /db folder to (non-)renewal specific db files
+ **/
+#ifdef RENEWAL
+ #define DBPATH "re/"
+#else
+ #define DBPATH "pre-re/"
+#endif
+
+/**
+ * DefType
+ **/
+#ifdef RENEWAL
+ typedef short defType;
+ #define DEFTYPE_MIN SHRT_MIN
+ #define DEFTYPE_MAX SHRT_MAX
+#else
+ typedef signed char defType;
+ #define DEFTYPE_MIN CHAR_MIN
+ #define DEFTYPE_MAX CHAR_MAX
+#endif
+
+/**
+ * End of File
+ **/
+#endif