From 47ccff6544ceab0934ce7e8890d84f7c5596456d Mon Sep 17 00:00:00 2001 From: bgkillas Date: Sun, 17 Nov 2024 18:29:54 -0500 Subject: [PATCH] dont init end fight if not in arena --- quant.ew/files/system/end_fight/end_fight.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/quant.ew/files/system/end_fight/end_fight.lua b/quant.ew/files/system/end_fight/end_fight.lua index ea65c8a6..a1b0e384 100644 --- a/quant.ew/files/system/end_fight/end_fight.lua +++ b/quant.ew/files/system/end_fight/end_fight.lua @@ -139,7 +139,12 @@ local function remove_game_effects() end end +local stop_fully = false + function end_fight.on_world_update() + if stop_fully then + return + end if GameHasFlagRun("ending_game_completed") then if not done then if kill_walls == GameGetFrameNum() then @@ -151,6 +156,10 @@ function end_fight.on_world_update() end end if init == -1 then + local x, y = EntityGetTransform(ctx.my_player.entity) + if is_in_box(5632, 7168, 14336, 15872, x, y) then + stop_fully = true + end np.MagicNumbersSetValue("STREAMING_CHUNK_TARGET", 6) if EntityHasTag(ctx.my_player.entity, "ew_notplayer") then remove_game_effects()