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:
1 parent
82d1375871
commit
904c6e7f15
2 files changed
+17
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -26,6 +26,10 @@ func _ready() -> void:
|
||||
spawn_point = position
|
||||
DisplayServer.window_set_title("JUMPS EQUALS JUMPS")
|
||||
give_objective("sarc", 0, "Open the Sarcophagus")
|
||||
give_disk(1)
|
||||
give_disk(2)
|
||||
give_disk(3)
|
||||
give_disk(4)
|
||||
#%Dialogue.show_text("Hello world!").dismiss_after(2)
|
||||
|
||||
func refresh_dash(new_dashes):
|
||||
|
||||
Reference in new issue
Block a user