Commit b3dfe265 authored by zjz1994's avatar zjz1994

红包炸弹暂存

parent 93e9c6fb
......@@ -115,7 +115,8 @@
}
</script>
<script>
window['fresp'] = 10;
// window['fresp'] = 10;
window['fresp'] = 0.4;
window['signconfigs'] = [
{ nums: '10元宝', type: 'money' },
{ nums: '*1', type: 'hammer' },
......
......@@ -1547,6 +1547,7 @@ export default class MainScene extends Scene {
//初始化节日元素
async initFestivalEle() {
//添加节日元素,条件可能会变
console.log("节日元素判定",fesChapterData,this.chapter,getRedBombTimes(),window['fresp'],this.lattices[festivalIndex]);
if(
fesChapterData.indexOf(this.chapter >> 0) > -1 &&
getRedBombTimes() &&
......@@ -1554,6 +1555,7 @@ export default class MainScene extends Scene {
this.lattices[festivalIndex] && //格子必须有
(Tool.judgeSetFesEle(this.lattices[festivalIndex]) || !this.lattices[festivalIndex].element) //没有元素也行
) {
console.log("节日元素loading");
this['redrainbg'].visible = true;
await this.startPlayLoadingAni();
this['redrainbg'].visible = false;
......
......@@ -129,6 +129,7 @@ export class AiControl {
//打乱索引
redIndexs.sort(function () { return (0.5 - Math.random()); });
let six: any[] = redIndexs.splice(0, fesELeSmallNum);
console.log("发红包",six,fesELeSmallNum);
//如果不足6个,就修改thisObj里的
if (six.length < fesELeSmallNum) {
thisObj.festivalTargetNum = fesELeSmallNum;
......
......@@ -5,6 +5,6 @@
"redBombSwitchTime": "77798963487234"
},
"desc":"OK",
"success":false,
"success":true,
"timestamp":1572923489898
}
\ No newline at end of file
......@@ -3503,16 +3503,6 @@
"levelNum": 698,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 699,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 700,
"maxScore": 47440,
"stars": 1
}
],
"remainProp": [
......
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