Dialogue responses rework

This commit is contained in:
Maurane
2026-03-26 17:03:22 +01:00
parent 74b58adac6
commit 831909f769
21 changed files with 237 additions and 143 deletions
+6 -3
View File
@@ -56,11 +56,12 @@ func _on_new_game_pressed():
#Setting/Resetting game parameters
Globals.day_count = 1
Globals.floor_count = -3
Globals.floor_count = -2
Globals.patient_count = 0
Globals.accurate_diagnoses = 0
Globals.diagnoses_quota = 4
Globals.daily_patient_limit = 6
Globals.event_index = "interfloor"
for i in range(len(Patient.patient_list)):
Patient.patient_list[i] = Patient.og_patient_list[i]
Patient.its_list = Patient.og_its_list
@@ -108,7 +109,7 @@ func start_day():
UI.masks.transition(scenes_to_hide, scenes_to_show)
await UI.masks.transition_finished
$ScreeningDesk.event_manager(Globals.event_index)
$ScreeningDesk.event_manager()
#Saves game state on the selected save slot
@@ -119,6 +120,7 @@ func save_game(save_slot_number:int):
"day_count": Globals.day_count,
"floor_count": Globals.floor_count,
"event_index": Globals.event_index,
"supervisor_index": Globals.supervisor_index,
"patient_count": Globals.patient_count,
"accurate_diagnoses": Globals.accurate_diagnoses,
"diagnoses_quota": Globals.diagnoses_quota,
@@ -173,7 +175,8 @@ func load_game(load_slot_number:int):
print("Loaded save: " + str(load_data))
Globals.day_count = load_data["day_count"]
Globals.floor_count = load_data["floor_count"]
Globals.event_index = int(load_data["event_index"])
Globals.event_index = load_data["event_index"]
Globals.supervisor_index = load_data["supervisor_index"]
Globals.patient_count = load_data["patient_count"]
Globals.accurate_diagnoses = load_data["accurate_diagnoses"]
Globals.diagnoses_quota = load_data["diagnoses_quota"]