summaryrefslogtreecommitdiff
path: root/npc/craft
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-13 04:58:25 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-13 04:58:25 -0300
commit63bc3ad47f8dda031f8227cc15767063bf708c6a (patch)
tree795576aba33d9874e31d683530d3b36bad20d3cb /npc/craft
parent6dc15bb90605891f39bc7ef005ba30d3b95654f9 (diff)
downloadserverdata-63bc3ad47f8dda031f8227cc15767063bf708c6a.tar.gz
serverdata-63bc3ad47f8dda031f8227cc15767063bf708c6a.tar.bz2
serverdata-63bc3ad47f8dda031f8227cc15767063bf708c6a.tar.xz
serverdata-63bc3ad47f8dda031f8227cc15767063bf708c6a.zip
Prevent Salohcin from charging 0 GP due to memory
Diffstat (limited to 'npc/craft')
-rw-r--r--npc/craft/tweak.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/craft/tweak.txt b/npc/craft/tweak.txt
index bb9078a22..2c745a291 100644
--- a/npc/craft/tweak.txt
+++ b/npc/craft/tweak.txt
@@ -31,8 +31,9 @@ function script SmithTweakSystem {
.@price=getarg(0, 600);
.@retry=getarg(1, 1);
- // Adjust price
- .@price=POL_AdjustPrice(.@price);
+ // Adjust price (if relevant)
+ if (.@retry == 1)
+ .@price=POL_AdjustPrice(.@price);
// How many times more can you tweak?
// You get 1 action, capped to 6