From 1881a56e28f68dfb5f46f39556d1f272fb6dfb90 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 16 Sep 2021 16:04:40 -0400 Subject: [PATCH] Don't hard code the exported image extension --- strange_eons_to_arkhamdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strange_eons_to_arkhamdb.js b/strange_eons_to_arkhamdb.js index ad6f454..eb99bb2 100644 --- a/strange_eons_to_arkhamdb.js +++ b/strange_eons_to_arkhamdb.js @@ -261,7 +261,7 @@ for (let member in recurseAllChildren(Eons.getOpenProject())) { cards.push(card_data); let export_dir = new File(member.parent.file, 'export'); - let target_file = new File(export_dir, card_data.code + '.png'); + let target_file = new File(export_dir, card_data.code + '.' + FORMAT); if (!target_file.exists() || member.file.lastModified() > target_file.lastModified()) { printf("Image for '%s' is out of date, rebuilding...\n", member); export_dir.mkdir();