entities WIP

This commit is contained in:
Maurane
2026-03-12 20:43:25 +01:00
parent 08a5d3ec39
commit 3fa18e2b74
8 changed files with 70 additions and 32 deletions
+4 -8
View File
@@ -217,15 +217,11 @@ func descend_floor(): #Descends to next floor
room_assets.backwall_animation.play("going_down_2")
await room_assets.backwall_animation.animation_finished
#Updating middle screen info
middle_screen.update(Globals.day_count, Globals.floor_count, Globals.accurate_diagnoses, Globals.diagnoses_quota)
Patient.entities_current_floor.clear() #Rerandomizing entities list at every floor
#Updating journal symptoms
journal_layer.update_journal(Globals.floor_count)
for node in [middle_screen, computer, console_screen, journal_layer]:
node.reset() #Resetting the scene
#Hiding screen messages
computer.screen.hide()
console_screen.hide()
#Autosaving
main.save_game(0)
@@ -236,6 +232,6 @@ func descend_floor(): #Descends to next floor
#Resets to initial state
func reset():
for node in [patient, supervisor, journal_layer, computer, console_screen, release, terminate,
for node in [patient, supervisor, journal_layer, computer, console_screen, middle_screen, release, terminate,
green_button, red_button, room_assets]:
node.reset()