diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-15 19:48:00 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-15 19:48:00 +0000 |
commit | 6fdd12e9c652fd800ad40d91f5f32553814aa65e (patch) | |
tree | e2f3bac6db9c875cd81bc86888e15d73f8d67690 /src/map/skill.c | |
parent | f70901acd8144f851b033852ab3ff086edf30497 (diff) | |
download | hercules-6fdd12e9c652fd800ad40d91f5f32553814aa65e.tar.gz hercules-6fdd12e9c652fd800ad40d91f5f32553814aa65e.tar.bz2 hercules-6fdd12e9c652fd800ad40d91f5f32553814aa65e.tar.xz hercules-6fdd12e9c652fd800ad40d91f5f32553814aa65e.zip |
- Reverted the Summon Flora change where all plants were being summoned in one go.
- Removed some redundant code.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8772 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 34aee2c97..790707090 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6081,7 +6081,6 @@ int skill_castend_pos2 (struct block_list *src, int x, int y, int skillid, int s { int summons[5] = { 1020, 1068, 1118, 1500, 1368 }; int class_ = skillid==AM_SPHEREMINE?1142:summons[skilllv-1]; - int count,range; struct mob_data *md; // Correct info, don't change any of this! [celest] @@ -6092,38 +6091,6 @@ int skill_castend_pos2 (struct block_list *src, int x, int y, int skillid, int s md->deletetimer = add_timer (gettick() + skill_get_time(skillid,skilllv), mob_timer_delete, md->bl.id, 0); mob_spawn (md); //Now it is ready for spawning. } - count = 5-skilllv; - if (count < 1 || skillid == AM_SPHEREMINE) - break; - //Summon multiple floras based on SkillLV - if (sd && - (i = skill_get_itemid(skillid, 0)) > 0 && - (range = skill_get_itemqty(skillid, 0)) > 0 - ) { - //FIXME: Should this be expanded to check for all 10 possible items? [Skotlex] - i = pc_search_inventory(sd,i); - if (i == -1) - count = 0; - else if (sd->status.inventory[i].amount < count*range) - count = sd->status.inventory[i].amount/range; - if (count < 1) break; - pc_delitem(sd, i, count*range, 0); - } - range = 3+count/2; //Spread range is based on qty to be summoned. - for (; count > 0 ; count--) - { //Summon additional creatures. - short xi, yi; - xi=x; yi=y; - map_search_freecell(src, src->m, &xi, &yi, range, range, 1); - - md = mob_once_spawn_sub(src, src->m, xi, yi, status_get_name(src),class_,""); - if (md) { - md->master_id = src->id; - md->special_state.ai = skillid==AM_SPHEREMINE?2:3; - md->deletetimer = add_timer (gettick() + skill_get_time(skillid,skilllv), mob_timer_delete, md->bl.id, 0); - mob_spawn (md); //Now it is ready for spawning. - } - } } break; |