mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
dont init end fight if not in arena
This commit is contained in:
parent
eb897d3816
commit
47ccff6544
1 changed files with 9 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue