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
喜欢就支持一下吧
暂无评论内容