summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-15 21:00:57 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-15 21:00:57 -0300
commitd6f791155e276de7606aab6d01bdc00f787dbbd9 (patch)
tree91c9681540798f61de5a547e764a466058c51b23
parentdf7e0300a08b23c7ca0809dfebc3e8adbc2e9974 (diff)
downloadserverdata-d6f791155e276de7606aab6d01bdc00f787dbbd9.tar.gz
serverdata-d6f791155e276de7606aab6d01bdc00f787dbbd9.tar.bz2
serverdata-d6f791155e276de7606aab6d01bdc00f787dbbd9.tar.xz
serverdata-d6f791155e276de7606aab6d01bdc00f787dbbd9.zip
Trim monster population limit from 200 to 60 on spawn and 120 on spawn2
-rw-r--r--npc/annuals/xmas/2021.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt
index 7d1dcd2d..4b8543ca 100644
--- a/npc/annuals/xmas/2021.txt
+++ b/npc/annuals/xmas/2021.txt
@@ -394,7 +394,7 @@ public function spawn {
else
.@m$=getarg(2);
.@n$="#XMAS21Core::On"+getarg(0);
- if (mobcount(.@m$, .@n$) < 200 && getarg(3, true)) {
+ if (mobcount(.@m$, .@n$) < 60 && getarg(3, true)) {
/* Spawn normally */
areamonster .@m$, 20, 20, getmapinfo(MAPINFO_SIZE_X, .@m$)-20, getmapinfo(MAPINFO_SIZE_Y, .@m$)-20, strmobinfo(1, getarg(0)), getarg(0), getarg(1, 1), .@n$;
} else if (!getarg(3, true)) {
@@ -435,7 +435,7 @@ public function spawn2 {
.@x2=min(getarg(1)+getarg(3), getmapinfo(MAPINFO_SIZE_X, .@m$)-20);
.@y2=min(getarg(2)+getarg(3), getmapinfo(MAPINFO_SIZE_Y, .@m$)-20);
*/
- if (mobcount(.@m$, .@n$) < 200) {
+ if (mobcount(.@m$, .@n$) < 120) {
.@mg=areamonster(.@m$, .@x1, .@y1, .@x2, .@y2, strmobinfo(1, getarg(0)), getarg(0), getarg(5, 1), .@n$);
if (.@noob && .@mg) {
.@hp = getunitdata(.@mg, UDT_MAXHP) * 3 / 5; // Reduce to 60% HP