Rindro-Sqr/Base/CallBack/GetDamageRate.nut

20 lines
427 B
Plaintext
Raw Normal View History

2024-09-16 17:09:36 +08:00
/*
文件名:GetDamageRate.nut
路径:Base/CallBack/GetDamageRate.nut
创建日期:2024-08-09 14:10
文件用途:获取伤害倍率
*/
function L_getCurrentModuleDamageRate(obj) {
if (!obj)
return 1.0;
2024-09-29 16:52:10 +08:00
local rate = 1.0;
2024-09-16 17:09:36 +08:00
local ClientRat = 1.0;
try {
ClientRat = getCurrentModuleDamageRate(obj).tofloat();
} catch (exception) {
ClientRat = 1.0;
}
return (rate * ClientRat);
}