From 8a02537245bd730fa399fd16b240a5bed407e990 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 20 Aug 2019 14:25:58 -0300 Subject: Lockpicks break less often, now. --- npc/functions/lockpicks.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/functions') 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."); -- cgit v1.2.3-70-g09d2