From bfbd8f32351ead7ecf3bbd2915c84d897f7edc37 Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 18 Jul 2007 23:07:05 +0000 Subject: - Small update to the effects list (new exe's effects by Au{R}oN) - No sending of the pet_equip packet when pet has no equip (thx to Skotlex) - Added back exp gain limiting for old formula to stop exploits (see r8177) - Now a message is printed when the packet_ver filter rejects someone - Renamed two structs using same name as variables (MSVC debugger issue) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10886 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 84764627e..2d10dc61e 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1824,9 +1824,11 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) if (!battle_config.exp_calc_type && md->tdmg) //jAthena's exp formula based on total damage. per = (double)md->dmglog[i].dmg/(double)md->tdmg; - else + else { //eAthena's exp formula based on max hp. per = (double)md->dmglog[i].dmg/(double)status->max_hp; + if (per > 2) per = 2; // prevents unlimited exp gain + } if (count>1 && battle_config.exp_bonus_attacker) { //Exp bonus per additional attacker. -- cgit v1.2.3-70-g09d2