diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-06 20:17:38 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-06 20:17:38 -0300 |
commit | 3f83bdd97d3788c4aa5966369480267cbce9c866 (patch) | |
tree | c6b82e39dbbaf84d52ad24fdce5aa1a1f1a0888d /npc | |
parent | 85b3121b4d8577ea7a08e7eeb95973602c096e2b (diff) | |
download | serverdata-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.txt | 6 |
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); |