Only print "Generating..." message for valid card types

This commit is contained in:
Adam Goldsmith 2021-09-15 23:20:23 -04:00
parent 640c8d9733
commit ca4bb08a7a
1 changed files with 1 additions and 1 deletions

View File

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