Remove player health, use playermap

This commit is contained in:
Vladislav Khorev committed 2026-11-07 13:48:54 +06:00
1 parent b932a07cba
commit be8ee31f03
14 files changed
+27 -39

No files matched your search

+1 -5
View File
@@ -63,7 +63,7 @@ function on_bed_sleep()
else
game_api.start_cutscene("sleep_cutscene001")
game_api.setIntValue("need_sleep", 0)
game_api.set_player_hp(200)
game_api.refill_current_player_hp()
--game_api.set_day() - done in cutscene
local day = game_api.getIntValue("day")
game_api.setIntValue("day", day + 1)
@@ -338,8 +338,6 @@ end
function callback_enter_location()
print("Enter location dorm")
local hp = game_api.getFloatValue("player_hp")
game_api.set_player_hp(hp)
game_api.set_teleport_active("tp_dorm_to_loc2", false)
if (game_api.is_night()) then
closeAlikDoor()
@@ -348,8 +346,6 @@ end
function callback_exit_location()
print("Exit location dorm")
local hp = game_api.get_player_hp()
game_api.setFloatValue("player_hp", hp)
end
game_api.set_location_callbacks(