Commit 722fd25f authored by zjz1994's avatar zjz1994

代码暂存

parent 12dcf063
......@@ -2383,7 +2383,7 @@ export default class MainScene extends Scene {
}, 200)
} else {
//新大炮充能
// console.log("新炮台充能",JSON.parse(JSON.stringify(pcannostatArr)));
console.log("新炮台充能",JSON.parse(JSON.stringify(pcannostatArr)));
for(var np=0;np<pcannostatArr.length;np++){
var npdata = pcannostatArr[np];
var npineffect = npdata.ineffect;
......@@ -3019,6 +3019,15 @@ export default class MainScene extends Scene {
var effectIndexs: number[] = [];
for (var i = this.eliminatedElements.length - 1; i >= 0; i--) {
var index = this.eliminatedElements[i];
//新大炮充能
for(var np=0;np<pcannostatArr.length;np++){
var npdata = pcannostatArr[np];
var canaddone = this.addCannoStatByNext(np,index);
if(canaddone){
npdata.addnum += 1;
}
}
var lat = this.lattices[index];
//不用判断是否存在元素了吧
var ele = lat.element;
......@@ -3179,15 +3188,6 @@ export default class MainScene extends Scene {
}
}
}
//新大炮充能
for(var np=0;np<pcannostatArr.length;np++){
var npdata = pcannostatArr[np];
var canaddone = this.addCannoStatByNext(np,index);
if(canaddone){
npdata.addnum += 1;
}
}
//从消除列表移除
this.eliminatedElements.splice(i, 1)
}
......
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