summaryrefslogtreecommitdiff
path: root/npc/functions/lockpicks.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-24 14:45:27 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-24 14:45:27 -0300
commit14b77690daba41045143e47c83a337d1675767b5 (patch)
tree84941f74fe0686d6122a2dd1439f04d4fcc2d22b /npc/functions/lockpicks.txt
parent74319622964bc455dc06e2d8b37e0a191dde4a94 (diff)
downloadserverdata-14b77690daba41045143e47c83a337d1675767b5.tar.gz
serverdata-14b77690daba41045143e47c83a337d1675767b5.tar.bz2
serverdata-14b77690daba41045143e47c83a337d1675767b5.tar.xz
serverdata-14b77690daba41045143e47c83a337d1675767b5.zip
Actually a critical bug
Diffstat (limited to 'npc/functions/lockpicks.txt')
-rw-r--r--npc/functions/lockpicks.txt3
1 files changed, 2 insertions, 1 deletions
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);