Commit c9ee68df authored by nanahira's avatar nanahira

fix

parent ceec0a59
......@@ -19,8 +19,8 @@ interface QueryInfo {
}
interface MayIncorrectStatement {
incorrectCount: number;
lessThanOrEqual: boolean;
incorrectCountMin: number;
incorrectCountMax: number;
where: Where[];
}
......@@ -115,9 +115,8 @@ function parseMayIncorrectStatement(mayIncorrectStatement: MayIncorrectStatement
if (!mayIncorrectStatement.where.length) {
return "";
}
const startCount = mayIncorrectStatement.lessThanOrEqual ? 0 : mayIncorrectStatement.incorrectCount;
let outerClauses: string[] = [];
for (let i = startCount; i <= mayIncorrectStatement.incorrectCount; ++i) {
for (let i = mayIncorrectStatement.incorrectCountMin; i <= mayIncorrectStatement.incorrectCountMax; ++i) {
const correctSequences = generateBoolSequence(mayIncorrectStatement.where.length, i);
for (let correctSequence of correctSequences) {
const clauses = mayIncorrectStatement.where.map((clause, index) => replaceClause(clause, correctSequence[index]));
......
......@@ -3,8 +3,8 @@ lower: 0
where:
- "type & {TYPE_MONSTER} > 0"
mayIncorrectStatements:
- incorrectCount: 4
lessThanOrEqual: true
- incorrectCountMin: 3
incorrectCountMax: 3
where:
- "type & {TYPE_FUSION} = 0"
- "type & {TYPE_SYNCHRO} > 0"
......
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