summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-12 14:04:21 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-12 14:04:21 +0000
commit2a27d5fccc9316594edcedefb7ad01ea6f33e8da (patch)
tree5e9906c433012852a7113eae4bfa53d1ab0510d9 /src/map/skill.c
parent2735b0cd65492519bfef75bce9ad768e911b8c24 (diff)
downloadhercules-2a27d5fccc9316594edcedefb7ad01ea6f33e8da.tar.gz
hercules-2a27d5fccc9316594edcedefb7ad01ea6f33e8da.tar.bz2
hercules-2a27d5fccc9316594edcedefb7ad01ea6f33e8da.tar.xz
hercules-2a27d5fccc9316594edcedefb7ad01ea6f33e8da.zip
* Removed old code for Sharp Shooting
* Merged Shinomori's code into map_foreachinpath git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1089 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c56
1 files changed, 1 insertions, 55 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 7f5843d55..12ad89e1c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2297,62 +2297,8 @@ int skill_castend_damage_id( struct block_list* src, struct block_list *bl,int s
break;
case SN_SHARPSHOOTING: /* シャ?プシュ?ティング */
- {
- #if 0 // temporarily keeping this block for future reference [celest]
- /*int dx, dy, wx = 0, wy = 0;
- int weight, num = 0;
- int x1 = src->x, y1 = src->y;
- int x0 = bl->x, y0 = bl->y;
- int *xs, *ys;
-
- dx = (x1 - x0);
- if (dx < 0) {
- swap(x0, x1);
- swap(y0, y1);
- dx = -dx;
- }
- dy = (y1 - y0);
- weight = dx > abs(dy) ? dx : abs(y1 - y0);
- xs = (int *)aCallocA(weight, sizeof(int));
- ys = (int *)aCallocA(weight, sizeof(int));
- while ((x0 != x1 || y0 != y1) && num < skill_get_range(skillid,skilllv)) { // fixed [Shinomori]
- wx += dx;
- wy += dy;
- if (wx >= weight) {
- wx -= weight; x0 ++;
- }
- if (wy >= weight) {
- wy -= weight; y0 ++;
- } else if (wy < 0) {
- wy += weight; y0 --;
- }
- if (x0 == x1) {
- if (dy > 0) { y0++; }
- else { y0--; }
- }
- //xs[number] = x0;
- //ys[number] = y0
- printf ("%d - %d %d\n", weight, x0, y0);
- //map_foreachinarea (skill_attack_area,src->m,x0,y0,x0,y0,0,
- //BF_WEAPON,src,src,skillid,skilllv,tick,flag,BCT_ENEMY);
- num++; // make sure it doesn't run infinitely
- }
- //for num = 0; num < weight; num++
- //map_foreach skill attack area
- //if last of xs || ys != x y, manually skill attack
- clif_skill_nodamage(src,bl,skillid,skilllv,1);
- aFree (xs);
- aFree (ys);*/
- #endif
-
- #if 0 // change 0 to 1 to switch to the this system [celest]
- skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag);
- #else
- map_foreachinpath (skill_attack_area,src->m,src->x,src->y,bl->x,bl->y,
- 2,skill_get_range(skillid,skilllv),0,
+ map_foreachinpath (skill_attack_area,src->m,src->x,src->y,bl->x,bl->y,0,
BF_WEAPON,src,src,skillid,skilllv,tick,flag,BCT_ENEMY);
- #endif
- }
break;
case PA_PRESSURE: /* プレッシャ? */