1
This commit is contained in:
@@ -4,10 +4,11 @@
|
||||
创建日期:2024-08-09 14:10
|
||||
文件用途:获取伤害倍率
|
||||
*/
|
||||
RindroDamageRate <- 1.0;
|
||||
|
||||
function L_getCurrentModuleDamageRate(obj) {
|
||||
if (!obj)
|
||||
return 1.0;
|
||||
local rate = 1.0;
|
||||
|
||||
local ClientRat = 1.0;
|
||||
try {
|
||||
@@ -16,5 +17,22 @@ function L_getCurrentModuleDamageRate(obj) {
|
||||
ClientRat = 1.0;
|
||||
}
|
||||
|
||||
return (rate * ClientRat);
|
||||
}
|
||||
return (RindroDamageRate * ClientRat);
|
||||
}
|
||||
|
||||
|
||||
function Lenheart_GetDamageRate_Fun(obj) {
|
||||
//在城镇时
|
||||
if (sq_GetCurrentModuleType() == 1) {
|
||||
RindroDamageRate = 1.0;
|
||||
}
|
||||
}
|
||||
|
||||
//修改伤害回调
|
||||
function SetDamageRateCallBack(Chunk) {
|
||||
local Jso = Json.Decode(Chunk);
|
||||
RindroDamageRate = Jso.rate;
|
||||
}
|
||||
Pack_Control.rawset(2024110902, SetDamageRateCallBack);
|
||||
|
||||
getroottable()["LenheartFuncTab"].rawset("GetDamageRateFuncN", Lenheart_GetDamageRate_Fun);
|
||||
Reference in New Issue
Block a user