From a5f45800bafe3863c3a1473c4010a25f6e2f4823 Mon Sep 17 00:00:00 2001 From: Gregory Marco Date: Sat, 17 Oct 2026 22:42:00 -0500 Subject: [PATCH] If player does not have the disk 1 objective and the pharaoh wants disk 1 then give the player the objective. --- pharaoh.gd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pharaoh.gd b/pharaoh.gd index 2f7418c..a09fc01 100644 --- a/pharaoh.gd +++ b/pharaoh.gd @@ -18,8 +18,16 @@ func get_memory_integrity(): return 100.0 / total_integrity * (starting_integrity + len(disks_loaded)) func _on_interacted() -> void: + #%OldComputer.open() + var wanted_disk = disks_wanted.front() if not %Player2D.take_disk(wanted_disk): + if wanted_disk == 1 and not %Player2D.has_objective("disk%d" % wanted_disk): + %OldComputer.open() + %Player2D.give_objective( + "disk%d" % wanted_disk, + wanted_disk, "Locate data disk %d" % wanted_disk + ) return if not load_disk(wanted_disk):