summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-20 14:25:58 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-20 14:25:58 -0300
commit8a02537245bd730fa399fd16b240a5bed407e990 (patch)
treed6104a8ce90942ac7f96a57961b3c1669984ba6a /npc/functions
parent23f9c366f5f4ef968aaa39c33a32fb3e692f36a4 (diff)
downloadserverdata-8a02537245bd730fa399fd16b240a5bed407e990.tar.gz
serverdata-8a02537245bd730fa399fd16b240a5bed407e990.tar.bz2
serverdata-8a02537245bd730fa399fd16b240a5bed407e990.tar.xz
serverdata-8a02537245bd730fa399fd16b240a5bed407e990.zip
Lockpicks break less often, now.
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/lockpicks.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/functions/lockpicks.txt b/npc/functions/lockpicks.txt
index 88171c3dd..c8271ba3a 100644
--- a/npc/functions/lockpicks.txt
+++ b/npc/functions/lockpicks.txt
@@ -71,8 +71,8 @@ function script LockPicking {
l("Give up!"), 0;
if (!@menuret) {
- // 10% chance to save the lockpick
- if (rand(1,10) == 7)
+ // 25% chance to save the lockpick
+ if (rand2(1,4) == 2)
getitem Lockpicks, 1;
else
dispbottom l("The lockpick broke.");
@@ -92,8 +92,8 @@ function script LockPicking {
}
if (@pos >= .@d) {
- // 10% chance to save the lockpick
- if (rand(1,10) == 7)
+ // 20% chance to save the lockpick
+ if (rand2(1,5) == 3)
getitem Lockpicks, 1;
else
dispbottom l("The lockpick broke.");