Commit 52b616e4 authored by wildfirecode's avatar wildfirecode

1

parent 4f955692
import MainScene from "./MainScene";
import MainScene, { baseScore, effectBaseTimes } from "./MainScene";
import { ElementType } from "../something/enum/ElementType";
import wait from "../../libs/new_tc/wait";
import { Tool } from "../something/Tool";
import { Lattice } from "../something/class/Lattice";
/**
* fish爆炸
*/
......@@ -12,11 +14,25 @@ export default async (thisObj: MainScene) => {
const lattice = thisObj.lattices[i]
if (lattice && lattice.element && lattice.element.type == ElementType.FISH && lattice.element.isNeb) {
lattice.element.fishCanEliFlag = true;
indexs.push(i);
thisObj.eliminatedElements.push(i);
indexs.push(lattice.index);
thisObj.eliminatedElements.push(lattice.index);
}
}
await wait(1000);
for (const index of indexs) {
const lat: Lattice = thisObj.lattices[index];
for (var i = 0; i < thisObj.lattices.length; i++) {
if (Tool.judgeEliminate(thisObj.lattices[i]) &&
(Math.abs(thisObj.lattices[i].row - lat.row) < 2 && Math.abs(thisObj.lattices[i].column - lat.column) < 2)) {
if (thisObj.eliminatedElements.indexOf(thisObj.lattices[i].index) < 0) {
thisObj.eliminatedElements.push( thisObj.lattices[i].index);
}
}
}
}
await wait(500);
//然后再消除四周的
return indexs;
}
\ No newline at end of file
......@@ -53,7 +53,7 @@ export const Chapters16: ChapterData[] = [
20, 10, 20, 10, 20, 10, 40, 10, 20,
21, 10, 20, 20, 0, 40, 20, 10, 20,
0, 30, 10, 30, 10, 30, 10, 20, 0,
0, 0, 20, 30, 22, 10, 20, 0, 0,
0, 0, 20, 30, 23, 10, 20, 0, 0,
0, 0, 0, 20, 10, 30, 0, 0, 0,
0, 0, 0, 0, 20, 0, 0, 0, 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