1
This commit is contained in:
@@ -10,19 +10,22 @@ function L_HUD_BloodBackground() {
|
||||
if (!obj) return;
|
||||
if (RootTab.rawin("HudUi_Obj")) {
|
||||
RootTab.HudUi_Obj.BottomShow(obj);
|
||||
}
|
||||
}
|
||||
if (RootTab.rawin("EventList_Obj")) {
|
||||
foreach(win in EventList_Obj.Events) {
|
||||
win.EventShow(obj);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
getroottable().Camera_Pos <- 0;
|
||||
getroottable().Camera_Pos <- {};
|
||||
|
||||
function L_Sync_Camera_Pos(Xpos) {
|
||||
getroottable().Camera_Pos = Xpos;
|
||||
// print(Xpos);
|
||||
function L_Sync_Camera_Pos(Camera_Object) {
|
||||
// print(Camera_Object);
|
||||
// print(Camera_Object);
|
||||
getroottable().Camera_Pos.X <- L_sq_RA(Camera_Object + 0x638);
|
||||
getroottable().Camera_Pos.Y <- L_sq_RA(Camera_Object + 0x63C);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -9,6 +9,16 @@ function L_drawMainCustomUI_All() {
|
||||
local obj = sq_getMyCharacter();
|
||||
if (!obj) return;
|
||||
|
||||
//获取与上一帧的dt
|
||||
if (!(getroottable().rawin("Rindro_DurationFlag"))) {
|
||||
Rindro_DurationFlag <- L_Getmicroseconds();
|
||||
Rindro_Duration <- 0;
|
||||
} else {
|
||||
local NowM = L_Getmicroseconds();
|
||||
Rindro_Duration = NowM - Rindro_DurationFlag;
|
||||
Rindro_DurationFlag = NowM;
|
||||
}
|
||||
|
||||
local RootTab = getroottable();
|
||||
//下帧执行任务事件
|
||||
if (RootTab.rawin("LenheartNextFrameFuncTab")) {
|
||||
@@ -121,6 +131,7 @@ function L_drawMainCustomUI_All() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// if (Clock() - getroottable().Lsnzz >= 50) {
|
||||
// getroottable().Lsnzz = Clock();
|
||||
// local T = {
|
||||
@@ -165,7 +176,10 @@ function L_drawMainCustomUI_All() {
|
||||
// }
|
||||
|
||||
// print(sq_GetCurrentModuleType());
|
||||
// Rindro_BaseToolClass.T_DrawDynamicAni(obj, "common/luke/newtile/02_success_back_1.ani", 430, 210 + 26, "卢克阻截开始" + AHSJKDNJKA);
|
||||
}
|
||||
|
||||
// AHSJKDNJKA <- Clock();
|
||||
// getroottable().SINNU <- Clock();
|
||||
// getroottable().Lsnzz <- Clock();
|
||||
|
||||
|
||||
@@ -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