Compare commits
No commits in common. "b1aab93fad0492e1db7f3b1071a997d4002fba33" and "ce75d8fab6ac9c4ccd1c8acbbfff19c06545e9ba" have entirely different histories.
b1aab93fad
...
ce75d8fab6
3 changed files with 5 additions and 5 deletions
BIN
cards.db
BIN
cards.db
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "card-drop",
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.5",
|
||||
"main": "./dist/bot.js",
|
||||
"typings": "./dist",
|
||||
"scripts": {
|
||||
|
|
|
@ -59,7 +59,7 @@ export default class CardSetupFunction {
|
|||
const cardDirLegendary = legendaryExists ? readdirSync(path.join(process.cwd(), 'cards', series.Path, 'LEGENDARY')) : [];
|
||||
const cardDirSilver = silverExists ? readdirSync(path.join(process.cwd(), 'cards', series.Path, 'SILVER')) : [];
|
||||
|
||||
for (let file of cardDirBronze.filter(x => !x.startsWith('.') && (x.endsWith('.png') || x.endsWith('.jpg') || x.endsWith('.gif')))) {
|
||||
for (let file of cardDirBronze) {
|
||||
const filePart = file.split('.');
|
||||
|
||||
const cardId = filePart[0];
|
||||
|
@ -70,7 +70,7 @@ export default class CardSetupFunction {
|
|||
cardsToSave.push(card);
|
||||
}
|
||||
|
||||
for (let file of cardDirGold.filter(x => !x.startsWith('.') && (x.endsWith('.png') || x.endsWith('.jpg') || x.endsWith('.gif')))) {
|
||||
for (let file of cardDirGold) {
|
||||
const filePart = file.split('.');
|
||||
|
||||
const cardId = filePart[0];
|
||||
|
@ -81,7 +81,7 @@ export default class CardSetupFunction {
|
|||
cardsToSave.push(card);
|
||||
}
|
||||
|
||||
for (let file of cardDirLegendary.filter(x => !x.startsWith('.') && (x.endsWith('.png') || x.endsWith('.jpg') || x.endsWith('.gif')))) {
|
||||
for (let file of cardDirLegendary) {
|
||||
const filePart = file.split('.');
|
||||
|
||||
const cardId = filePart[0];
|
||||
|
@ -92,7 +92,7 @@ export default class CardSetupFunction {
|
|||
cardsToSave.push(card);
|
||||
}
|
||||
|
||||
for (let file of cardDirSilver.filter(x => !x.startsWith('.') && (x.endsWith('.png') || x.endsWith('.jpg') || x.endsWith('.gif')))) {
|
||||
for (let file of cardDirSilver) {
|
||||
const filePart = file.split('.');
|
||||
|
||||
const cardId = filePart[0];
|
||||
|
|
Loading…
Reference in a new issue