From 1042e9919f18d4aac21583a675d28758ba233e03 Mon Sep 17 00:00:00 2001 From: Dastgir Date: Tue, 10 Dec 2019 12:44:51 +0530 Subject: Changed logic of skill_get_index skill_get_index can be edited easily to add custom skills --- src/map/skill.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/skill.h') 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) || \ -- cgit v1.2.3-60-g2f50