forked from github/server
e608d40e7a
step 3: the example server that anyone can use
8 lines
167 B
Lua
8 lines
167 B
Lua
function item_canuse(u, iname)
|
|
local race = u.race
|
|
if iname=="greatbow" then
|
|
-- only elves use greatbow
|
|
return race=="elf"
|
|
end
|
|
return true
|
|
end
|