fix hp as notplayer with glass cannon

This commit is contained in:
bgkillas 2024-11-16 23:31:38 -05:00
parent 93eb43bd60
commit 39a1ceb692

View file

@ -281,6 +281,8 @@ local function player_died()
inventory_helper.set_item_data(item_data, ctx.my_player) inventory_helper.set_item_data(item_data, ctx.my_player)
remove_inventory_tags() remove_inventory_tags()
perk_fns.update_perks_for_entity(perk_data, ctx.my_player.entity, allow_notplayer_perk) perk_fns.update_perks_for_entity(perk_data, ctx.my_player.entity, allow_notplayer_perk)
util.set_ent_health_cap(ctx.my_player.entity, max_hp)
util.set_ent_health(ctx.my_player.entity, {max_hp, max_hp})
rpc.add_nickname_change_cursor() rpc.add_nickname_change_cursor()
end end