summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/034-4/exit.txt4
-rw-r--r--npc/functions/dungeon.txt6
2 files changed, 8 insertions, 2 deletions
diff --git a/npc/034-4/exit.txt b/npc/034-4/exit.txt
index c0c8920df..8afc3392a 100644
--- a/npc/034-4/exit.txt
+++ b/npc/034-4/exit.txt
@@ -13,6 +13,7 @@ OnWumpus:
else
getitem LightGreenDiamond, 1;
getexp 0, rand2(7500, 9999);
+ @forced_sick$ = "";
end;
OnTouch:
@@ -143,6 +144,9 @@ OnTouch:
// Defeating the boss yields a bonus
InitMaze(7200);
dispbottom l("It was a trap! We must escape!");
+ sleep2(2000);
+ @forced_sick$ = getmap();
+ doevent "#DungeonCore::OnSick";
end;
}
diff --git a/npc/functions/dungeon.txt b/npc/functions/dungeon.txt
index 9d780c019..0ad6f74e7 100644
--- a/npc/functions/dungeon.txt
+++ b/npc/functions/dungeon.txt
@@ -84,8 +84,10 @@ OnSick:
// Did you left?
.@i=array_find(.sickmap$, getmap());
if (.@i < 0) {
- @sick$="";
- end;
+ if (@forced_sick$ != getmap()) {
+ @sick$="";
+ end;
+ }
}
// First time seeing this