diff options
author | DracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-27 05:04:10 +0000 |
---|---|---|
committer | DracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-27 05:04:10 +0000 |
commit | d57579a58d5035d48fc1f7a42c833cb47ae571b9 (patch) | |
tree | 69c54095f9cfc977367b6cc3e76b7ec26bed1412 /src/map/skill.c | |
parent | 8c819cb2129210737155474c980be5ed157d4979 (diff) | |
download | hercules-d57579a58d5035d48fc1f7a42c833cb47ae571b9.tar.gz hercules-d57579a58d5035d48fc1f7a42c833cb47ae571b9.tar.bz2 hercules-d57579a58d5035d48fc1f7a42c833cb47ae571b9.tar.xz hercules-d57579a58d5035d48fc1f7a42c833cb47ae571b9.zip |
Removed useless read-from-GRF features
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9725 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 7365b6d9b..e780d8208 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -11,7 +11,6 @@ #include "../common/nullpo.h" #include "../common/malloc.h" #include "../common/showmsg.h" -#include "../common/grfio.h" #include "../common/ers.h" #include "skill.h" @@ -11571,62 +11570,9 @@ int skill_readdb (void) return 0; } -/*=============================================== - * For reading leveluseskillspamount.txt [Celest] - *----------------------------------------------- - */ -static int skill_read_skillspamount (void) -{ - char *buf,*p; - struct skill_db *skill = NULL; - int s, idx, new_flag=1, level=1, sp=0; - - buf=(char *) grfio_reads("data\\leveluseskillspamount.txt",&s); - - if(buf==NULL) - return -1; - - buf[s]=0; - for(p=buf;p-buf<s;){ - char buf2[64]; - - if (sscanf(p,"%[@]",buf2) == 1) { - level = 1; - new_flag = 1; - } else if (new_flag && sscanf(p,"%[^#]#",buf2) == 1) { - for (idx=0; skill_names[idx].id != 0; idx++) { - if (strstr(buf2, skill_names[idx].name) != NULL) { - //Apply Guild/Homunc adjustment. - sp = skill_names[idx].id; - if (sp >= GD_SKILLBASE) sp = GD_SKILLRANGEMIN + sp - GD_SKILLBASE; - if (sp >= HM_SKILLBASE) sp = HM_SKILLRANGEMIN + sp - HM_SKILLBASE; - if (sp < 1 || sp >= MAX_SKILL_DB) - continue; - skill = &skill_db[sp]; - new_flag = 0; - break; - } - } - } else if (!new_flag && sscanf(p,"%d#",&sp) == 1) { - skill->sp[level-1]=sp; - level++; - } - - p=strchr(p,10); - if(!p) break; - p++; - } - aFree(buf); - ShowStatus("Done reading '"CL_WHITE"%s"CL_RESET"'.\n","data\\leveluseskillspamount.txt"); - - return 0; -} - void skill_reload (void) { skill_readdb(); - if (battle_config.skill_sp_override_grffile) - skill_read_skillspamount(); } /*========================================== @@ -11641,9 +11587,6 @@ int do_init_skill (void) skill_unit_ers = ers_new(sizeof(struct skill_unit_group)); skill_timer_ers = ers_new(sizeof(struct skill_timerskill)); - if (battle_config.skill_sp_override_grffile) - skill_read_skillspamount(); - add_timer_func_list(skill_unit_timer,"skill_unit_timer"); add_timer_func_list(skill_castend_id,"skill_castend_id"); add_timer_func_list(skill_castend_pos,"skill_castend_pos"); |