Commit d9e23f9b authored by wjf's avatar wjf

l

parent 1ea97d83
...@@ -700,8 +700,8 @@ export default class MainScene extends Scene { ...@@ -700,8 +700,8 @@ export default class MainScene extends Scene {
//初始化节日元素 //初始化节日元素
initFestivalEle(): boolean { initFestivalEle(): boolean {
//添加节日元素,条件可能会变 //添加节日元素,条件可能会变
if (getRedBombTimes() && if (fesChapterData.indexOf(this.chapter >> 0) > -1 &&
fesChapterData.indexOf(this.chapter >> 0) > -1 && getRedBombTimes() &&
Math.random() > 0.5 && Math.random() > 0.5 &&
this.lattices[festivalIndex] && //格子必须有 this.lattices[festivalIndex] && //格子必须有
(Tool.judgeSetFesEle(this.lattices[festivalIndex]) || !this.lattices[festivalIndex].element) //没有元素也行 (Tool.judgeSetFesEle(this.lattices[festivalIndex]) || !this.lattices[festivalIndex].element) //没有元素也行
...@@ -2798,7 +2798,7 @@ export default class MainScene extends Scene { ...@@ -2798,7 +2798,7 @@ export default class MainScene extends Scene {
} }
//时间再调 //时间再调
// setTimeout(() => { // setTimeout(() => {
callback(); callback();
// }, 80) // }, 80)
} }
/** /**
......
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