更新
This commit is contained in:
parent
cd52013157
commit
f2ce60dc3e
File diff suppressed because it is too large
Load Diff
|
|
@ -167,6 +167,7 @@ export default class MapConroler extends cc.Component {
|
|||
cc.fx.GameConfig.GM_INFO.review = 0;
|
||||
cc.fx.GameConfig.GM_INFO.reviewBoom = 0;
|
||||
cc.fx.GameConfig.GM_INFO.reviewDoor = 0;
|
||||
cc.fx.GameConfig.GM_INFO.rewardAdCoin = 1;
|
||||
cc.fx.GameConfig.GM_INFO.gameState = true;
|
||||
this.mask.opacity = 0;
|
||||
this.node.getChildByName("Adhesive").zIndex = 500;
|
||||
|
|
@ -1885,6 +1886,16 @@ export default class MapConroler extends cc.Component {
|
|||
|
||||
}
|
||||
|
||||
//双倍领取金币
|
||||
getDoubleCoin() {
|
||||
cc.fx.GameConfig.GM_INFO.rewardAdCoin = 2;
|
||||
}
|
||||
|
||||
//播放双倍金币广告
|
||||
showDoubleCoin() {
|
||||
|
||||
}
|
||||
|
||||
//判断游戏成功下一关
|
||||
nextLevel(num: number) {
|
||||
if (num == 1) {
|
||||
|
|
@ -1941,7 +1952,7 @@ export default class MapConroler extends cc.Component {
|
|||
this.stopTimeCutDown();
|
||||
// console.log("即将上报成功________________________:",this.add_Time);
|
||||
// console.log("成功消除一个",this.add_Time);
|
||||
cc.fx.GameTool.changeCoin(40 * cc.fx.GameConfig.GM_INFO.doubleCoin);
|
||||
cc.fx.GameTool.changeCoin(40 * cc.fx.GameConfig.GM_INFO.doubleCoin * cc.fx.GameConfig.GM_INFO.rewardAdCoin);
|
||||
const data = {
|
||||
change_reason: "level",
|
||||
id: (1001 + ""),
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ export class GameConfig {
|
|||
winStreakFirst: boolean; //连胜第一次
|
||||
hp_Max: number; //体力最大值
|
||||
doubleCoin: number; //是否双倍
|
||||
rewardAdCoin: number; //是否双倍
|
||||
monthTime: number; //月卡时间
|
||||
revive: number; //复活礼包购买次数
|
||||
otherUid: string; //其他被帮助用户id
|
||||
|
|
@ -273,6 +274,7 @@ export class GameConfig {
|
|||
winStreakFirst: false, //每次第一次连胜
|
||||
hp_Max: 5, //体力最大值
|
||||
doubleCoin: 1, //是否双倍
|
||||
rewardAdCoin: 1, //是否双倍
|
||||
monthTime: 0, //月卡时间
|
||||
revive: 0, //复活礼包购买次数
|
||||
otherUid: "", //其他被帮助用户id
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user