summaryrefslogtreecommitdiff
path: root/src/map/skill.h
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-05 08:59:19 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-05 08:59:19 +0000
commitd0d24cf90cc9b899bfbead85fb4b48cffc10ce57 (patch)
tree5f8805240a63e944c3d0f97eb93f08e632e5bc08 /src/map/skill.h
parentd45fde3f893468bbd6d9d3c9e164dbffa9f4bc36 (diff)
downloadhercules-d0d24cf90cc9b899bfbead85fb4b48cffc10ce57.tar.gz
hercules-d0d24cf90cc9b899bfbead85fb4b48cffc10ce57.tar.bz2
hercules-d0d24cf90cc9b899bfbead85fb4b48cffc10ce57.tar.xz
hercules-d0d24cf90cc9b899bfbead85fb4b48cffc10ce57.zip
Changed the skill_db.txt skill names in comments into actual columns, now the server reads these instead of a hardcoded array (see topic:170438).
Corrected skill db loading code which was using a totally wrong column count in sevreal cases (or didn't do any checks at all). Cleaned up skill db lookup code * added some well-behaved functions to replace macros (skill_get_index) * used skill_get_index() to replace often occuring blocks of code that did the skill_id -> skilldb_index calculation in-line git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11657 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.h')
-rw-r--r--src/map/skill.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.h b/src/map/skill.h
index 61f4d1c88..c78607b36 100644
--- a/src/map/skill.h
+++ b/src/map/skill.h
@@ -61,8 +61,8 @@
// スキルデ?タベ?ス
struct s_skill_db {
- char *name;
- char *desc;
+ char name[20];
+ char desc[40];
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];