连胜上报
This commit is contained in:
parent
da87556270
commit
a1dd6527f3
|
|
@ -62774,7 +62774,7 @@
|
||||||
"__type__": "TypedArray",
|
"__type__": "TypedArray",
|
||||||
"ctor": "Float64Array",
|
"ctor": "Float64Array",
|
||||||
"array": [
|
"array": [
|
||||||
340.483,
|
340.583,
|
||||||
21.918,
|
21.918,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
|
|
||||||
|
|
@ -326,8 +326,8 @@ export default class GameManager extends cc.Component {
|
||||||
if (data.data.token) {
|
if (data.data.token) {
|
||||||
cc.fx.GameConfig.GM_INFO.token = data.data.token;
|
cc.fx.GameConfig.GM_INFO.token = data.data.token;
|
||||||
}
|
}
|
||||||
if (data.data.abTests)
|
if (data.data.abTests)
|
||||||
this.setABTests(data.data.abTests);
|
this.setABTests(data.data.abTests);
|
||||||
|
|
||||||
if (data.data.forcedUpdate) {
|
if (data.data.forcedUpdate) {
|
||||||
const timestamp = Date.now();
|
const timestamp = Date.now();
|
||||||
|
|
|
||||||
|
|
@ -568,6 +568,7 @@ export default class MapConroler extends cc.Component {
|
||||||
let data = {
|
let data = {
|
||||||
"is_frenzy": this.is_frenzy,
|
"is_frenzy": this.is_frenzy,
|
||||||
"infinity": endLevel,
|
"infinity": endLevel,
|
||||||
|
"win_streak": cc.fx.GameConfig.GM_INFO.winStreak,
|
||||||
}
|
}
|
||||||
if (cc.fx.GameConfig.GM_INFO.winStreak >= 10 && cc.fx.GameConfig.GM_INFO.otherLevel == 0) {
|
if (cc.fx.GameConfig.GM_INFO.winStreak >= 10 && cc.fx.GameConfig.GM_INFO.otherLevel == 0) {
|
||||||
cc.fx.GameConfig.GM_INFO.winState = false;
|
cc.fx.GameConfig.GM_INFO.winState = false;
|
||||||
|
|
@ -3873,7 +3874,7 @@ export default class MapConroler extends cc.Component {
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
this.node.parent.parent.parent.getChildByName("Pause").active = false;
|
||||||
if (cc.fx.GameTool.maxLevel() && cc.fx.GameConfig.GM_INFO.GameplayType == 1) {
|
if (cc.fx.GameTool.maxLevel() && cc.fx.GameConfig.GM_INFO.GameplayType == 1) {
|
||||||
cc.fx.GameConfig.LEVEL_INFO_init(true, 0, false, true);
|
cc.fx.GameConfig.LEVEL_INFO_init(true, 0, false, true);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -4123,6 +4124,7 @@ export default class MapConroler extends cc.Component {
|
||||||
is_frenzy: this.is_frenzy,
|
is_frenzy: this.is_frenzy,
|
||||||
result: name + "reason: " + customEventData,
|
result: name + "reason: " + customEventData,
|
||||||
infinity: endLevel,
|
infinity: endLevel,
|
||||||
|
win_streak: cc.fx.GameConfig.GM_INFO.winStreak,
|
||||||
}
|
}
|
||||||
|
|
||||||
cc.fx.GameTool.shushu_Track("finish_stage", data);
|
cc.fx.GameTool.shushu_Track("finish_stage", data);
|
||||||
|
|
@ -6751,6 +6753,10 @@ export default class MapConroler extends cc.Component {
|
||||||
if (this.winStreakBtn.node)
|
if (this.winStreakBtn.node)
|
||||||
this.winStreakBtn.node.active = false;
|
this.winStreakBtn.node.active = false;
|
||||||
this.destroyBtn.node.getChildByName("mul10").opacity = 255;
|
this.destroyBtn.node.getChildByName("mul10").opacity = 255;
|
||||||
|
cc.fx.GameTool.shushu_Track("win_streak_tool_use", {
|
||||||
|
item_id: "2002",
|
||||||
|
count_down: this.timeNumber,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else MiniGameSdk.API.showToast("道具使用中,请稍后再试");
|
else MiniGameSdk.API.showToast("道具使用中,请稍后再试");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
import WinStreak from "../../../action_bundle/script/WinStreak";
|
||||||
import JiaZai from "../../JiaZai";
|
import JiaZai from "../../JiaZai";
|
||||||
import MapConroler from "../../Map";
|
import MapConroler from "../../Map";
|
||||||
import Freeze from "../../prop/Freeze";
|
import Freeze from "../../prop/Freeze";
|
||||||
|
|
@ -1319,6 +1320,7 @@ var GameTool = {
|
||||||
stage_id: userLevel,
|
stage_id: userLevel,
|
||||||
is_frenzy: data.is_frenzy,
|
is_frenzy: data.is_frenzy,
|
||||||
infinity: data.infinity,
|
infinity: data.infinity,
|
||||||
|
win_streak: data.win_streak,
|
||||||
}
|
}
|
||||||
if (cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
|
if (cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
|
||||||
eventData = {
|
eventData = {
|
||||||
|
|
@ -1338,6 +1340,7 @@ var GameTool = {
|
||||||
is_frenzy: data.is_frenzy,
|
is_frenzy: data.is_frenzy,
|
||||||
result: data.result,
|
result: data.result,
|
||||||
infinity: data.infinity,
|
infinity: data.infinity,
|
||||||
|
win_streak: data.win_streak,
|
||||||
}
|
}
|
||||||
if (cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
|
if (cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
|
||||||
eventData = {
|
eventData = {
|
||||||
|
|
@ -1459,6 +1462,12 @@ var GameTool = {
|
||||||
is_paid_bp_usr: data.is_paid_bp_usr,//是否是战令付费档位, boolean
|
is_paid_bp_usr: data.is_paid_bp_usr,//是否是战令付费档位, boolean
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "win_streak_tool_use":
|
||||||
|
eventData = {
|
||||||
|
item_id: data.item_id, //使用的道具种类, 目前只有锤子
|
||||||
|
count_down: data.count_down //局内倒计时, int
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (name == "stage_help") {
|
if (name == "stage_help") {
|
||||||
console.log("准备上报完成", data);
|
console.log("准备上报完成", data);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user