游戏关卡上限更新 1720
This commit is contained in:
parent
9c8c445fa6
commit
f8583d070b
|
|
@ -9077,7 +9077,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 720,
|
||||
"width": 705,
|
||||
"height": 702
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
|
|
|||
|
|
@ -314,19 +314,19 @@ export default class MapConroler extends cc.Component {
|
|||
}
|
||||
Utils.getCityRank((res) => {
|
||||
if (res.code === 1) {
|
||||
// console.log("城市排行数据:", res.data);
|
||||
console.log("城市排行数据:", res.data);
|
||||
if (res.data.length > 0) {
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
if (res.data[i].addLevel <= cc.fx.GameConfig.GM_INFO.addLevel) {
|
||||
cc.fx.GameConfig.GM_INFO.cityRank = i + 1;
|
||||
this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank;
|
||||
// console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "榜单里没有,从比较中得到");
|
||||
console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "榜单里没有,从比较中得到");
|
||||
break;
|
||||
}
|
||||
if (i == res.data.length - 1) {
|
||||
cc.fx.GameConfig.GM_INFO.cityRank = i + 2;
|
||||
this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank;
|
||||
// console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "我不在绑,且比不过最后一名");
|
||||
console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "我不在绑,且比不过最后一名");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3171,18 +3171,19 @@ export default class MapConroler extends cc.Component {
|
|||
// alert("游戏成功");
|
||||
Utils.getCityRank((res) => {
|
||||
if (res.code === 1) {
|
||||
console.log("城市排行数据:", res.data);
|
||||
if (res.data.length > 0) {
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
if (res.data[i].addLevel <= (cc.fx.GameConfig.GM_INFO.addLevel + 1)) {
|
||||
cc.fx.GameConfig.GM_INFO.cityRank = i + 1;
|
||||
this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank;
|
||||
// console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "榜单里没有,从比较中得到");
|
||||
console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "榜单里没有,从比较中得到");
|
||||
break;
|
||||
}
|
||||
if (i == res.data.length - 1) {
|
||||
cc.fx.GameConfig.GM_INFO.cityRank = i + 2;
|
||||
this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank;
|
||||
// console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "我不在绑,且比不过最后一名");
|
||||
console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "我不在绑,且比不过最后一名");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -451,7 +451,7 @@ var GameTool = {
|
|||
// cc.fx.StorageMessage.setStorage("level", levelInfo);
|
||||
// }
|
||||
|
||||
let max_level = 1700;
|
||||
let max_level = 1720;
|
||||
|
||||
if (cc.fx.GameConfig.GM_INFO.level > (max_level - 1)) {
|
||||
cc.fx.GameConfig.GM_INFO.level = max_level;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user