mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Surely fix the death message
This commit is contained in:
parent
a248aba6cc
commit
969ceae285
1 changed files with 13 additions and 16 deletions
|
@ -271,17 +271,13 @@ local function do_game_over(message)
|
|||
GameRemoveFlagRun("ew_flag_notplayer_active")
|
||||
set_camera_free(true, ctx.my_player.entity)
|
||||
|
||||
async(function()
|
||||
if #(EntityGetAllChildren(ctx.my_player.entity) or {}) ~= 0 then
|
||||
local ent = end_poly_effect(ctx.my_player.entity)
|
||||
if ent ~= nil then
|
||||
polymorph.switch_entity(ent)
|
||||
wait(1)
|
||||
if ctx.my_player.entity ~= nil then
|
||||
local stat_component = EntityGetFirstComponentIncludingDisabled(ctx.my_player.entity, "GameStatsComponent")
|
||||
if stat_component ~= nil then
|
||||
ComponentSetValue2(stat_component, "extra_death_msg", "")
|
||||
print("extra_death_msg removed")
|
||||
end
|
||||
|
||||
local damage_model = EntityGetFirstComponentIncludingDisabled(ctx.my_player.entity, "DamageModelComponent")
|
||||
if damage_model ~= nil then
|
||||
ComponentSetValue2(damage_model, "wait_for_kill_flag_on_death", false)
|
||||
|
@ -294,6 +290,7 @@ local function do_game_over(message)
|
|||
for _, data in pairs(ctx.players) do
|
||||
EntityKill(data.entity)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
function module.on_local_player_spawn(my_player)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue