summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-07 14:38:23 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-07 14:38:23 +0000
commit71f8d31bc902a66649bf467264196444be93950e (patch)
treeb9e551c51c7e2d95ae5c6df4c2f0416ea7662edf /src/map/npc.c
parent9cd710dada5378af7fde118f5239c0ecda7c4c26 (diff)
downloadhercules-71f8d31bc902a66649bf467264196444be93950e.tar.gz
hercules-71f8d31bc902a66649bf467264196444be93950e.tar.bz2
hercules-71f8d31bc902a66649bf467264196444be93950e.tar.xz
hercules-71f8d31bc902a66649bf467264196444be93950e.zip
- Adjusted Battle_check_target so that alchemist summoned mobs are targetted by everyone as long as 1. The top-level master is a player and 2. the actual attacker is not a mob-type.
- Added config force_random_spawn which overrides the spawn-files defined coordinates to make all mobs always spawn randomly on the map. - SC_SPEEDUP0 is no longer dispellable by SA_DISPEL git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8159 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index ef8dbf8be..0ebec7aaf 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2217,6 +2217,11 @@ int npc_parse_mob (char *w1, char *w2, char *w3, char *w4)
mob.num = 1;
}
+ if (battle_config.force_random_spawn)
+ { //Force a random spawn anywhere on the map.
+ mob.x = mob.y = mob.xs = mob.ys = 0;
+ }
+
//Apply the spawn delay fix [Skotlex]
mode = mob_db(class_)->status.mode;
if (mode & MD_BOSS) { //Bosses