summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/021-1/logic.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/021-1/logic.txt b/npc/021-1/logic.txt
index 3195be1d9..335cf6bcf 100644
--- a/npc/021-1/logic.txt
+++ b/npc/021-1/logic.txt
@@ -92,6 +92,13 @@ OnTouch:
specialeffect(27);
setnpcdisplay .name$, NPC_SWITCH_ONLINE;
initnpctimer;
+ .@r=rand(0,100);
+ getmapxy(.@m$, .@x, .@y,0);
+ if (.@r < 80)
+ monster .@m$, .@x, .@y, "Yeti", Yeti, 1;
+ else if (.@r > 99)
+ makeitem(Candy, 1, .@m$, .@x, .@y);
+ npctalk l("Automatic disarm in: @@", FuzzyTime(.lifetime));
closedialog;
}
close;