diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-22 17:33:58 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-22 17:33:58 +0000 |
commit | f49666198ba97ff369bc25fb200668505aa1e381 (patch) | |
tree | 8e049421046c0216db841d10d54a81312f952bbe | |
parent | e03b9539e56c360d9af30c9de2ccdea680ee6eea (diff) | |
download | hercules-f49666198ba97ff369bc25fb200668505aa1e381.tar.gz hercules-f49666198ba97ff369bc25fb200668505aa1e381.tar.bz2 hercules-f49666198ba97ff369bc25fb200668505aa1e381.tar.xz hercules-f49666198ba97ff369bc25fb200668505aa1e381.zip |
- Corrected the 20 lvl diff 15% exp bonus on pk_mode servers. Thanks to Vayu for pointing it out.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6698 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/mob.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index fbaa05873..e713c6af3 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/05/22
+ * Corrected the 20 lvl diff 15% exp bonus on pk_mode servers. Thanks to
+ Vayu for pointing it out. [Skotlex]
* status_get_sc_tick will now use directly Stun's formula rather than
invoking the status sc chance once. [Skotlex]
* Fixed a possible null pointer in script command misc_effect [Skotlex]
diff --git a/src/map/mob.c b/src/map/mob.c index e9c60b179..239a38886 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1818,7 +1818,8 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type) per += per*sd->expaddrace[race]/100.;
per += per*sd->expaddrace[mode&MD_BOSS?10:11]/100.;
}
- if (battle_config.pk_mode && (md->db->lv - tmpsd[i]->status.base_level >= 20))
+ if (battle_config.pk_mode &&
+ (int)(md->db->lv - tmpsd[i]->status.base_level) >= 20) //Needed due to unsigned checks
per *= 1.15; // pk_mode additional exp if monster >20 levels [Valaris]
//SG additional exp from Blessings [Komurka] - probably can be optimalized ^^;;
|