Fix issue where OldComputer crashes upon inserting the final disk. Add a message instructing player to press [E] to exit the game.

This commit is contained in:
yagigreg committed 2026-10-18 03:08:33 -05:00
1 parent 82d1375871
commit 904c6e7f15
2 files changed
+17

No files matched your search

+13
View File
@@ -22,14 +22,27 @@ func load_disk(disk_num: int) -> bool:
[disk_num, len(disks_wanted) + len(disks_loaded), get_memory_integrity()]
)
if has_finished_initialization():
printline(
">> System initialization complete. Beginning reactivation sequence."
)
printline(
">> Player: Press [E] or [Space] to return to the outside world."
)
return true
func get_next_disk_num() -> int:
if disks_wanted.is_empty():
return 0
return disks_wanted.front()
func get_memory_integrity():
return 100.0 / total_integrity * (starting_integrity + len(disks_loaded))
func has_finished_initialization() -> bool:
return disks_wanted.is_empty()
func open() -> void:
visible = true