Commit b73e17d5 authored by wildfirecode's avatar wildfirecode

Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev

parents 138ecfbf 34378a67
...@@ -693,7 +693,7 @@ export default class MainScene extends Scene { ...@@ -693,7 +693,7 @@ export default class MainScene extends Scene {
sendPropUse(prop: PropType, index?: number) { sendPropUse(prop: PropType, index?: number) {
Loading2.instace.show(); Loading2.instace.show();
this.removeChild(this.propGuide); this.removeChild(this.propGuide);
NetManager.ins.hc_useProp((s) => { NetManager.ins.hc_useProp((s, data) => {
Loading2.instace.hide(); Loading2.instace.hide();
//还原事件 //还原事件
this.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this); this.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this);
...@@ -704,7 +704,7 @@ export default class MainScene extends Scene { ...@@ -704,7 +704,7 @@ export default class MainScene extends Scene {
} else { } else {
this.removeChild(this.stepCircle) this.removeChild(this.stepCircle)
} }
if (!s) return if (s) {
//成功的 //成功的
switch (prop) { switch (prop) {
case PropType.BOOM: case PropType.BOOM:
...@@ -741,10 +741,17 @@ export default class MainScene extends Scene { ...@@ -741,10 +741,17 @@ export default class MainScene extends Scene {
showToast("步数增加成功"); showToast("步数增加成功");
break; break;
} }
} else {
//失败的话,要继续能点击
this.enableMouseEvt(true)
}
if (data) {
//如果有返回数据,没有说明是网络问题,不发home
//更新道具数量 //更新道具数量
NetManager.ins.hc_home(() => { NetManager.ins.hc_home(() => {
this.updateScene(); this.updateScene();
}, window['collectRuleId']); }, window['collectRuleId']);
}
}, prop) }, prop)
} }
mouseDownE(e: egret.TextEvent) { mouseDownE(e: egret.TextEvent) {
......
...@@ -1020,34 +1020,34 @@ export const Chapters: ChapterData[] = [ ...@@ -1020,34 +1020,34 @@ export const Chapters: ChapterData[] = [
{ {
map: { map: {
lattices: [ lattices: [
1, 1, 4, 1, 1, 1, 1, 1, 4, 1, 1, 3, 3, 3, 3, 3, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 3, 3, 0, 3, 3, 1, 0,
1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 1,
1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 3, 3, 3, 0, 3, 3, 3, 1,
1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 3, 3, 3, 0, 3, 3, 3, 1,
1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 3, 3, 3, 0, 3, 3, 3, 1,
1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 3, 3, 0, 3, 3, 1, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 1, 1,
], ],
generateLats: [0, 1, 2, 3, 5, 6, 7, 8], generateLats: [0, 1, 2, 3, 5, 6, 7, 8],
}, },
baseElementTypes: [0, 1, 2, 3, 4], baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05, effectInitProbability: 0.05,
stepCount: 30, stepCount: 63,
passTarget: { passTarget: {
type: PassType.ELEMENT_TARGET, type: PassType.ELEMENT_TARGET,
elements: [ elements: [
{ {
type: ElementType.LOLLIPOP, type: ElementType.ICE,
count: 7 count: 50
} }
], ],
}, },
starScores: [ starScores: [
15000, 60000,
30000, 120000,
45000 150000
] ]
}, },
] ]
\ No newline at end of file
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