From 14b77690daba41045143e47c83a337d1675767b5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 Apr 2020 14:45:27 -0300 Subject: Actually a critical bug --- npc/functions/lockpicks.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'npc/functions/lockpicks.txt') diff --git a/npc/functions/lockpicks.txt b/npc/functions/lockpicks.txt index 390a01588..ddb14cbd2 100644 --- a/npc/functions/lockpicks.txt +++ b/npc/functions/lockpicks.txt @@ -107,7 +107,8 @@ function script LockPicking { dispbottom l("The lockpick broke."); // Get EXP and inform the success - THIEF_EXP += .@d*.@m-THIEF_RANK; + if (THIEF_RANK) + THIEF_EXP += max(0, .@d*.@m-THIEF_RANK); return 1; } } while (true); -- cgit v1.2.3-70-g09d2