Also trigger game over screen directly. Closes #10

This commit is contained in:
IQuant 2024-05-19 12:42:32 +03:00
parent af80a3a0d5
commit 45489ba86f

View file

@ -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()