Add an explicit objective to talk to the sarc. Completing that objective gives the first data disk objective.
This commit is contained in:
1 parent
d2a6aca452
commit
770fdde083
3 files changed
+12
-9
No files matched your search
+9
-7
@@ -20,17 +20,19 @@ func get_memory_integrity():
|
||||
func _on_interacted() -> void:
|
||||
#%OldComputer.open()
|
||||
|
||||
var wanted_disk = disks_wanted.front()
|
||||
|
||||
%Player2D.spawn_point = global_position
|
||||
|
||||
var wanted_disk = disks_wanted.front()
|
||||
if %Player2D.complete_objective("sarc"):
|
||||
%OldComputer.open()
|
||||
%Player2D.give_objective(
|
||||
"disk%d" % wanted_disk,
|
||||
wanted_disk, "Locate data disk %d" % wanted_disk
|
||||
)
|
||||
return
|
||||
|
||||
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