patient 40 + patient 51 dialogue rework WIP

This commit is contained in:
Maurane
2026-06-12 16:29:01 +02:00
parent c706f7f10c
commit 999d88e178
8 changed files with 53 additions and 135 deletions
+2 -1
View File
@@ -7,10 +7,11 @@ func _ready() -> void:
self.pressed.connect(self._on_green_button_pressed)
set_disabled(true)
#Activates when the green button is pressed
func _on_green_button_pressed():
if Globals.buttons_activated:
decision_made.emit("release")
set_toggle_mode(true)
set_toggle_mode(true) #Necessary to switch the button to pressed mode
set_pressed_no_signal(true)
#Resets to initial state
+1
View File
@@ -15,5 +15,6 @@ func update(floor_count, diagnoses_count, diagnoses_quota, misdiagnoses_allowed)
text = "FLOOR: " + floor + "\n\nACCURATE DIAGNOSES: " + diagnoses + "\n\nMISDIAGNOSES ALLOWED: " + misdiagnoses
#Resets to initial state
func reset():
update(Globals.floor_count, Globals.accurate_diagnoses, Globals.diagnoses_quota, Globals.misdiagnoses_allowed)
+22 -11
View File
@@ -19,11 +19,15 @@ var file_text : String
#Patient symptoms ordered from floor to floor
var symptoms_arrays: Array[Array] = [
["SUICIDAL IDEATIONS", "PERSECUTORY DELUSIONS", "UNNATURAL BEHAVIOUR", "AUDITORY HALLUCINATIONS"],
["SOMATIC HALLUCINATIONS", "MEGALOMANIAC DELUSIONS"],
["MYSTICAL DELUSIONS", "THOUGHT INSERTION"],
["CHEMOSENSORY HALLUCINATIONS", "SELF-MUTILATION"],
["VISUAL HALLUCINATIONS", "INSOMNIA"]
["SUICIDAL IDEATIONS", "PERSECUTORY DELUSIONS", "UNNATURAL BEHAVIOUR", "INSOMNIA"],
["AUDITORY HALLUCINATIONS"],
["SOMATIC HALLUCINATIONS"],
["MYSTICAL DELUSIONS"],
["THOUGHT INSERTION"],
["MEGALOMANIAC DELUSIONS"],
["CHEMOSENSORY HALLUCINATIONS"],
["SELF-MUTILATION"],
["VISUAL HALLUCINATIONS"]
]
#Lists of possible patients sorted by floor
var og_patient_list : Array[Dictionary]
@@ -175,7 +179,7 @@ func sort_patients():
break
if symptom_matched:
for k in range(j, symptoms_arrays.size()):
og_patient_list[k].merge({patient_id: j+1}) # Adds the patient to every floor compatible
og_patient_list[k].merge({patient_id: j+1}) # Adds the patient to every floor compatible, with a weighted odd
symptom_matched = false
break
@@ -239,15 +243,22 @@ func next_patient() -> Dictionary: #Decides next patient ID
next_type = next_patient_type()
next_id = generate_next_id(next_type)
-3:
next_type = next_patient_type()
next_id = generate_next_id(next_type)
-4:
if Globals.patient_count == 0:
next_id = "it_that_feels_01"
next_type = "entity"
next_id = "ite_00"
next_type = "ite"
else:
next_type = next_patient_type()
next_id = generate_next_id(next_type)
-5:
if Globals.patient_count == 0:
next_id = "patient_51"
next_type = "patient"
else:
next_type = next_patient_type()
next_id = generate_next_id(next_type)
-4:
next_type = next_patient_type()
next_id = generate_next_id(next_type)
_:
next_type = next_patient_type()
next_id = generate_next_id(next_type)
+2 -1
View File
@@ -7,10 +7,11 @@ func _ready() -> void:
self.pressed.connect(self._on_red_button_pressed)
set_disabled(true)
#Activates when the red button is pressed
func _on_red_button_pressed():
if Globals.buttons_activated:
decision_made.emit("terminate")
set_toggle_mode(true)
set_toggle_mode(true) #Necessary to switch to pressed mode
set_pressed_no_signal(true)