diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-10-09 18:52:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-10-09 18:52:27 -0300 |
commit | 457e93dc2d72c332bb0c3b02630249445a6a21e5 (patch) | |
tree | bb5049651353bcc910965bdd80e3d3a84329e72a /npc | |
parent | 8c36d28ca9ff6540e9700d8090e4d50458506efa (diff) | |
download | serverdata-457e93dc2d72c332bb0c3b02630249445a6a21e5.tar.gz serverdata-457e93dc2d72c332bb0c3b02630249445a6a21e5.tar.bz2 serverdata-457e93dc2d72c332bb0c3b02630249445a6a21e5.tar.xz serverdata-457e93dc2d72c332bb0c3b02630249445a6a21e5.zip |
Blacksmith Axe and Dustynator 2000 can always be tweaked
Diffstat (limited to 'npc')
-rw-r--r-- | npc/craft/tweak.txt | 7 |
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; } |