diff options
author | Haru <haru@dotalux.com> | 2020-02-09 15:10:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 15:10:29 +0100 |
commit | f864739587b52dcaa6d65fff7195efbe97a46b45 (patch) | |
tree | 4afd49ffe2119c4b39d0c02568d5bab5c5a0707b /src/map/skill.h | |
parent | c03722679a01e5f181c2138565e95a6b0981a124 (diff) | |
parent | 1042e9919f18d4aac21583a675d28758ba233e03 (diff) | |
download | hercules-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.h | 6 |
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) || \ |