about summary refs log tree commit diff stats
path: root/data/maps/daedalus/rooms/Entry Shortcut.txtpb
blob: 63202baea305d78f7bf7c0490c85bdbee182f9d2 (plain) (blame)
1
2
3
4
5
6
7
8
generated by cgit-pink 1.4.1 (git 2.36.1) at 2026-03-04 01:10:51 +0000
 


>.keyboard.load_keyholders.call_deferred(global.map)
	else:
		reload.call_deferred()


func reload():
	# Just rewriting this whole thing so I can remove Chris's safeguard.
	var file = FileAccess.open(path + type + ".save", FileAccess.READ)
	if file:
		var data = file.get_var(true)
		file.close()
		for datum in data:
			var saveable = get_node_or_null(datum[0])
			if saveable != null:
				saveable.is_complete = datum[1]
				if saveable.is_complete:
					saveable.loadData(saveable.is_complete)