summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-16 12:15:28 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-01 02:01:53 +0200
commit17ef88dded9602e23ebbc64510c8f9546896b4a6 (patch)
treeb2a8430023361242dcb33f1e5e3028ee7859e184
parentbcfd69d16f6ccbca90b410def8fb72d129c4e216 (diff)
downloadhercules-17ef88dded9602e23ebbc64510c8f9546896b4a6.tar.gz
hercules-17ef88dded9602e23ebbc64510c8f9546896b4a6.tar.bz2
hercules-17ef88dded9602e23ebbc64510c8f9546896b4a6.tar.xz
hercules-17ef88dded9602e23ebbc64510c8f9546896b4a6.zip
Change maximum length of skill descriptions to 50
-rw-r--r--src/map/skill.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/skill.h b/src/map/skill.h
index 66441f9f4..946a3583c 100644
--- a/src/map/skill.h
+++ b/src/map/skill.h
@@ -60,6 +60,10 @@ struct status_change_entry;
#define MAX_SKILLUNITGROUPTICKSET 25
#define MAX_SKILL_NAME_LENGTH 32
+#ifndef MAX_SKILL_DESC_LENGTH
+ #define MAX_SKILL_DESC_LENGTH 50
+#endif
+
// 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
@@ -1746,7 +1750,7 @@ struct skill_condition {
struct s_skill_db {
int nameid;
char name[MAX_SKILL_NAME_LENGTH + 1];
- char desc[40];
+ char desc[MAX_SKILL_DESC_LENGTH + 1];
int range[MAX_SKILL_LEVEL],hit,inf,element[MAX_SKILL_LEVEL],nk,splash[MAX_SKILL_LEVEL],max;
int num[MAX_SKILL_LEVEL];
int cast[MAX_SKILL_LEVEL],walkdelay[MAX_SKILL_LEVEL],delay[MAX_SKILL_LEVEL];