Commit d3d91ccf authored by wjf's avatar wjf

l

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