From 565fd7f9c5f31df683aa6c7979b2fc15e70e801e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 1 Mar 2021 23:45:49 -0300 Subject: Beef up the random traps on Heroes Hold Dungeons. --- npc/018-2-2/main.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/018-2-2') 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 -- cgit v1.2.3-60-g2f50