--衣服 0 <$DRESS>
function takeon0(actor, itemobj)
local itemname = getconst(actor, "<$DRESS>")
if itemname == "【聖】·天空之翼" then -- 【聖】·天空之翼 穿戴时随机获得[1%-5%]的体力元素
local addvar = getnewitemaddvalue(itemobj, 7)
if addvar == 0 then
local num = math.random(1, 5)
setnewitemvalue(actor, -2, 7, "+", num, itemobj)
refreshitem(actor, itemobj)
end
end
GameEvent.push(EventCfg.onTakeOn0, actor, itemobj)
end