mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
Also trigger game over screen directly. Closes #10
This commit is contained in:
parent
af80a3a0d5
commit
45489ba86f
1 changed files with 1 additions and 0 deletions
1
init.lua
1
init.lua
|
@ -179,6 +179,7 @@ local function on_world_pre_update_inner()
|
|||
local hp, _ = util.get_ent_health(my_player.entity)
|
||||
if hp == 0 then
|
||||
EntityInflictDamage(my_player.entity, 10000000, "DAMAGE_CURSE", "Out of shared health", "NONE", 0, 0, GameGetWorldStateEntity())
|
||||
GameTriggerGameOver()
|
||||
if not ctx.run_ended then
|
||||
GamePrint("Notifying of run end")
|
||||
net.proxy_notify_game_over()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue