喵版伤害整合

function getCurrentModuleDamageRate(obj)
{
local inr = obj.sq_GetIntData(174, 1);
local inrdam = 1 + (inr/100)
local cri = obj.sq_GetIntData(174, 2);
local cridam = cri * (inrdam/100)
local skl = obj.sq_GetIntData(174, 3);
local skldam = skl * (inrdam/100)
local abs = obj.sq_GetIntData(174, 4);
local absdam = abs * ((inrdam + cridam)/100)
local fin = obj.sq_GetIntData(174, 5);
local findam = fin * ((inrdam + cridam + skldam)/100)
local emp = obj.sq_GetIntData(174, 6);
local empdam = emp * ((inrdam + cridam + absdam)/100)
local damrate = (inrdam + cridam + skldam + absdam + findam + empdam);
return damrate.tofloat();
}

© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容