Only print "Generating..." message for valid card types
This commit is contained in:
parent
640c8d9733
commit
ca4bb08a7a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user