From f946ceea6d015ddf67de4ba02d577afaaf05eb8e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 19 Mar 2021 17:59:53 -0300 Subject: SC_BONUS take seconds as argument, not miliseconds. Sanitize. --- npc/018-2-2/main.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/018-2-2') diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt index 9ebc0ab51..18af62641 100644 --- a/npc/018-2-2/main.txt +++ b/npc/018-2-2/main.txt @@ -99,13 +99,13 @@ OnPlayerCycle: // Determine the dangers of the random trap // 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); + SC_Bonus(10+rand2(20), 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); + SC_Bonus(1+rand2(20), 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); + SC_Bonus(1+rand2(10), any(SC_DEC_AGI, SC_POISON, SC_CURSE, SC_SILENCE), 1); else if (@HH_LEVEL >= HH_INTERMEDIARY) - SC_Bonus(rand2(500), any(SC_DEC_AGI, SC_COLD, SC_CONFUSION), 1); + SC_Bonus(1+rand2(5), any(SC_DEC_AGI, SC_COLD, SC_CONFUSION), 1); } } -- cgit v1.2.3-60-g2f50