Commit 22eb0f4b authored by wildfirecode's avatar wildfirecode

1

parent 75fb7df5
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
<script src="libs/fileSave.js"></script> <script src="libs/fileSave.js"></script>
<img id="pic" style="width:100%;position: absolute;z-index: 999;display: none;"/> <img id="pic" style="width:100%;position: absolute;z-index: 999;display: none;"/>
<script> <script>
window.fresp=0.00001;
// localStorage.clear(); // localStorage.clear();
window['testUrl'] = 'http://cuxiaoprexg.m.cnsuning.com/scms/cx521.html?activityId=SL446689024459878400&subactivityId=SUB446689681678090240&businessid=cx521'; window['testUrl'] = 'http://cuxiaoprexg.m.cnsuning.com/scms/cx521.html?activityId=SL446689024459878400&subactivityId=SUB446689681678090240&businessid=cx521';
window['hbRainTime'] = 30; // 红包雨倒计时 window['hbRainTime'] = 30; // 红包雨倒计时
......
...@@ -122,7 +122,7 @@ const redBombPanelName = "RedBombAlert"; ...@@ -122,7 +122,7 @@ const redBombPanelName = "RedBombAlert";
const fesChapterData: number[] = []; const fesChapterData: number[] = [];
for(let i = 1; i < 999; i++) { /// TODO 测试 for(let i = 1; i < 999; i++) { /// TODO 测试
if(i == 25 || i == 44) continue; if(i == 25 || i == 44 || i == 226) continue;
fesChapterData.push(i); fesChapterData.push(i);
} }
...@@ -749,7 +749,7 @@ export default class MainScene extends Scene { ...@@ -749,7 +749,7 @@ export default class MainScene extends Scene {
//初始化引导,游戏和道具 //初始化引导,游戏和道具
initGuide() { initGuide() {
//游戏引导 //游戏引导
const gameGuideChapterNum = [1, 2, 3, 5, 8, 9, 10, 12, 17, 25, 41, 61, 101, 121] const gameGuideChapterNum = [1, 2, 3, 5, 8, 9, 10, 12, 17, 25, 41, 61, 101, 121,226]
if(gameGuideChapterNum.indexOf(this.chapter >> 0) > -1) { if(gameGuideChapterNum.indexOf(this.chapter >> 0) > -1) {
if(!readCache(getCacheKey() + this.chapter)) { if(!readCache(getCacheKey() + this.chapter)) {
this.gameGuide = new GameGuide(this); this.gameGuide = new GameGuide(this);
...@@ -775,7 +775,7 @@ export default class MainScene extends Scene { ...@@ -775,7 +775,7 @@ export default class MainScene extends Scene {
if( if(
fesChapterData.indexOf(this.chapter >> 0) > -1 && fesChapterData.indexOf(this.chapter >> 0) > -1 &&
getRedBombTimes() && getRedBombTimes() &&
// Math.random() > 0.4 && Math.random() > (window['fresp'] || 0.4) &&
this.lattices[festivalIndex] && //格子必须有 this.lattices[festivalIndex] && //格子必须有
(Tool.judgeSetFesEle(this.lattices[festivalIndex]) || !this.lattices[festivalIndex].element) //没有元素也行 (Tool.judgeSetFesEle(this.lattices[festivalIndex]) || !this.lattices[festivalIndex].element) //没有元素也行
) { ) {
......
...@@ -282,7 +282,20 @@ export const Chapters12: ChapterData[] = [ ...@@ -282,7 +282,20 @@ export const Chapters12: ChapterData[] = [
2, 1, 1, 3, 3, 3, 1, 1, 2, 2, 1, 1, 3, 3, 3, 1, 1, 2,
2, 1, 1, 1, 1, 1, 1, 1, 2], connectedLats: [[18, 54], [28, 46], [13, 31], [49, 67], [34, 52], [26, 62]], elements: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], baseElements: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], recycles: [], generateLats: [{ index: 0, type: null }, { index: 1, type: null }, { index: 2, type: null }, { index: 3, type: null }, { index: 4, type: null }, { index: 5, type: null }, { index: 6, type: null }, { index: 7, type: null }, { index: 8, type: null }] 2, 1, 1, 1, 1, 1, 1, 1, 2],
connectedLats: [[18, 54], [28, 46], [13, 31], [49, 67], [34, 52], [26, 62]],
elements: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
baseElements: [
10,10,20,20,30,30,40,40,50,
50,50,40,40,30,30,20,20,10,
30,10,20,20,10,10,50,50,40,
40,40,30,30,20,30,50,40,10,
20,20,50,50,40,40,30,20,50,
10,10,20,20,30,30,40,40,50,
50,50,40,40,30,30,20,20,10,
30,10,20,20,10,10,50,50,40,
40,40,30,30,20,30,50,40,10],
recycles: [], generateLats: [{ index: 0, type: null }, { index: 1, type: null }, { index: 2, type: null }, { index: 3, type: null }, { index: 4, type: null }, { index: 5, type: null }, { index: 6, type: null }, { index: 7, type: null }, { index: 8, type: null }]
} }
}, },
//227 //227
...@@ -551,8 +564,8 @@ export const Chapters12: ChapterData[] = [ ...@@ -551,8 +564,8 @@ export const Chapters12: ChapterData[] = [
3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3,
3, 3, 3, 3, 1, 3, 3, 3, 3], 3, 3, 3, 3, 1, 3, 3, 3, 3],
connectedLats: [], elements: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 4, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 4, 1, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, 1, 1, 4, 5, 4, 1, 1, 1], baseElements: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], recycles: [], generateLats: [{ index: 0, type: null }, { index: 1, type: null }, { index: 2, type: null }, { index: 3, type: null }, { index: 14, type: null }, { index: 15, type: null }, { index: 16, type: null }, { index: 17, type: null }] connectedLats: [], elements: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 4, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 4, 1, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, 1, 1, 4, 5, 4, 1, 1, 1], baseElements: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], recycles: [], generateLats: [{ index: 0, type: null }, { index: 1, type: null }, { index: 2, type: null }, { index: 3, type: null }, { index: 14, type: null }, { index: 15, type: null }, { index: 16, type: null }, { index: 17, type: null }]
} }
}, },
//238 //238
...@@ -589,8 +602,8 @@ export const Chapters12: ChapterData[] = [ ...@@ -589,8 +602,8 @@ export const Chapters12: ChapterData[] = [
2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1], 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1],
baseElements: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], baseElements: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
recycles: [], recycles: [],
generateLats: [ { index: 0, type: null }, { index: 1, type: null }, { index: 2, type: null }, { index: 3, type: null }, { index: 4, type: null }, { index: 5, type: null } , { index: 76, type: null }, { index: 77, type: null }, { index: 78, type: null }] generateLats: [{ index: 0, type: null }, { index: 1, type: null }, { index: 2, type: null }, { index: 3, type: null }, { index: 4, type: null }, { index: 5, type: null }, { index: 76, type: null }, { index: 77, type: null }, { index: 78, type: null }]
} }
}, },
//239 //239
......
...@@ -53,29 +53,29 @@ var a = { ...@@ -53,29 +53,29 @@ var a = {
}; };
// 取数据格式用,一般情况注释 // 取数据格式用,一般情况注释
(function exportFile(chapters: ChapterData[]) { // (function exportFile(chapters: ChapterData[]) {
var obj = [] // var obj = []
for (var i = 1; i < chapters.length; i++) { // for (var i = 1; i < chapters.length; i++) {
var chapter: ChapterData = chapters[i] // var chapter: ChapterData = chapters[i]
var target: PassTargetData = chapter.passTarget // var target: PassTargetData = chapter.passTarget
var a: any = {}; // var a: any = {};
a["lev"] = i; // a["lev"] = i;
a["tar"] = []; // a["tar"] = [];
if (target.type == PassType.SCORE_TARGET) { // if (target.type == PassType.SCORE_TARGET) {
a["tar"].push({ "type": 1, "num": target.score }) // a["tar"].push({ "type": 1, "num": target.score })
} else { // } else {
for (var j = 0; j < target.elements.length; j++) { // for (var j = 0; j < target.elements.length; j++) {
var element = target.elements[j]; // var element = target.elements[j];
a["tar"].push({ "type": submitTran[element.type], "num": element.count }) // a["tar"].push({ "type": submitTran[element.type], "num": element.count })
} // }
} // }
a["one"] = chapter.starScores[0]; // a["one"] = chapter.starScores[0];
a["two"] = chapter.starScores[1]; // a["two"] = chapter.starScores[1];
a["three"] = chapter.starScores[2]; // a["three"] = chapter.starScores[2];
obj.push(a) // obj.push(a)
} // }
var file = new File([JSON.stringify(obj)], "cfg.json", { type: "text/plain;charset=utf-8" }); // var file = new File([JSON.stringify(obj)], "cfg.json", { type: "text/plain;charset=utf-8" });
window["saveAs"](file); // window["saveAs"](file);
})(chapters) // })(chapters)
\ No newline at end of file \ No newline at end of file
...@@ -367,6 +367,21 @@ const chapterFuns = { ...@@ -367,6 +367,21 @@ const chapterFuns = {
msg: [ msg: [
"需用特效将褐色毛球分裂成\n两个灰色毛球,才能将它消除" "需用特效将褐色毛球分裂成\n两个灰色毛球,才能将它消除"
] ]
},
226:{
stepCount: 1,
showIndexs: [
[29,30,31,32],
],
hideIndexs: [
[ 29,30],
],
handIndexs: [
[31,32],
],
msg: [
"每走三步都会翻转的石门!\n在石门开启的时候赶快消除吧~"
]
} }
} }
......
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