entities WIP

This commit is contained in:
Maurane
2026-03-12 20:43:25 +01:00
parent 08a5d3ec39
commit 3fa18e2b74
8 changed files with 70 additions and 32 deletions
+4 -5
View File
@@ -65,10 +65,10 @@ func _on_new_game_pressed():
Patient.patient_list[i] = Patient.og_patient_list[i]
Patient.its_list = Patient.og_its_list
Patient.entities_list = Patient.og_entities_list
Patient.entities_current_floor.clear()
Patient.patients_seen.clear()
Patient.its_seen.clear()
Patient.entities_seen.clear()
$ScreeningDesk.journal_layer.update_journal(-1)
# DISABLED FOR NOW SINCE THERE'S NO INTRO ANYMORE
#Offering to skip the introduction
#var choice_text = "Do you wish to skip the introduction ?"
@@ -99,11 +99,8 @@ func start_day():
await get_tree().create_timer(1.0).timeout
#Setting up new patient
$ScreeningDesk.middle_screen.update(Globals.day_count, Globals.floor_count, Globals.accurate_diagnoses, Globals.diagnoses_quota)
for scene in [$ScreeningDesk, UI.its_game_over]: #Resetting scenes
for scene in [$ScreeningDesk, UI.its_game_over, UI.entity_game_over]: #Resetting scenes
scene.reset()
$ScreeningDesk.journal_layer.update_journal(Globals.floor_count) #Updating Journal
#Transitioning to the screening desk
scenes_to_hide = scenes_to_show
@@ -132,6 +129,7 @@ func save_game(save_slot_number:int):
"patients_seen": Patient.patients_seen,
"its_seen": Patient.its_seen,
"entities_seen": Patient.entities_seen,
"entities_current_floor": Patient.entities_current_floor,
"save_date": Globals.get_save_date()
}
#Creating save file
@@ -188,6 +186,7 @@ func load_game(load_slot_number:int):
Patient.patients_seen = load_data["patients_seen"]
Patient.its_seen = load_data["its_seen"]
Patient.entities_seen = load_data["entities_seen"]
Patient.entities_current_floor = load_data["entities_current_floor"]
else:
print("Failed to parse Loading Data.")