summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-19 17:59:53 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-19 17:59:53 -0300
commitf946ceea6d015ddf67de4ba02d577afaaf05eb8e (patch)
treeefd23c357ca734b267e6eff82a5719661b4f8121
parentd6a04f2a60d68bc194ff64b42c7a9c1cc6076db0 (diff)
downloadserverdata-f946ceea6d015ddf67de4ba02d577afaaf05eb8e.tar.gz
serverdata-f946ceea6d015ddf67de4ba02d577afaaf05eb8e.tar.bz2
serverdata-f946ceea6d015ddf67de4ba02d577afaaf05eb8e.tar.xz
serverdata-f946ceea6d015ddf67de4ba02d577afaaf05eb8e.zip
SC_BONUS take seconds as argument, not miliseconds. Sanitize.
-rw-r--r--npc/018-2-2/main.txt8
1 files changed, 4 insertions, 4 deletions
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);
}
}