diff --git a/old_computer.gd b/old_computer.gd index 6bbad19..92bc7b4 100644 --- a/old_computer.gd +++ b/old_computer.gd @@ -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 diff --git a/player_2d.gd b/player_2d.gd index 1e8cad2..07359f3 100644 --- a/player_2d.gd +++ b/player_2d.gd @@ -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):