summaryrefslogtreecommitdiff
path: root/src/map/skill.h
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2019-12-10 12:44:51 +0530
committerDastgir <dastgirp@gmail.com>2020-02-02 21:11:07 +0530
commit1042e9919f18d4aac21583a675d28758ba233e03 (patch)
tree591e9579036aeb85f593e704045a97a44ce58496 /src/map/skill.h
parent7d5ce7b3a33fb27cf838d863b8f017220abb624a (diff)
downloadhercules-1042e9919f18d4aac21583a675d28758ba233e03.tar.gz
hercules-1042e9919f18d4aac21583a675d28758ba233e03.tar.bz2
hercules-1042e9919f18d4aac21583a675d28758ba233e03.tar.xz
hercules-1042e9919f18d4aac21583a675d28758ba233e03.zip
Changed logic of skill_get_index
skill_get_index can be edited easily to add custom skills
Diffstat (limited to 'src/map/skill.h')
-rw-r--r--src/map/skill.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/skill.h b/src/map/skill.h
index fe5cb6282..af9063acf 100644
--- a/src/map/skill.h
+++ b/src/map/skill.h
@@ -59,6 +59,12 @@ struct status_change_entry;
#define MAX_SKILLUNITGROUPTICKSET 25
#define MAX_SKILL_NAME_LENGTH 32
+// Custom Skill Ranges is used in skill_get_index, to allocate indexes based on ID and gaps between 2 SkillID
+#ifndef CUSTOM_SKILL_RANGES
+ #define CUSTOM_SKILL_RANGES
+#endif // CUSTOM_SKILL_RANGES
+
+
// (Epoque:) To-do: replace this macro with some sort of skill tree check (rather than hard-coded skill names)
#define skill_ischangesex(id) ( \
((id) >= BD_ADAPTATION && (id) <= DC_SERVICEFORYOU) || ((id) >= CG_ARROWVULCAN && (id) <= CG_MARIONETTE) || \