summaryrefslogtreecommitdiff
path: root/src/map/skill.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-02-09 15:10:29 +0100
committerGitHub <noreply@github.com>2020-02-09 15:10:29 +0100
commitf864739587b52dcaa6d65fff7195efbe97a46b45 (patch)
tree4afd49ffe2119c4b39d0c02568d5bab5c5a0707b /src/map/skill.h
parentc03722679a01e5f181c2138565e95a6b0981a124 (diff)
parent1042e9919f18d4aac21583a675d28758ba233e03 (diff)
downloadhercules-f864739587b52dcaa6d65fff7195efbe97a46b45.tar.gz
hercules-f864739587b52dcaa6d65fff7195efbe97a46b45.tar.bz2
hercules-f864739587b52dcaa6d65fff7195efbe97a46b45.tar.xz
hercules-f864739587b52dcaa6d65fff7195efbe97a46b45.zip
Merge pull request #2596 from dastgirp/skill_idx_refactor
Changed logic of skill_get_index
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 dbda6470f..188a1c927 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) || \