Entities journal rework
This commit is contained in:
@@ -33,12 +33,9 @@ var its_list = []
|
||||
var og_ite_list = ["ite_01"]
|
||||
var ite_list = []
|
||||
var og_entities_list = ["entity_01"]
|
||||
var entities_list = []
|
||||
var entities_current_floor = []
|
||||
var patients_seen = []
|
||||
var its_seen = []
|
||||
var ite_seen = []
|
||||
var entities_seen = []
|
||||
|
||||
|
||||
#Supervisor file path
|
||||
@@ -56,7 +53,6 @@ func _ready() -> void:
|
||||
patient_list.resize(len(symptoms_arrays))
|
||||
its_list = og_its_list
|
||||
ite_list = og_ite_list
|
||||
entities_list = og_entities_list
|
||||
|
||||
original_color = texture.modulate #Saving original modulation color to reset it after modification
|
||||
|
||||
@@ -225,9 +221,6 @@ func generate_next_id(patient_type: String):
|
||||
"ite":
|
||||
next_id = ite_list.pick_random()
|
||||
print("ITE selected: " + str(next_id))
|
||||
"entity":
|
||||
next_id = entities_current_floor.pick_random()
|
||||
print("Entity selected: " + str(next_id))
|
||||
|
||||
return next_id
|
||||
|
||||
@@ -292,8 +285,6 @@ func next_patient_type():
|
||||
type_list.append("ite")
|
||||
_:
|
||||
for i in range(int(Globals.diagnoses_quota)):
|
||||
if len(entities_current_floor) > 0:
|
||||
type_list.append("entity")
|
||||
if len(its_list) > 0:
|
||||
type_list.append("its")
|
||||
if len(ite_list) > 0:
|
||||
@@ -327,21 +318,3 @@ func update_list():
|
||||
ite_seen.append(id)
|
||||
ite_list.erase(id)
|
||||
print("Updated ITE list: " + str(ite_list))
|
||||
"entity":
|
||||
entities_seen.append(id)
|
||||
entities_list.erase(id)
|
||||
entities_current_floor.erase(id)
|
||||
print("Updated Entities list: " + str(entities_list))
|
||||
print("Updated Entities current floor list: " + str(entities_current_floor))
|
||||
|
||||
|
||||
#Randomly picks which entities will be present on the current floor
|
||||
func pick_floor_entities():
|
||||
|
||||
var entity
|
||||
|
||||
for i in range(int(floor(Globals.diagnoses_quota/4))):
|
||||
if len(entities_list) > 0:
|
||||
entity = entities_list.pick_random()
|
||||
entities_current_floor.append(entity)
|
||||
print("Picked Entities current floor list: " + str(entities_current_floor))
|
||||
|
||||
Reference in New Issue
Block a user