mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Fix death from cessation.
This commit is contained in:
parent
b87e2c0f83
commit
980cd3be7b
3 changed files with 4 additions and 4 deletions
2
Justfile
2
Justfile
|
@ -11,7 +11,7 @@ run-rel-n-2:
|
|||
cd noita-proxy && NP_NOITA_ADDR=127.0.0.1:21252 NP_SKIP_MOD_CHECK=1 cargo run --release
|
||||
|
||||
run2:
|
||||
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 NP_NOITA_ADDR=127.0.0.1:21252 cargo run
|
||||
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 NP_NOITA_ADDR=127.0.0.1:21252 cargo run -- --launch-cmd "wine noita.exe -gamemode 0"
|
||||
|
||||
release:
|
||||
python prepare_release.py
|
||||
|
|
|
@ -45,8 +45,9 @@ local gameover_requested = false
|
|||
|
||||
function module.on_world_update()
|
||||
if ctx.my_player.currently_polymorphed then
|
||||
local hp = util.get_ent_health(ctx.my_player.entity)
|
||||
if hp <= 0 and not gameover_requested then
|
||||
local hp, _, has_hp_component = util.get_ent_health(ctx.my_player.entity)
|
||||
-- Added a check for having damage model component at all, as entity can't die from lack of health in that case.
|
||||
if has_hp_component and hp <= 0 and not gameover_requested then
|
||||
ctx.cap.health.do_game_over()
|
||||
gameover_requested = true
|
||||
end
|
||||
|
|
|
@ -32,7 +32,6 @@ local function load_modules()
|
|||
|
||||
ctx.dofile_and_add_hooks("mods/quant.ew/files/src/system/player_sync.lua")
|
||||
ctx.dofile_and_add_hooks("mods/quant.ew/files/src/system/enemy_sync.lua")
|
||||
-- ctx.dofile_and_add_hooks("mods/quant.ew/files/src/system/effect_sync.lua")
|
||||
ctx.dofile_and_add_hooks("mods/quant.ew/files/src/system/damage/sync.lua")
|
||||
ctx.dofile_and_add_hooks("mods/quant.ew/files/src/system/nickname.lua")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue