summaryrefslogtreecommitdiff
path: root/npc/functions/lockpicks.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-18 11:07:44 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-18 11:07:44 -0300
commitbe8fd261284d3ce487f8365dd740ccb2d7c800ec (patch)
tree23200a9d87d9d5271e5e03d7294b051705731262 /npc/functions/lockpicks.txt
parentd9dc1eb686e50845300cf42484fe0b1ee0b368e3 (diff)
downloadserverdata-be8fd261284d3ce487f8365dd740ccb2d7c800ec.tar.gz
serverdata-be8fd261284d3ce487f8365dd740ccb2d7c800ec.tar.bz2
serverdata-be8fd261284d3ce487f8365dd740ccb2d7c800ec.tar.xz
serverdata-be8fd261284d3ce487f8365dd740ccb2d7c800ec.zip
Lockpicks: Rewrite the warning about time running out.
It is unreliable, btw.
Diffstat (limited to 'npc/functions/lockpicks.txt')
-rw-r--r--npc/functions/lockpicks.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/lockpicks.txt b/npc/functions/lockpicks.txt
index 3394dc7f8..879c3b334 100644
--- a/npc/functions/lockpicks.txt
+++ b/npc/functions/lockpicks.txt
@@ -91,7 +91,7 @@ function script LockPicking {
// We don't need to clear console, each successful attempt IS counted.
// Therefore, unsetting 3 pins means you must do 3 new attempts!!
// The biggie is that you're running against time, here!!!
- if (@chance < THIEF_RANK)
+ if (@chance < .@d && rand2(0, THIEF_RANK))
mesc l("Your thief instincts suggest you to hurry."), 1;
}