Commit 20fc3aef authored by 邱旭's avatar 邱旭

1

parent 7238854e
......@@ -8,7 +8,7 @@
<e:Image source="redAlert_btn_png" y="0" x="0"/>
<e:Label id="btnLabel" text="愉快收下" y="30" size="38" stroke="2" strokeColor="0x2f7df9" fontFamily="FZY3JW" x="103"/>
</e:Group>
<e:Group id="numsgroup" x="410" y="265.6" scaleX="1.5" scaleY="1.5" visible="false">
<e:Group id="numsgroup" x="410" y="275" scaleX="1.5" scaleY="1.5" visible="false">
<e:Image id="numsbg" source="signprize_numsbg_png" x="0" y="0" scaleX="1" scaleY="1"/>
<e:Label id="propnums" text="X8" size="22" horizontalCenter="0" verticalCenter="0" verticalAlign="middle" textAlign="center"/>
</e:Group>
......
......@@ -117,6 +117,7 @@ const redBombPanelName = "RedBombAlert";
const fesChapterData: number[] = [];
for(let i = 1; i < 227; i++) { /// TODO 测试
if(i == 25 || i == 44) continue;
fesChapterData.push(i);
}
......@@ -719,13 +720,14 @@ export default class MainScene extends Scene {
// }
// }
}
//初始化节日元素
initFestivalEle(): boolean {
//添加节日元素,条件可能会变
if(
fesChapterData.indexOf(this.chapter >> 0) > -1 && /// TODO 测试
fesChapterData.indexOf(this.chapter >> 0) > -1 &&
getRedBombTimes() &&
// Math.random() > 0.5 && /// TODO 测试
Math.random() > 0.4 &&
this.lattices[festivalIndex] && //格子必须有
(Tool.judgeSetFesEle(this.lattices[festivalIndex]) || !this.lattices[festivalIndex].element) //没有元素也行
) {
......@@ -743,7 +745,7 @@ export default class MainScene extends Scene {
ele.y = p[1];
this.elementContainer.addChild(ele);
this.lattices[festivalIndex].element = ele;
Tool.removeEle(festivalIndex,this.emptys);
Tool.removeEle(festivalIndex, this.emptys);
}
//动画,然后恢复this.enableMouseEvt(true);
let ani: FesRedBombShowAni = Pool.takeOut(RecoverName.FESREDBOMBSHOW_ANI)
......
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