diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-17 16:22:55 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-17 16:22:55 +0100 |
commit | bedaaf9f57d0c24e2a81c0bf3c482a07382d78c1 (patch) | |
tree | 8f5e6f77f17b76f28f31a980d447bf6c49a79b4f /scripts/load_turrets.gd | |
parent | e2b1324becf85fabfd046b3e4333b2639b9e1838 (diff) |
Remove ignored files
Diffstat (limited to 'scripts/load_turrets.gd')
-rw-r--r-- | scripts/load_turrets.gd | 7 |
1 files changed, 4 insertions, 3 deletions
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 |