end_of_day dialogues

This commit is contained in:
Maurane
2025-06-13 16:57:11 +02:00
parent 402d44e2bb
commit 2e4bf232b8
9 changed files with 212 additions and 32 deletions
+6 -6
View File
@@ -16,10 +16,10 @@ extends Control
@onready var balloon: Node
@onready var patient_emotions : Dictionary
var patient_count = 0
signal recovery_pressed
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
@@ -230,8 +230,8 @@ func clear_patient(choice:String):
var scenes_to_hide = [patient_controls, patient_texture, face_zoom, panel_container] + margin_container.get_children()
var scenes_to_show:Array[Node]
patient_count += 1
if patient_count < Globals.daily_patient_limit:
Globals.patient_count += 1
if Globals.patient_count < Globals.daily_patient_limit:
scenes_to_show.append(alone_controls)
else:
scenes_to_show.append(end_of_day_controls)
@@ -240,11 +240,11 @@ func clear_patient(choice:String):
await TransitionScreen.transition_finished
if patient_count < Globals.daily_patient_limit:
if Globals.patient_count < Globals.daily_patient_limit:
#Setting Up Next Patient
new_patient("564")
else:
patient_count = 0
Globals.patient_count = 0
#Starting End of Day Dialogue
var start_title = "end_of_day_" + str(Globals.day_count)