Update update-set-implementation-lists.yml

This commit is contained in:
ExpensiveKoala 2023-06-24 00:42:09 -07:00 committed by GitHub
parent 625a678807
commit 0d7cb43590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,13 +75,17 @@ jobs:
cards.forEach(cardData => {
const className = toCamelCase(cardData[0]);
const cleanCardName = cardData[0].replace(/[-,'.!?`@#$%^&*()_=<>:";~\\|/\s]/g, '').toLowerCase();
if (fs.existsSync(path.join('Mage.Sets', 'src', 'mage', 'cards', className.substring(0, 1), `${className}.java`))) {
const cardPath = path.join('Mage.Sets', 'src', 'mage', 'cards', className.substring(0, 1), `${className}.java`);
console.log("Checking if file exists in: ",cardPath);
if (fs.existsSync(cardPath)) {
console.log("File found!");
implemented.push({
pr: false, //TODO: check to see if there is a PR for this card
name: cardData[0],
scryfall: `https://scryfall.com/search?q=!"${cleanCardName}"&nbsp;e:${set[1]}`
});
} else {
console.log("File not found!");
unimplemented.push({
pr: true, //TODO: check to see if there is a PR for this card
name: cardData[0],