summaryrefslogtreecommitdiff
path: root/src/map/elemental.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-14 21:30:32 +0100
committerHaru <haru@dotalux.com>2015-12-28 18:36:00 +0100
commit7ac8f603c647790aee85106e97fc9f7672e4d436 (patch)
tree93d3b846d7dcf30df6429cc170e0a3959c6ee9bc /src/map/elemental.h
parent5db7c13c4a37bc688a464d369beab0bc31984bd5 (diff)
downloadhercules-7ac8f603c647790aee85106e97fc9f7672e4d436.tar.gz
hercules-7ac8f603c647790aee85106e97fc9f7672e4d436.tar.bz2
hercules-7ac8f603c647790aee85106e97fc9f7672e4d436.tar.xz
hercules-7ac8f603c647790aee85106e97fc9f7672e4d436.zip
Added elemental_id enum, replaced numeric elemental IDs with enum members
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/elemental.h')
-rw-r--r--src/map/elemental.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/map/elemental.h b/src/map/elemental.h
index 1618c0d15..1a98670e0 100644
--- a/src/map/elemental.h
+++ b/src/map/elemental.h
@@ -29,6 +29,25 @@
#include <stdarg.h>
/**
+ * Enums
+ */
+/// Elemental IDs
+enum elemental_id {
+ ELEID_EL_AGNI_S = 2114, ///< EL_AGNI_S / Agni
+ ELEID_EL_AGNI_M = 2115, ///< EL_AGNI_M / Agni
+ ELEID_EL_AGNI_L = 2116, ///< EL_AGNI_L / Agni
+ ELEID_EL_AQUA_S = 2117, ///< EL_AQUA_S / Aqua
+ ELEID_EL_AQUA_M = 2118, ///< EL_AQUA_M / Aqua
+ ELEID_EL_AQUA_L = 2119, ///< EL_AQUA_L / Aqua
+ ELEID_EL_VENTUS_S = 2120, ///< EL_VENTUS_S / Ventus
+ ELEID_EL_VENTUS_M = 2121, ///< EL_VENTUS_M / Ventus
+ ELEID_EL_VENTUS_L = 2122, ///< EL_VENTUS_L / Ventus
+ ELEID_EL_TERA_S = 2123, ///< EL_TERA_S / Tera
+ ELEID_EL_TERA_M = 2124, ///< EL_TERA_M / Tera
+ ELEID_EL_TERA_L = 2125, ///< EL_TERA_L / Tera
+};
+
+/**
* Defines
**/
#define MIN_ELETHINKTIME 100
@@ -40,6 +59,9 @@
#define EL_SKILLMODE_PASIVE 0x1
#define EL_SKILLMODE_ASSIST 0x2
#define EL_SKILLMODE_AGGRESSIVE 0x4
+#define MAX_ELEMENTAL_CLASS 12
+#define EL_CLASS_BASE ELEID_EL_AGNI_S
+#define EL_CLASS_MAX (EL_CLASS_BASE+MAX_ELEMENTAL_CLASS-1)
#define elemental_stop_walking(ed, type) (unit->stop_walking(&(ed)->bl, (type)))
#define elemental_stop_attack(ed) (unit->stop_attack(&(ed)->bl))