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())) {
|
for (let member in recurseAllChildren(Eons.getOpenProject())) {
|
||||||
try {
|
try {
|
||||||
if (ProjectUtilities.matchExtension(member, "eon")) {
|
if (ProjectUtilities.matchExtension(member, "eon")) {
|
||||||
printf("Generating JSON/PNG for '%s'...\n", member);
|
|
||||||
let component = ResourceKit.getGameComponentFromFile(member.getFile());
|
let component = ResourceKit.getGameComponentFromFile(member.getFile());
|
||||||
if (component.getFrontTemplateKey() in card_types) {
|
if (component.getFrontTemplateKey() in card_types) {
|
||||||
|
printf("Generating JSON/PNG for '%s'...\n", member);
|
||||||
let card_data = build_card(component);
|
let card_data = build_card(component);
|
||||||
cards.push(card_data);
|
cards.push(card_data);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user