summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorVicious <Vicious@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-10 15:58:22 +0000
committerVicious <Vicious@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-10 15:58:22 +0000
commit325d921ad8c78708bd3836f343a5f2be738a218f (patch)
treebdd902ba25a63ea2f28407af2a4ac660d8551d5c /src/map/battle.c
parent3108cdeb7d331b967f6ef394ffd5543767ecb3d9 (diff)
downloadhercules-325d921ad8c78708bd3836f343a5f2be738a218f.tar.gz
hercules-325d921ad8c78708bd3836f343a5f2be738a218f.tar.bz2
hercules-325d921ad8c78708bd3836f343a5f2be738a218f.tar.xz
hercules-325d921ad8c78708bd3836f343a5f2be738a218f.zip
some ninja/gs work
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5561 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 66decc94d..1a6179886 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1246,11 +1246,12 @@ static struct Damage battle_calc_weapon_attack(
break;
//Until they're at right position - gs_arrow- [Vicious]
+ case GS_RAPIDSHOWER:
+ wd.div_= 5;
case GS_BULLSEYE:
case GS_CRACKER:
case GS_TRACKING:
case GS_PIERCINGSHOT:
- case GS_RAPIDSHOWER:
case GS_DUST:
case GS_SPREADATTACK:
case NJ_SYURIKEN:
@@ -1922,6 +1923,13 @@ static struct Damage battle_calc_weapon_attack(
if(sd && sd->weapontype1 == 0 && sd->weapontype2 == 0)
ATK_ADD(10*pc_checkskill(sd, TK_RUN));
break;
+ case GS_MAGICALBULLET:
+ int matk1=status_get_matk1(src),matk2=status_get_matk2(src);
+ if(matk1>matk2)
+ ATK_ADD(matk2+atn_rand()%(matk1-matk2+1));
+ else
+ ATK_ADD(matk2);
+ break;
}
}
//Here comes a second pass for skills that stack to the previously defined % damage. [Skotlex]
@@ -2677,16 +2685,24 @@ struct Damage battle_calc_magic_attack(
skillratio -= 10;
break;
case NJ_BAKUENRYU:
- skillratio += 50 + 150*skill_lv;
+ //skillratio += 50 + 150*skill_lv;
+ // Possibly just add to matk?
+ MATK_ADD(150 + 150*skill_lv);
break;
case NJ_HYOUSYOURAKU:
- skillratio += 50*skill_lv;
+ //skillratio += 50*skill_lv;
+ // Possibly just add to matk?
+ MATK_ADD(100 + 50*skill_lv);
break;
case NJ_RAIGEKISAI:
- skillratio += 60 + 40*skill_lv;
+ //skillratio += 60 + 40*skill_lv;
+ // Possibly just add to matk?
+ MATK_ADD(200 + 40*skill_lv);
break;
case NJ_KAMAITACHI:
- skillratio += 100*skill_lv;
+ //skillratio += 100*skill_lv;
+ // Possibly just add to matk?
+ MATK_ADD(100 + 100*skill_lv);
break;
}