summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorplaytester <playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-03-28 14:43:29 +0000
committershennetsind <ind@henn.et>2013-04-11 16:27:43 -0300
commit4519b9f207fec921433843278198a8ff886c9a72 (patch)
tree270a74afdcc84120a4a0ea9d92cdb8097b500d67 /src/map/mob.c
parentc079423d172fa772e6b56262f80c09cd0e5a7f47 (diff)
downloadhercules-4519b9f207fec921433843278198a8ff886c9a72.tar.gz
hercules-4519b9f207fec921433843278198a8ff886c9a72.tar.bz2
hercules-4519b9f207fec921433843278198a8ff886c9a72.tar.xz
hercules-4519b9f207fec921433843278198a8ff886c9a72.zip
- Fixed more chances on item status changes
- Fixed class requirements of Heart Breaker Hammerfall in renewal (bugreport:7418) - Increased minimum respawn delay for monsters to 5000ms, this is needed to prevent the client from thinking the newly spawned monster is the same than the killed one; one problem it can cause is described in bugreport:7390, also at least in pre-renewal the minimum respawn time is 5 seconds officially and handling this via the code is much better than updating all spawn files - Implemented the official formula for Potion Pitcher when used by monsters git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17219 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 6a507a099..df7e2c365 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -875,8 +875,8 @@ int mob_setdelayspawn(struct mob_data *md)
spawntime = spawntime/100*battle_config.mob_spawn_delay;
}
- if (spawntime < 500) //Min respawn time (is it needed?)
- spawntime = 500;
+ if (spawntime < 5000) //Monsters should never respawn faster than within 5 seconds
+ spawntime = 5000;
if( md->spawn_timer != INVALID_TIMER )
delete_timer(md->spawn_timer, mob_delayspawn);