summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-18 23:07:05 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-18 23:07:05 +0000
commitbfbd8f32351ead7ecf3bbd2915c84d897f7edc37 (patch)
tree97c18bf7366c929237ce3031a6eeb6ca3e6dcb9b /src/map/mob.c
parentaf20ef5474de8cc2cd1353597a47b8910cb2057b (diff)
downloadhercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.tar.gz
hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.tar.bz2
hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.tar.xz
hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.zip
- 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
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 3 insertions, 1 deletions
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.