From ca4bb08a7ade575c2d255b60770f151a9cb61c6f Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 15 Sep 2021 23:20:23 -0400 Subject: [PATCH] Only print "Generating..." message for valid card types --- 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 f262996..8183286 100644 --- a/strange_eons_to_arkhamdb.js +++ b/strange_eons_to_arkhamdb.js @@ -254,9 +254,9 @@ const cards = []; for (let member in recurseAllChildren(Eons.getOpenProject())) { try { if (ProjectUtilities.matchExtension(member, "eon")) { - printf("Generating JSON/PNG for '%s'...\n", member); let component = ResourceKit.getGameComponentFromFile(member.getFile()); if (component.getFrontTemplateKey() in card_types) { + printf("Generating JSON/PNG for '%s'...\n", member); let card_data = build_card(component); cards.push(card_data);