diff options
author | MasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-16 23:01:54 +0000 |
---|---|---|
committer | MasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-16 23:01:54 +0000 |
commit | 1edfd8d7a943b235cbeed709404545699850ed38 (patch) | |
tree | 202deea025d21eae7638b7093130b35021a635fd /src | |
parent | b069fc249c86084dd87c13109058b78f2b8e8159 (diff) | |
download | hercules-1edfd8d7a943b235cbeed709404545699850ed38.tar.gz hercules-1edfd8d7a943b235cbeed709404545699850ed38.tar.bz2 hercules-1edfd8d7a943b235cbeed709404545699850ed38.tar.xz hercules-1edfd8d7a943b235cbeed709404545699850ed38.zip |
Update NJ_ZENYNAGE to deal a random ammount of damage depending on its skill lvl.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5632 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/battle.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 94ce76a6b..6de02dc23 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3019,10 +3019,14 @@ struct Damage battle_calc_misc_attack( aflag = (aflag&~BF_RANGEMASK)|BF_LONG;
break;
case NJ_ZENYNAGE:
- damage=1000*skill_lv;
- if(skill_lv == 10) damage -= 1;
+ {
+ int dmgnage = (500*skill_lv)+rand()%(500*skill_lv);
+ damage=dmgnage;
+ sd->status.zeny -= dmgnage;
+ clif_updatestatus(sd,SP_ZENY);
if(map_flag_vs(bl->m) || is_boss(bl))
damage=damage/2; //temp value
+ }
break;
}
|