Commit d3d91ccf authored by wjf's avatar wjf

l

parent f8629686
...@@ -489,7 +489,7 @@ export const Chapters6: ChapterData[] = [ ...@@ -489,7 +489,7 @@ export const Chapters6: ChapterData[] = [
{ {
baseElementTypes: [2, 3, 4, 0, 1], baseElementTypes: [2, 3, 4, 0, 1],
bubbleProbability: 0.1, bubbleProbability: 0.1,
stepCount: 35, stepCount: 40,
passTarget: { type: 1, elements: [{ type: 9, count: 55 }] }, passTarget: { type: 1, elements: [{ type: 9, count: 55 }] },
starScores: [5000, 12000, 20000], starScores: [5000, 12000, 20000],
map: { map: {
......
...@@ -73,7 +73,7 @@ export class AiControl { ...@@ -73,7 +73,7 @@ export class AiControl {
} }
fesEleMotion(thisObj: MainScene, callback: Function) { fesEleMotion(thisObj: MainScene, callback: Function) {
//无节日大红包,直接回调,气泡能生成,不能直接判断 //无节日大红包,直接回调,
if (!this.hasFesEleBig) { if (!this.hasFesEleBig) {
callback(); callback();
return return
...@@ -97,6 +97,7 @@ export class AiControl { ...@@ -97,6 +97,7 @@ export class AiControl {
callback(); callback();
return return
} }
//当前就一个红包,如果没激活就回调
if (!thisObj.lattices[indexs[0]].element.festivalEle.isActive) { if (!thisObj.lattices[indexs[0]].element.festivalEle.isActive) {
callback(); callback();
return return
...@@ -106,10 +107,9 @@ export class AiControl { ...@@ -106,10 +107,9 @@ export class AiControl {
var redIndexs: number[] = []; var redIndexs: number[] = [];
for (var a = 0; a < thisObj.lattices.length; a++) { for (var a = 0; a < thisObj.lattices.length; a++) {
var lat = thisObj.lattices[a]; var lat = thisObj.lattices[a];
//是基础元素,但是不能有任何状态, //是基础元素,但是不能有任何状态, 考虑修改小红包属性为可fall,
if (Tool.judgeBaseEle(lat) && if (Tool.judgeBaseEle(lat) &&
!lat.element.hasAnyState() && !lat.element.hasAnyState()
!lat.isGenerate //且格子不是生成口
) { ) {
redIndexs.push(a); redIndexs.push(a);
} }
...@@ -166,9 +166,10 @@ export class AiControl { ...@@ -166,9 +166,10 @@ export class AiControl {
thisObj.addChild(fesRedShootAni); thisObj.addChild(fesRedShootAni);
fesRedShootAni.play(p, ele, () => { fesRedShootAni.play(p, ele, () => {
if (++count == countAll) { if (++count == countAll) {
//去掉大红包
thisObj.removeOperation(index); thisObj.removeOperation(index);
//进行掉落
thisObj.fall(() => { thisObj.fall(() => {
//掉落停止回调
thisObj.fallCallback(); thisObj.fallCallback();
}); });
// callback(); // callback();
......
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