自用的,昨天又完善了一遍,目前是没问题了
因为原本底子就是朝暮2.3,也陆陆续续重写了绝大部分的装备,所以也就继续沿用了
想用的话,打开174基础精通技能,在静态数据上加上1-6
1=攻击伤害追加
2=暴击伤害追加
3=技能攻击力
4=附加伤害
5=最终伤害
6=绝对伤害
打开sqr/common.nut然后找到function getCurrentModuleDamageRate(obj)
然后替换成我这个
function getCurrentModuleDamageRate(obj)
{
if (!obj)
return 1.0;
local inr = obj.sq_GetIntData(174, 1);
local inrdam = inr.tofloat()/100;
inrdam = inrdam.tofloat();
local cri = obj.sq_GetIntData(174, 2);
local cridam = cri.tofloat()/100;
cridam = cridam.tofloat() + (cridam.tofloat() * inrdam.tofloat());
local skl = obj.sq_GetIntData(174, 3);
local skldam = skl.tofloat()/100;
skldam = skldam.tofloat() + (skldam.tofloat() * inrdam.tofloat());
local abs = obj.sq_GetIntData(174, 4);
local absdam = abs.tofloat()/100;
absdam = absdam.tofloat() + (absdam.tofloat() * (inrdam.tofloat() + cridam.tofloat()));
local fin = obj.sq_GetIntData(174, 5);
local findam = fin.tofloat()/100;
findam = findam.tofloat() + (findam.tofloat() * (inrdam.tofloat() + cridam.tofloat() + skldam.tofloat()));
local emp = obj.sq_GetIntData(174, 6);
local empdam = emp.tofloat()/100;
empdam = empdam.tofloat() + (empdam.tofloat() * (inrdam.tofloat() + cridam.tofloat() + absdam.tofloat()));
local damrate = (inrdam.tofloat() + cridam.tofloat() + skldam.tofloat() + absdam.tofloat() + findam.tofloat() + empdam.tofloat());
damrate = 1.0 + damrate.tofloat();
return damrate.tofloat();
}