|
@@ -3157,13 +3157,13 @@ a = Math.floor(n / 3);
|
|
|
i = n % 3;
|
|
i = n % 3;
|
|
|
mk.audio.playEffect("redmoney");
|
|
mk.audio.playEffect("redmoney");
|
|
|
if ("bird_1" == t) {
|
|
if ("bird_1" == t) {
|
|
|
-for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, a);
|
|
|
|
|
|
|
+if (a > 0) for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, a);
|
|
|
i > 0 && mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, i);
|
|
i > 0 && mk.fly.PlayCoinAnim(1, 1, this.flyBird_1.node, "", null, -1, i);
|
|
|
} else if ("bird_2" == t) {
|
|
} else if ("bird_2" == t) {
|
|
|
-for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, a);
|
|
|
|
|
|
|
+if (a > 0) for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, a);
|
|
|
i > 0 && mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, i);
|
|
i > 0 && mk.fly.PlayCoinAnim(1, 1, this.flyBird_2.node, "", null, -1, i);
|
|
|
} else if ("dog" == t) {
|
|
} else if ("dog" == t) {
|
|
|
-for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, a);
|
|
|
|
|
|
|
+if (a > 0) for (r = 0; 3 != r; ++r) mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, a);
|
|
|
i > 0 && mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, i);
|
|
i > 0 && mk.fly.PlayCoinAnim(1, 1, this.dogMove.node, "", null, -1, i);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -9339,11 +9339,6 @@ e = "";
|
|
|
e = gData.farmMapData.chooseType == l.ProductType.nzw ? "game/coregame/texture/plant_icons/plantIcon_" : "game/coregame/texture/factory_icons/factory_";
|
|
e = gData.farmMapData.chooseType == l.ProductType.nzw ? "game/coregame/texture/plant_icons/plantIcon_" : "game/coregame/texture/factory_icons/factory_";
|
|
|
o = gData.farmMapData.maxUnluckValue;
|
|
o = gData.farmMapData.maxUnluckValue;
|
|
|
if (!(t.picture <= o)) return [ 3, 2 ];
|
|
if (!(t.picture <= o)) return [ 3, 2 ];
|
|
|
-n = this.sp_icon;
|
|
|
|
|
-return [ 4, mk.loader.load(e + t.picture, cc.SpriteFrame) ];
|
|
|
|
|
-
|
|
|
|
|
-case 1:
|
|
|
|
|
-n.spriteFrame = c.sent();
|
|
|
|
|
this.lbl_nameDes.node.active = !0;
|
|
this.lbl_nameDes.node.active = !0;
|
|
|
this.lbl_nameDes.string = t.name + " " + t.time + "秒成熟";
|
|
this.lbl_nameDes.string = t.name + " " + t.time + "秒成熟";
|
|
|
this.lbl_des.string = "最高收获" + t.menuRedBagCoin / 100 + "红包币";
|
|
this.lbl_des.string = "最高收获" + t.menuRedBagCoin / 100 + "红包币";
|
|
@@ -9358,38 +9353,43 @@ this.node_ungetBtn.active = !0;
|
|
|
this.node_unluckBtn.active = !1;
|
|
this.node_unluckBtn.active = !1;
|
|
|
this.node_redPoint.active = !0;
|
|
this.node_redPoint.active = !0;
|
|
|
}
|
|
}
|
|
|
|
|
+n = this.sp_icon;
|
|
|
|
|
+return [ 4, mk.loader.load(e + t.picture, cc.SpriteFrame) ];
|
|
|
|
|
+
|
|
|
|
|
+case 1:
|
|
|
|
|
+n.spriteFrame = c.sent();
|
|
|
return [ 3, 6 ];
|
|
return [ 3, 6 ];
|
|
|
|
|
|
|
|
case 2:
|
|
case 2:
|
|
|
if (t.picture - 1 != o) return [ 3, 4 ];
|
|
if (t.picture - 1 != o) return [ 3, 4 ];
|
|
|
-a = this.sp_icon;
|
|
|
|
|
-return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
|
|
|
|
|
-
|
|
|
|
|
-case 3:
|
|
|
|
|
-a.spriteFrame = c.sent();
|
|
|
|
|
-i = gData.gameData.getProductMakeTimesById(t.picture - 1);
|
|
|
|
|
-r = gData.gameData.getProductMap(t.picture - 1).name;
|
|
|
|
|
-s = this.getDesByType();
|
|
|
|
|
-this.lbl_des.string = "" + s + this.data.value + "次" + r + "后解锁\n(" + i + "/" + t.value + ")";
|
|
|
|
|
|
|
+a = gData.gameData.getProductMakeTimesById(t.picture - 1);
|
|
|
|
|
+i = gData.gameData.getProductMap(t.picture - 1).name;
|
|
|
|
|
+r = this.getDesByType();
|
|
|
|
|
+this.lbl_des.string = "" + r + this.data.value + "次" + i + "后解锁\n(" + a + "/" + t.value + ")";
|
|
|
this.node_getBtn.active = !1;
|
|
this.node_getBtn.active = !1;
|
|
|
this.node_ungetBtn.active = !1;
|
|
this.node_ungetBtn.active = !1;
|
|
|
this.node_unluckBtn.active = !0;
|
|
this.node_unluckBtn.active = !0;
|
|
|
this.lbl_nameDes.node.active = !1;
|
|
this.lbl_nameDes.node.active = !1;
|
|
|
this.node_redPoint.active = !1;
|
|
this.node_redPoint.active = !1;
|
|
|
|
|
+s = this.sp_icon;
|
|
|
|
|
+return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
|
|
|
|
|
+
|
|
|
|
|
+case 3:
|
|
|
|
|
+s.spriteFrame = c.sent();
|
|
|
return [ 3, 6 ];
|
|
return [ 3, 6 ];
|
|
|
|
|
|
|
|
case 4:
|
|
case 4:
|
|
|
-p = this.sp_icon;
|
|
|
|
|
-return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
|
|
|
|
|
-
|
|
|
|
|
-case 5:
|
|
|
|
|
-p.spriteFrame = c.sent();
|
|
|
|
|
this.lbl_des.string = "神秘物种,等待发现";
|
|
this.lbl_des.string = "神秘物种,等待发现";
|
|
|
this.node_getBtn.active = !1;
|
|
this.node_getBtn.active = !1;
|
|
|
this.node_ungetBtn.active = !1;
|
|
this.node_ungetBtn.active = !1;
|
|
|
this.node_unluckBtn.active = !0;
|
|
this.node_unluckBtn.active = !0;
|
|
|
this.lbl_nameDes.node.active = !1;
|
|
this.lbl_nameDes.node.active = !1;
|
|
|
this.node_redPoint.active = !1;
|
|
this.node_redPoint.active = !1;
|
|
|
|
|
+p = this.sp_icon;
|
|
|
|
|
+return [ 4, mk.loader.load("module/farmMap/texture/gift", cc.SpriteFrame) ];
|
|
|
|
|
+
|
|
|
|
|
+case 5:
|
|
|
|
|
+p.spriteFrame = c.sent();
|
|
|
c.label = 6;
|
|
c.label = 6;
|
|
|
|
|
|
|
|
case 6:
|
|
case 6:
|
|
@@ -10063,7 +10063,7 @@ if (o > 0) {
|
|
|
n = Math.floor(o / 3);
|
|
n = Math.floor(o / 3);
|
|
|
a = o % 3;
|
|
a = o % 3;
|
|
|
mk.audio.playEffect("redmoney");
|
|
mk.audio.playEffect("redmoney");
|
|
|
-for (i = 0; 3 != i; ++i) mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, n);
|
|
|
|
|
|
|
+if (n > 0) for (i = 0; 3 != i; ++i) mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, n);
|
|
|
a > 0 && mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, a);
|
|
a > 0 && mk.fly.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, a);
|
|
|
}
|
|
}
|
|
|
return [ 2 ];
|
|
return [ 2 ];
|
|
@@ -11368,66 +11368,48 @@ e.btn4 = null;
|
|
|
e.btn5 = null;
|
|
e.btn5 = null;
|
|
|
e.btn6 = null;
|
|
e.btn6 = null;
|
|
|
e.btn7 = null;
|
|
e.btn7 = null;
|
|
|
-e.btn8 = null;
|
|
|
|
|
-e.btn_redeem = null;
|
|
|
|
|
return e;
|
|
return e;
|
|
|
}
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
e.prototype.onLoad = function() {
|
|
|
gData.gameData.funBtns = this;
|
|
gData.gameData.funBtns = this;
|
|
|
};
|
|
};
|
|
|
-e.prototype.start = function() {};
|
|
|
|
|
|
|
+e.prototype.start = function() {
|
|
|
|
|
+this.init();
|
|
|
|
|
+};
|
|
|
e.prototype.init = function() {
|
|
e.prototype.init = function() {
|
|
|
for (var t = gData.gameData.funOpenData, e = 0; e < t.length; e++) {
|
|
for (var t = gData.gameData.funOpenData, e = 0; e < t.length; e++) {
|
|
|
var o = this["btn" + (e + 1)];
|
|
var o = this["btn" + (e + 1)];
|
|
|
o && (o.active = "1" == t[e]);
|
|
o && (o.active = "1" == t[e]);
|
|
|
}
|
|
}
|
|
|
-this.updateRedeem();
|
|
|
|
|
-};
|
|
|
|
|
-e.prototype.updateRedeem = function() {
|
|
|
|
|
-this.btn_redeem.active = gData.redeem.showBtn;
|
|
|
|
|
-};
|
|
|
|
|
-e.prototype.update = function() {
|
|
|
|
|
-if (gData.redeem.init_btnChange) {
|
|
|
|
|
-this.updateRedeem();
|
|
|
|
|
-gData.redeem.init_btnChange = !1;
|
|
|
|
|
-}
|
|
|
|
|
};
|
|
};
|
|
|
i([ s({
|
|
i([ s({
|
|
|
type: cc.Node,
|
|
type: cc.Node,
|
|
|
-displayName: "互推"
|
|
|
|
|
|
|
+displayName: "农场等级奖励"
|
|
|
}) ], e.prototype, "btn1", void 0);
|
|
}) ], e.prototype, "btn1", void 0);
|
|
|
i([ s({
|
|
i([ s({
|
|
|
type: cc.Node,
|
|
type: cc.Node,
|
|
|
-displayName: "转盘"
|
|
|
|
|
|
|
+displayName: "提现"
|
|
|
}) ], e.prototype, "btn2", void 0);
|
|
}) ], e.prototype, "btn2", void 0);
|
|
|
i([ s({
|
|
i([ s({
|
|
|
type: cc.Node,
|
|
type: cc.Node,
|
|
|
-displayName: "裂变"
|
|
|
|
|
|
|
+displayName: "签到"
|
|
|
}) ], e.prototype, "btn3", void 0);
|
|
}) ], e.prototype, "btn3", void 0);
|
|
|
i([ s({
|
|
i([ s({
|
|
|
type: cc.Node,
|
|
type: cc.Node,
|
|
|
-displayName: "存钱罐"
|
|
|
|
|
|
|
+displayName: "抽奖"
|
|
|
}) ], e.prototype, "btn4", void 0);
|
|
}) ], e.prototype, "btn4", void 0);
|
|
|
i([ s({
|
|
i([ s({
|
|
|
type: cc.Node,
|
|
type: cc.Node,
|
|
|
-displayName: "福袋"
|
|
|
|
|
|
|
+displayName: "任务红包"
|
|
|
}) ], e.prototype, "btn5", void 0);
|
|
}) ], e.prototype, "btn5", void 0);
|
|
|
i([ s({
|
|
i([ s({
|
|
|
type: cc.Node,
|
|
type: cc.Node,
|
|
|
-displayName: "签到"
|
|
|
|
|
|
|
+displayName: "福利"
|
|
|
}) ], e.prototype, "btn6", void 0);
|
|
}) ], e.prototype, "btn6", void 0);
|
|
|
i([ s({
|
|
i([ s({
|
|
|
type: cc.Node,
|
|
type: cc.Node,
|
|
|
-displayName: "常规提现"
|
|
|
|
|
|
|
+displayName: "邀请"
|
|
|
}) ], e.prototype, "btn7", void 0);
|
|
}) ], e.prototype, "btn7", void 0);
|
|
|
-i([ s({
|
|
|
|
|
-type: cc.Node,
|
|
|
|
|
-displayName: "气泡红包组"
|
|
|
|
|
-}) ], e.prototype, "btn8", void 0);
|
|
|
|
|
-i([ s({
|
|
|
|
|
-type: cc.Node,
|
|
|
|
|
-displayName: "福利礼包"
|
|
|
|
|
-}) ], e.prototype, "btn_redeem", void 0);
|
|
|
|
|
return i([ c ], e);
|
|
return i([ c ], e);
|
|
|
}(cc.Component);
|
|
}(cc.Component);
|
|
|
o.default = l;
|
|
o.default = l;
|
|
@@ -11828,6 +11810,7 @@ this.init_task = !1;
|
|
|
this.init_expLevel = !1;
|
|
this.init_expLevel = !1;
|
|
|
this.init_redBagTask = !1;
|
|
this.init_redBagTask = !1;
|
|
|
this.init_productTask = !1;
|
|
this.init_productTask = !1;
|
|
|
|
|
+this.init_speedup = !1;
|
|
|
this._farmMapRewardData = [];
|
|
this._farmMapRewardData = [];
|
|
|
this._farmData = [];
|
|
this._farmData = [];
|
|
|
this._farmDataMap = new Map();
|
|
this._farmDataMap = new Map();
|
|
@@ -13123,6 +13106,7 @@ gData.gameData.init_leftTimes = !0;
|
|
|
};
|
|
};
|
|
|
e.prototype.lateUpdate = function() {
|
|
e.prototype.lateUpdate = function() {
|
|
|
gData.gameData.init_head = !1;
|
|
gData.gameData.init_head = !1;
|
|
|
|
|
+gData.gameData.init_coin = !1;
|
|
|
};
|
|
};
|
|
|
e.prototype.initMusic = function() {
|
|
e.prototype.initMusic = function() {
|
|
|
mk.audio.playMusic("bgm");
|
|
mk.audio.playMusic("bgm");
|
|
@@ -13149,7 +13133,6 @@ scale: 1.2
|
|
|
scale: 1
|
|
scale: 1
|
|
|
}).start();
|
|
}).start();
|
|
|
this.lbl_redMoney.string = gData.gameData.playerProp.redMoney / 100 + "";
|
|
this.lbl_redMoney.string = gData.gameData.playerProp.redMoney / 100 + "";
|
|
|
-gData.gameData.init_coin = !1;
|
|
|
|
|
};
|
|
};
|
|
|
e.prototype.initHead = function() {
|
|
e.prototype.initHead = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
return r(this, void 0, void 0, function() {
|
|
@@ -14405,6 +14388,7 @@ value: !0
|
|
|
var n = t("../../game/data/GameData"), a = t("./UISystem"), i = function() {
|
|
var n = t("../../game/data/GameData"), a = t("./UISystem"), i = function() {
|
|
|
function t() {}
|
|
function t() {}
|
|
|
t.prototype.open = function(t) {
|
|
t.prototype.open = function(t) {
|
|
|
|
|
+if ("0" != gData.gameData.configs.ServerConfig.NewUserGuide) {
|
|
|
this.crtGuideID = gData.gameData.getProp(n.GameProp.guideID);
|
|
this.crtGuideID = gData.gameData.getProp(n.GameProp.guideID);
|
|
|
null == this.crtGuideID && (this.crtGuideID = 0);
|
|
null == this.crtGuideID && (this.crtGuideID = 0);
|
|
|
if (this.crtGuideID >= 9999) mk.console.log("新手引导已做完"); else if (t <= this.crtGuideID && this.crtGuideID > 0) mk.console.log("当前引导已做过:" + t); else {
|
|
if (this.crtGuideID >= 9999) mk.console.log("新手引导已做完"); else if (t <= this.crtGuideID && this.crtGuideID > 0) mk.console.log("当前引导已做过:" + t); else {
|
|
@@ -14413,6 +14397,7 @@ this.crtGuideID = t;
|
|
|
mk.ui.openPanel("module/guide/guide", a.OpenActionType.normal, this.ui);
|
|
mk.ui.openPanel("module/guide/guide", a.OpenActionType.normal, this.ui);
|
|
|
this.setGuideID(this.crtGuideID++);
|
|
this.setGuideID(this.crtGuideID++);
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
};
|
|
};
|
|
|
t.prototype.setGuideID = function(t) {
|
|
t.prototype.setGuideID = function(t) {
|
|
|
if (5 == t) {
|
|
if (5 == t) {
|
|
@@ -19706,6 +19691,7 @@ e.prototype.sendRecommendList = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
return r(this, void 0, void 0, function() {
|
|
|
var t = this;
|
|
var t = this;
|
|
|
return c(this, function() {
|
|
return c(this, function() {
|
|
|
|
|
+if (this.sp_icon) {
|
|
|
this.sp_icon.node.active = !0;
|
|
this.sp_icon.node.active = !0;
|
|
|
this.data = gData.moreGame.getRandomNormal();
|
|
this.data = gData.moreGame.getRandomNormal();
|
|
|
this.data && cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(this.data.icon, function(e, o) {
|
|
this.data && cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(this.data.icon, function(e, o) {
|
|
@@ -19714,6 +19700,7 @@ var n = o;
|
|
|
t.sp_icon.spriteFrame = new cc.SpriteFrame(n);
|
|
t.sp_icon.spriteFrame = new cc.SpriteFrame(n);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+}
|
|
|
this.node_openBtn.active = !1;
|
|
this.node_openBtn.active = !1;
|
|
|
this.node_getBtn.active = !0;
|
|
this.node_getBtn.active = !0;
|
|
|
return [ 2 ];
|
|
return [ 2 ];
|
|
@@ -19734,7 +19721,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
|
-this.lbl_progress.string = n + "/" + o.redMoney;
|
|
|
|
|
|
|
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
fillRange: a
|
|
@@ -23496,7 +23483,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
|
-this.lbl_progress.string = n + "/" + o.redMoney;
|
|
|
|
|
|
|
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
fillRange: a
|
|
@@ -24594,7 +24581,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_cash.string = o.money / 100 + "元";
|
|
this.lbl_cash.string = o.money / 100 + "元";
|
|
|
-this.lbl_cash_out.string = n + "/" + o.redMoney;
|
|
|
|
|
|
|
+this.lbl_cash_out.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
fillRange: a
|
|
@@ -26380,6 +26367,11 @@ mk.ad.destoryBanner();
|
|
|
};
|
|
};
|
|
|
e.prototype.update = function() {
|
|
e.prototype.update = function() {
|
|
|
gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.playerProp.redMoney + gData.reward.add_redbag_value);
|
|
gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.playerProp.redMoney + gData.reward.add_redbag_value);
|
|
|
|
|
+gData.gameData.init_coin && this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
|
|
+if (gData.gameData.init_speedup) {
|
|
|
|
|
+gData.gameData.init_speedup = !1;
|
|
|
|
|
+this.lbl_remainTimes.string = "今日剩余次数:" + gData.gameData.playerProp.speedUpLeftTimes;
|
|
|
|
|
+}
|
|
|
};
|
|
};
|
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
|
void 0 === t && (t = 0);
|
|
void 0 === t && (t = 0);
|
|
@@ -26388,7 +26380,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
|
-this.lbl_progress.string = n + "/" + o.redMoney;
|
|
|
|
|
|
|
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
fillRange: a
|
|
@@ -26418,9 +26410,9 @@ gData.adData.watchVideo(null);
|
|
|
return [ 4, mk.http.sendData("farmSpeedUp", {}) ];
|
|
return [ 4, mk.http.sendData("farmSpeedUp", {}) ];
|
|
|
|
|
|
|
|
case 1:
|
|
case 1:
|
|
|
-if ((t = o.sent()) && 0 == t.errcore) {
|
|
|
|
|
|
|
+if ((t = o.sent()) && 0 == t.errcode) {
|
|
|
gData.gameData.playerProp.speedUpLeftTimes = t.data.speedUpLeftTimes;
|
|
gData.gameData.playerProp.speedUpLeftTimes = t.data.speedUpLeftTimes;
|
|
|
-this.lbl_remainTimes.string = "今日剩余次数:" + gData.gameData.playerProp.speedUpLeftTimes;
|
|
|
|
|
|
|
+gData.gameData.init_speedup = !0;
|
|
|
}
|
|
}
|
|
|
gData.gameData.setHarvest();
|
|
gData.gameData.setHarvest();
|
|
|
mk.tip.pop("加速成功!");
|
|
mk.tip.pop("加速成功!");
|
|
@@ -28614,7 +28606,7 @@ var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
if (o) {
|
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
|
-this.lbl_progress.string = n + "/" + o.redMoney;
|
|
|
|
|
|
|
+this.lbl_progress.string = n + "/" + o.redMoney / 100;
|
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
fillRange: a
|