From bedaaf9f57d0c24e2a81c0bf3c482a07382d78c1 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Mon, 17 Jan 2022 16:22:55 +0100 Subject: Remove ignored files --- scripts/load_turrets.gd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/load_turrets.gd') diff --git a/scripts/load_turrets.gd b/scripts/load_turrets.gd index 93e7841..3cfd802 100644 --- a/scripts/load_turrets.gd +++ b/scripts/load_turrets.gd @@ -39,9 +39,10 @@ func get_base_turrets(): func load_info(): info.clear() - var files = saveload.parse_dir("res://assets", ".json") - for turr in files: - var parsed = saveload.load_parse_json("res://assets/" + turr) + var files = saveload.parse_dir("res://assets/json", ".json") + for f in files: + if f != "turrets.json": continue + var parsed = saveload.load_parse_json("res://assets/json/" + f) if parsed != null: for tin in parsed: info[tin.name] = tin -- cgit v1.2.3-54-g00ecf