Skip to content
Snippets Groups Projects
Commit 00569929 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

To be fair, the function name's just misleading.

parent 8e38c8dd
No related branches found
No related tags found
No related merge requests found
......@@ -380,6 +380,11 @@ end
function _M:canWearObject(o, try_slot)
local req = rawget(o, "require")
-- check if the slot matches dammit
if try_slot and try_slot ~= o.slot and try_slot ~= o.offslot then
return nil, "wrong equipment slot"
end
-- Check prerequisites
if req then
-- Obviously this requires the ActorStats interface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment