If player does not have the disk 1 objective and the pharaoh wants disk 1 then give the player the objective.
This commit is contained in:
1 parent
0f998f94b6
commit
a5f45800ba
1 file changed
+8
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user