summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-16 23:01:54 +0000
committerMasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-16 23:01:54 +0000
commit1edfd8d7a943b235cbeed709404545699850ed38 (patch)
tree202deea025d21eae7638b7093130b35021a635fd
parentb069fc249c86084dd87c13109058b78f2b8e8159 (diff)
downloadhercules-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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/battle.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 5de86d1e9..0073ebd81 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -5,6 +5,8 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EV
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
2006/03/16
+ * Changed NJ_ZENYNAGE according to this weeks patch to deal a random [MasterOfMuppets]
+ ammount of damage depending on the skill lvl.
* @kill_monster/@kill_monster2 won't touch Guardians/Emperium now. [Skotlex]
* Small change in the random item reading function, may fix @itemdbreload
messing up random item searches. [Skotlex]
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;
}