mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix end fight not working because i forgot when things can be ran
This commit is contained in:
parent
d98c63cdfa
commit
e5427ecfae
2 changed files with 6 additions and 3 deletions
|
@ -156,9 +156,6 @@ function end_fight.on_world_update()
|
|||
end
|
||||
end
|
||||
if init == -1 then
|
||||
ModTextFileSetContent("data/entities/misc/loose_chunks.xml", "<Entity/>")
|
||||
ModTextFileSetContent("data/entities/misc/loose_chunks_huge.xml", "<Entity/>")
|
||||
ModTextFileSetContent("data/entities/projectiles/deck/crumbling_earth_effect.xml", "<Entity/>")
|
||||
local _, y = EntityGetTransform(ctx.my_player.entity)
|
||||
if y < 10414 then
|
||||
stop_fully = true
|
||||
|
|
|
@ -49,6 +49,12 @@ util.add_cross_call("ew_spectator", function()
|
|||
end
|
||||
end)
|
||||
|
||||
if GameHasFlagRun("ending_game_completed") then
|
||||
ModTextFileSetContent("data/entities/misc/loose_chunks.xml", "<Entity/>")
|
||||
ModTextFileSetContent("data/entities/misc/loose_chunks_huge.xml", "<Entity/>")
|
||||
ModTextFileSetContent("data/entities/projectiles/deck/crumbling_earth_effect.xml", "<Entity/>")
|
||||
end
|
||||
|
||||
local function load_modules()
|
||||
ctx.load_system("ewext_init")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue