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