misdiagnoses addition

This commit is contained in:
Maurane
2026-06-11 21:33:17 +02:00
parent 8d7bd240f7
commit 33bf0a2fed
26 changed files with 100 additions and 124 deletions
+6 -1
View File
@@ -152,7 +152,8 @@ func _on_clear_patient(choice:String):
Globals.accurate_diagnoses += 1
else:
Globals.accurate_diagnoses = 0 # Resetting to 0 if the player makes a wrong diagnosis
middle_screen.update(Globals.day_count, Globals.floor_count, Globals.accurate_diagnoses, Globals.diagnoses_quota)
Globals.misdiagnoses_allowed -= 1 #Reducing remaining mistakes allowed if the player makes a wrong diagnosis
middle_screen.update(Globals.floor_count, Globals.accurate_diagnoses, Globals.diagnoses_quota, Globals.misdiagnoses_allowed) #Updating middle screen info
Patient.update_list() #Updating patient list
Globals.patient_count += 1 #Updating patient_count
@@ -177,6 +178,10 @@ func _on_clear_patient(choice:String):
#Resetting the scene
reset()
#GameOver is too many misdiagnoses
if Globals.misdiagnoses_allowed == -1:
UI.game_over.reveal("YOU MADE TOO MANY MISTAKES")
#Descending Floor if diagnoses_quota reached
if Globals.accurate_diagnoses == Globals.diagnoses_quota:
Globals.event_index = "descend"