From 457e93dc2d72c332bb0c3b02630249445a6a21e5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 9 Oct 2019 18:52:27 -0300 Subject: Blacksmith Axe and Dustynator 2000 can always be tweaked --- npc/craft/tweak.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'npc/craft') 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; } -- cgit v1.2.3-70-g09d2