fix end fight not working because i forgot when things can be ran

This commit is contained in:
bgkillas 2024-11-24 01:28:04 -05:00
parent d98c63cdfa
commit e5427ecfae
2 changed files with 6 additions and 3 deletions

View file

@ -156,9 +156,6 @@ function end_fight.on_world_update()
end end
end end
if init == -1 then 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) local _, y = EntityGetTransform(ctx.my_player.entity)
if y < 10414 then if y < 10414 then
stop_fully = true stop_fully = true

View file

@ -49,6 +49,12 @@ util.add_cross_call("ew_spectator", function()
end end
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() local function load_modules()
ctx.load_system("ewext_init") ctx.load_system("ewext_init")