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
View File
@@ -17,7 +17,6 @@
],
"currentLocationId": "",
"globalFloats": {
"player_hp": 200.0
},
"globalInts": {},
"inventory": {
@@ -26,7 +26,6 @@
],
"currentLocationId": "",
"globalFloats": {
"player_hp": 200.0
},
"globalInts": {},
"inventory": {
@@ -26,7 +26,6 @@
],
"currentLocationId": "",
"globalFloats": {
"player_hp": 200.0
},
"globalInts": {},
"inventory": {
+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(
-4
View File
@@ -71,8 +71,6 @@ end
function callback_enter_location()
print("Enter location uni exterior")
local hp = game_api.getFloatValue("player_hp")
game_api.set_player_hp(hp)
game_api.set_teleport_active("tp_loc2_to_dorm", false)
if (game_api.is_night()) then
game_api.deactivate_interactive_object("car001")
@@ -87,8 +85,6 @@ end
function callback_exit_location()
print("Exit location uni exterior")
local hp = game_api.get_player_hp()
game_api.setFloatValue("player_hp", hp)
end
game_api.set_location_callbacks(
-9
View File
@@ -275,7 +275,6 @@ function on_quest_over()
end
function on_darklands_over()
game_api.set_player_hp(10)
game_api.resetPlayerAfterDeath()
end
@@ -1346,9 +1345,6 @@ end
function callback_enter_location()
print("Enter location uni interior-")
--player_left_darklands = false
local hp = game_api.getFloatValue("player_hp")
game_api.set_player_hp(hp)
local day = game_api.getIntValue("day")
print("day is:")
@@ -1402,11 +1398,6 @@ end
function callback_exit_location()
print("Exit location uni interior")
--player_left_darklands = false
local hp = game_api.get_player_hp()
game_api.setFloatValue("player_hp", hp)
--[[
0 - day0
1 - darklands