summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-06 20:17:38 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-06 20:17:38 -0300
commit3f83bdd97d3788c4aa5966369480267cbce9c866 (patch)
treec6b82e39dbbaf84d52ad24fdce5aa1a1f1a0888d /npc
parent85b3121b4d8577ea7a08e7eeb95973602c096e2b (diff)
downloadserverdata-3f83bdd97d3788c4aa5966369480267cbce9c866.tar.gz
serverdata-3f83bdd97d3788c4aa5966369480267cbce9c866.tar.bz2
serverdata-3f83bdd97d3788c4aa5966369480267cbce9c866.tar.xz
serverdata-3f83bdd97d3788c4aa5966369480267cbce9c866.zip
Spawn more monsters, but in a more proportional way.
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/siege.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index bd733c253..9e43ca601 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -238,8 +238,10 @@ function script siege_cast {
siege_selectmob(siege_calcdiff(.@mz$), .@d, .@tp);
- // How many monsters?
- .@a=(.@d/3)+1;
+ // How many monsters? This value is multiplied by 3;
+ // 1 per player (= 3 mobs), 1 each 5 difficulty, 1 always present.
+ .@a=getmapusers(.@mz$);
+ .@a=(.@d/5)+1;
.@e=any_of($@SIEGE_TMPMOBS);
array_remove($@SIEGE_TMPMOBS, .@e);