misdiagnoses addition
This commit is contained in:
@@ -15,13 +15,13 @@ var symptoms_detailed: Array[Array] = [
|
||||
"SOMATIC HALLUCINATIONS\nFalse sensations, from inside the body or on the skin"],
|
||||
|
||||
["MYSTICAL DELUSIONS\nFalse certainty of spiritual, divine connection",
|
||||
"MANIA\nExcessively elevated mood and increased energy"],
|
||||
"THOUGHT INSERTION\nFalse conviction of having alien thoughts implanted in one's brain"],
|
||||
|
||||
["CHEMOSENSORY HALLUCINATIONS\nFalse perceptions of smell or taste",
|
||||
"SELF-MUTILATION\nDeliberate self-injury"],
|
||||
"DISORGANIZED SPEECH\nIncoherent sentences, words and speech"],
|
||||
|
||||
["HETERO-AGRESSIVE BEHAVIOUR\nExcessive hostility, verbal agression, threats",
|
||||
"VISUAL HALLUCINATIONS\nFalse perceptions of visual stimuli"]
|
||||
"DISSOCIATIVE IDENTITY\nPresence of two or more alternate personalities"]
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -7,13 +7,13 @@ func _ready() -> void:
|
||||
|
||||
|
||||
#Updates Middle Screen Info
|
||||
func update(day_count, floor_count, diagnoses_count, diagnoses_quota):
|
||||
var day = Globals.colorize(str(day_count), "dark_orange")
|
||||
func update(floor_count, diagnoses_count, diagnoses_quota, misdiagnoses_allowed):
|
||||
var floor = Globals.colorize(str(floor_count), "dark_orange")
|
||||
var diagnoses = Globals.colorize(str(diagnoses_count) + "/" + str(diagnoses_quota), "dark_orange")
|
||||
var misdiagnoses = Globals.colorize(str(misdiagnoses_allowed), "dark_orange")
|
||||
|
||||
text = "DAY: " + day + "\n\nFLOOR: " + floor + "\n\nACCURATE DIAGNOSES: " + diagnoses
|
||||
text = "FLOOR: " + floor + "\n\nACCURATE DIAGNOSES: " + diagnoses + "\n\nMISDIAGNOSES ALLOWED: " + misdiagnoses
|
||||
|
||||
|
||||
func reset():
|
||||
update(Globals.day_count, Globals.floor_count, Globals.accurate_diagnoses, Globals.diagnoses_quota)
|
||||
update(Globals.floor_count, Globals.accurate_diagnoses, Globals.diagnoses_quota, Globals.misdiagnoses_allowed)
|
||||
|
||||
@@ -22,8 +22,8 @@ var symptoms_arrays: Array[Array] = [
|
||||
["SUICIDAL IDEATIONS", "PERSECUTORY DELUSIONS", "UNNATURAL BEHAVIOUR", "AUDITORY HALLUCINATIONS"],
|
||||
["SOMATIC HALLUCINATIONS", "MEGALOMANIAC DELUSIONS"],
|
||||
["MYSTICAL DELUSIONS", "THOUGHT INSERTION"],
|
||||
["CHEMOSENSORY HALLUCINATIONS", "DISORGANIZED SPEECH"],
|
||||
["VISUAL HALLUCINATIONS", "DISSOCIATIVE IDENTITY"]
|
||||
["CHEMOSENSORY HALLUCINATIONS", "SELF-MUTILATION"],
|
||||
["VISUAL HALLUCINATIONS", "INSOMNIA"]
|
||||
]
|
||||
#Lists of possible patients sorted by floor
|
||||
var og_patient_list : Array[Dictionary]
|
||||
@@ -39,7 +39,7 @@ var ite_seen = []
|
||||
|
||||
|
||||
#Supervisor file path
|
||||
var supervisor_name = "loeveth"
|
||||
var supervisor_name = "siveyan"
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
||||
@@ -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