06-20-2012, 10:01 AM
(06-20-2012, 09:41 AM)Taugeshtu Wrote: I appologize, but seems like you forgot "if fixing items are damaged" check
Here's "fixed" oncraftingnorecipe.lua, and below there's added bit of code:
Code:if (
(Items[1].m_ItemHealth == 0) or
(Items[2].m_ItemHealth == 0)
)
then
-- Only damaged items may be fixed
return false
end
Cheers
Your code is wrong. Tools and weapons do not get their health set to 0 when damaged. You need some way of comparing to their values when new.