Fixies v2 (merged into Core r635+)
#18
(06-20-2012, 09:41 AM)Taugeshtu Wrote: I appologize, but seems like you forgot "if fixing items are damaged" check Smile
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 Wink

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.
Reply
Thanks given by:


Messages In This Thread
Fixies v2 (merged into Core r635+) - by Taugeshtu - 06-15-2012, 01:56 AM
RE: Fixies - by NiLSPACE - 06-15-2012, 05:26 AM
RE: Fixies - by Taugeshtu - 06-15-2012, 05:44 AM
RE: Fixies - by xoft - 06-15-2012, 06:37 AM
RE: Fixies - by cedeel - 06-15-2012, 06:40 AM
RE: Fixies - by xoft - 06-15-2012, 06:46 AM
RE: Fixies - by FakeTruth - 06-15-2012, 07:09 AM
RE: Fixies - by Taugeshtu - 06-15-2012, 08:53 AM
RE: Fixies - by xoft - 06-16-2012, 06:12 AM
RE: Fixies - by Taugeshtu - 06-16-2012, 06:44 AM
RE: Fixies - by xoft - 06-16-2012, 07:01 AM
RE: Fixies v2 (fixed) - by Taugeshtu - 06-16-2012, 07:01 AM
RE: Fixies v2 (fixed) - by xoft - 06-16-2012, 07:14 AM
RE: Fixies v2 (fixed) - by xoft - 06-20-2012, 06:41 AM
RE: Fixies v2 (fixed) - by Taugeshtu - 06-20-2012, 07:04 AM
RE: Fixies v2 (fixed) - by xoft - 06-20-2012, 07:59 AM
RE: Fixies v2 (merged into Core r635+) - by cedeel - 06-20-2012, 10:01 AM
RE: Fixies v2 (merged into Core r635+) - by xoft - 06-20-2012, 05:49 PM



Users browsing this thread: 7 Guest(s)