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();