Commit f5fc920b authored by nanahira's avatar nanahira

Merge branch 'master' of git.mycard.moe:mycard/ygopro-cn-database-generator

parents 979b798a 8bbac86d
......@@ -44,7 +44,7 @@ env408:
variables:
LOCALE: zh-CN
NPM_SCRIPT: start:subenv
DATE: '2006-05-19'
DATE: '2006-05-15'
CARD_SYMBOL: '408环境'
FILE_SYMBOL: 'env408'
......
......@@ -67,6 +67,7 @@ export class Card {
}
async getRelatedCards(db: Database) {
const code = this.code;
if (code === 5405694) return [];
const moreCodes: number[] = (await db.all('SELECT id FROM datas WHERE id > ? AND id <= ? AND (alias = ? OR (type & 0x4000) > 0)', [code, code + 20, code])).map(m => m.id);
const cards = await Promise.all(moreCodes.map(code => this.createCardFromRelatedCode(code, db)));
return cards;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment