Jump to content

Blacksmith skill not working

Pending 1.7.8

Terceran
Terceran

Posted

Since around version 1.7.8, the Blacksmith skill no longer works. If an item is damaged and repaired, the red permanent damage still remains.

Terceran

Posted

Note, I modified this function and it now works:

        void HandleMaxRepair(BasePlayer player, Item item)

        {

            if (player == null || item == null) return;

            if (config.tools_black_white_list_settings.max_repair_blacklist.Contains(item.info.shortname)) return;

            if (Interface.CallHook("STOnItemRepairWithMaxRepair", player, item) != null) return;

            if (!item.hasCondition) return;

            item.maxCondition = item.info.condition.max;

            item.condition = item.maxCondition;

            item.MarkDirty();

        }

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
155.6k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.