diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-08 17:38:44 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-08 17:38:44 +0000 |
commit | 22c75b070526de8b103032f5bf13504af81e0095 (patch) | |
tree | 46129805f108454e02fd3e8d83a1c22395599db4 /src/map/battle.c | |
parent | 6d371c31155c7d34aee7cf43bcf8ba6ac88060c9 (diff) | |
download | hercules-22c75b070526de8b103032f5bf13504af81e0095.tar.gz hercules-22c75b070526de8b103032f5bf13504af81e0095.tar.bz2 hercules-22c75b070526de8b103032f5bf13504af81e0095.tar.xz hercules-22c75b070526de8b103032f5bf13504af81e0095.zip |
Hello World. Initial support for the new homunculus has been added, credits to brAthena for the base. Not all skills are yet supported, when a non-supported skill is used rather than the usual warning in the console you'll get a red-coloured message in-game "this skill is not yet supported". please step by our bug tracker should you step by any bugs. thank you very much, you're a great crowd.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16381 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 64c695264..bbed08be6 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2429,6 +2429,12 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo case EL_ROCK_CRUSHER: skillratio += 700; break; + case MH_STAHL_HORN: + skillratio += 500 + 100 * skill_lv; + break; + case MH_LAVA_SLIDE: + skillratio = 70 * skill_lv; + break; } ATK_RATE(skillratio); @@ -3678,7 +3684,12 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list case EL_TYPOON_MIS_ATK: skillratio += 1100; break; - + case MH_ERASER_CUTTER: + if (skill_lv >= 3) + skillratio += 800 + 200 * skill_lv ; + else + skillratio += 500 + 400 * skill_lv; + break; } MATK_RATE(skillratio); @@ -3839,10 +3850,13 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list else if( map[target->m].flag.battleground ) ad.damage=battle_calc_bg_damage(src,target,ad.damage,ad.div_,skill_num,skill_lv,ad.flag); - - if( skill_num == SO_VARETYR_SPEAR ) { // Physical damage. - struct Damage wd = battle_calc_weapon_attack(src,target,skill_num,skill_lv,mflag); - ad.damage += wd.damage; + switch( skill_num ) { /* post-calc modifiers */ + case SO_VARETYR_SPEAR: { // Physical damage. + struct Damage wd = battle_calc_weapon_attack(src,target,skill_num,skill_lv,mflag); + ad.damage += wd.damage; + break; + } + //case HM_ERASER_CUTTER: } return ad; |