misdiagnoses addition
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user