summaryrefslogtreecommitdiff
path: root/npc/018-2-2/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/018-2-2/main.txt')
-rw-r--r--npc/018-2-2/main.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt
index 58fd29869..bf5e9bef3 100644
--- a/npc/018-2-2/main.txt
+++ b/npc/018-2-2/main.txt
@@ -95,6 +95,18 @@ OnPlayerCycle:
if (rand2(1000) <= @HH_LEVEL) {
dispbottom l("You set off a trap!");
heal -(@HH_LEVEL*rand2(2,5)), -(@HH_LEVEL/2);
+ if (rand2(5) == 3) {
+ // Determine the dangers of the random trap (20% of traps)
+ // SC_Bonus(delay, SC, min{, max})
+ if (@HH_LEVEL >= HH_MASTER)
+ SC_Bonus(1000+rand2(2000), any(SC_DPOISON, SC_DEEP_SLEEP, SC_BLOODING, SC_CURSE), 1);
+ else if (@HH_LEVEL >= HH_EXPERT)
+ SC_Bonus(rand2(2000), any(SC_POISON, SC_CURSE, SC_SILENCE, SC_BURNING, SC_BLIND, SC_SLEEP), 1);
+ else if (@HH_LEVEL >= HH_ADVANCED)
+ SC_Bonus(rand2(1000), any(SC_DEC_AGI, SC_POISON, SC_CURSE, SC_SILENCE), 1);
+ else if (@HH_LEVEL >= HH_INTERMEDIARY)
+ SC_Bonus(rand2(1000), any(SC_DEC_AGI, SC_COLD, SC_CONFUSION), 1);
+ }
}
// Continue the execution