summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/005-1-1/main.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/005-1-1/main.txt b/npc/005-1-1/main.txt
index 994afe56c..a78e53d3e 100644
--- a/npc/005-1-1/main.txt
+++ b/npc/005-1-1/main.txt
@@ -124,6 +124,13 @@ OnSpawn:
.@mobID=areamonster(.@MAP$, 23, 22, 35, 34, l("Maggot"), Maggot, 1, "Nylo#Marggo::OnMurder");
htput @MARGGO, str(.@mobID), 1;
+
+ // 50% chances to spawn two maggots at once
+ if (any(true, false) && @TOTAL_MRG < 8) {
+ @TOTAL_MRG+=1;
+ .@mobID=areamonster(.@MAP$, 23, 22, 35, 34, l("Maggot"), Maggot, 1, "Nylo#Marggo::OnMurder");
+ htput @MARGGO, str(.@mobID), 1;
+ }
end;
// Move all maggots