new abnormal special WIP
This commit is contained in:
@@ -11,6 +11,7 @@ var image : Texture2D
|
||||
var original_color: Color
|
||||
var emotions : Dictionary
|
||||
var abnormal: bool
|
||||
var id : String
|
||||
|
||||
#Patient file
|
||||
var file_text : String
|
||||
@@ -59,14 +60,11 @@ func build_dialog_tree(tree_model: Array[int]) -> Dictionary: #Builds the dialog
|
||||
return tree
|
||||
|
||||
|
||||
func new_patient(patient_id):
|
||||
func load_patient(patient_id):
|
||||
|
||||
var file_path: String
|
||||
|
||||
#Updating Global variables
|
||||
Globals.patient_id = patient_id
|
||||
Globals.patients_seen.append(patient_id)
|
||||
print("Patients seen list: " + str(Globals.patients_seen))
|
||||
|
||||
id = patient_id
|
||||
|
||||
#Loading Patient Files
|
||||
var config := ConfigFile.new()
|
||||
@@ -236,7 +234,6 @@ func next_patient() -> String: #Decides next patient ID
|
||||
_:
|
||||
next_patient_id = generate_patient_id()
|
||||
|
||||
|
||||
return next_patient_id
|
||||
|
||||
|
||||
@@ -248,7 +245,7 @@ func update_patient_list():
|
||||
if len(patient_list[i]) > 1:
|
||||
patient_list[i].erase(patient_id)
|
||||
|
||||
#Erasing its patients already seen from its patient list
|
||||
#Erasing ITS patients already seen from ITS patient list
|
||||
for its_patient_id in Globals.its_patients_seen:
|
||||
if len(its_patient_list) > 1:
|
||||
its_patient_list.erase(its_patient_id)
|
||||
|
||||
Reference in New Issue
Block a user