summaryrefslogtreecommitdiff
path: root/npc/018-2-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-01 23:45:49 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-01 23:45:49 -0300
commit565fd7f9c5f31df683aa6c7979b2fc15e70e801e (patch)
tree2da66eff408b3d8a961df3669dc2c2f7db5e3a31 /npc/018-2-2
parent8de2099a5424e73d314aab7d5a674cd35dd8e34b (diff)
downloadserverdata-565fd7f9c5f31df683aa6c7979b2fc15e70e801e.tar.gz
serverdata-565fd7f9c5f31df683aa6c7979b2fc15e70e801e.tar.bz2
serverdata-565fd7f9c5f31df683aa6c7979b2fc15e70e801e.tar.xz
serverdata-565fd7f9c5f31df683aa6c7979b2fc15e70e801e.zip
Beef up the random traps on Heroes Hold Dungeons.
Diffstat (limited to 'npc/018-2-2')
-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