summaryrefslogtreecommitdiff
path: root/npc/craft/tweak.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/craft/tweak.txt')
-rw-r--r--npc/craft/tweak.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/craft/tweak.txt b/npc/craft/tweak.txt
index c79949758..fe9d661da 100644
--- a/npc/craft/tweak.txt
+++ b/npc/craft/tweak.txt
@@ -58,7 +58,12 @@ function script SmithTweakSystem {
return false;
// If the item have no bonuses - fail
- if (getitemoptionidbyindex(.@id, 0) <= 0 && !is_master()) {
+ setarray .@AlwaysTweaks, BlacksmithAxe, Dustynator;
+ delinventorylist();
+ getinventorylist();
+ .@x=@inventorylist_id[.@id];
+
+ if (getitemoptionidbyindex(.@id, 0) <= 0 && !is_master() && array_find(.@AlwaysTweaks, .@x) < 0) {
mesc l("This item have no bonuses, and cannot be tweaked."), 1;
return false;
}