summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 78878eaf6..1efd3c1ea 100644
--- a/npc/functions/lockpicks.txt
+++ b/npc/functions/lockpicks.txt
@@ -118,7 +118,7 @@ function script LockPicking {
// Script helper to say if you were arrested or not
function script ArrestedChances {
- .@runaway=limit(0, readbattleparam(bLuk)+readbattleparam(bAgi), 200); // 20%
+ .@runaway=limit(0, readparam2(bLuk)+readparam2(bAgi), 200); // 20%
.@runaway+=is_night()*125; // 12.5%
.@runaway+=limit(0, THIEF_RANK*15, 100); // real max 7.5%
// Max runaway chance: 40%