dont init end fight if not in arena

This commit is contained in:
bgkillas 2024-11-17 18:29:54 -05:00
parent eb897d3816
commit 47ccff6544

View file

@ -139,7 +139,12 @@ local function remove_game_effects()
end end
end end
local stop_fully = false
function end_fight.on_world_update() function end_fight.on_world_update()
if stop_fully then
return
end
if GameHasFlagRun("ending_game_completed") then if GameHasFlagRun("ending_game_completed") then
if not done then if not done then
if kill_walls == GameGetFrameNum() then if kill_walls == GameGetFrameNum() then
@ -151,6 +156,10 @@ function end_fight.on_world_update()
end end
end end
if init == -1 then 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) np.MagicNumbersSetValue("STREAMING_CHUNK_TARGET", 6)
if EntityHasTag(ctx.my_player.entity, "ew_notplayer") then if EntityHasTag(ctx.my_player.entity, "ew_notplayer") then
remove_game_effects() remove_game_effects()