From a14e88ff4d0d87841a44254e2bff1784da6e8b48 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 15 Dec 2024 14:23:25 +0100 Subject: next commit --- extractor/grf.gd | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'extractor/grf.gd') diff --git a/extractor/grf.gd b/extractor/grf.gd index fa7021a..e017bc8 100644 --- a/extractor/grf.gd +++ b/extractor/grf.gd @@ -217,11 +217,16 @@ func convert(destination: String = "res://data"): #DirAccess.make_dir_recursive_absolute(base_file_directory_path) - if file_path.ends_with(".spr") and file_path.contains("cursors"): + var player_head_path_part = "¸Ó¸®Åë" + var player_body_path_part = "¸öÅë" + + if file_path.ends_with(".spr") and file_path.contains(player_body_path_part) and file_path.contains("NIGHT_WATCH"): var sprite = SpriteFormat.from_bytes(file_entry.get_contents(file_access)) + print(file_path, (sprite.palette_image_count), sprite.version) sprite.save_to_file(base_file_directory_path) - elif file_path.ends_with(".act") and file_path.contains("cursors"): + elif file_path.ends_with(".act") and file_path.contains(player_body_path_part): + continue if not FileAccess.file_exists("%s/000.png.import" % base_file_directory_path): continue -- cgit v1.2.3