Skip to content
Snippets Groups Projects
Commit 1499dc36 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'master' of git.net-core.org:tome/t-engine4

parents 917f1c44 193157ad
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 ~= self:getObjectOffslot(o) 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