本帖最后由 1580 于 2020-5-27 23:09 编辑
ItemInfo.lua
--物品攻击属性
function itemInfo.getAttackProp(item, dbitem, itemFrom, itemPos)
local ret, tmpValue = "", ""
tmpValue = itemInfo.getDC(item, dbitem, itemFrom, itemPos)
if tmpValue ~= "" then
ret = ret..tmpValue.. " "
end
tmpValue = itemInfo.getMC(item, dbitem, itemFrom, itemPos)
if tmpValue ~= "" then
ret = ret..tmpValue
end
ret = ret.."\\"
tmpValue = itemInfo.getSC(item, dbitem, itemFrom, itemPos)
if tmpValue ~= "" then
ret = ret..tmpValue.. " "
end
tmpValue = itemInfo.getTC(item, dbitem, itemFrom, itemPos)
if tmpValue ~= "" then
ret = ret..tmpValue
end
return ret
end
查找所有 itemInfo.getDC
|