|
|
@@ -14583,9 +14583,10 @@ a.active = !1;
|
|
|
mk.event.register("showTaskRedBagAction", this.doShowTaskRedBagActionLogic.bind(this), this);
|
|
|
}
|
|
|
} else this.addCount += 1; else if (13 == e && "1" == t[e]) {
|
|
|
-var o = gData.gameData.getProp(s.GameProp.cashTimes);
|
|
|
+var o = gData.gameData.getProp(s.GameProp.plantTimes);
|
|
|
console.log("cashTimes======" + o);
|
|
|
-if (!o || o < gData.gameData.showRichBankIconLimit) {
|
|
|
+null == o && (o = 0);
|
|
|
+if (o < gData.gameData.showRichBankIconLimit) {
|
|
|
a.active = !1;
|
|
|
mk.event.register("showRichBankIcon", this.showRichBankIcon.bind(this), this);
|
|
|
}
|
|
|
@@ -16539,6 +16540,7 @@ t[t.turnable_leftTimes = 20] = "turnable_leftTimes";
|
|
|
t[t.cashOutTimes = 21] = "cashOutTimes";
|
|
|
t[t.finishRichBankTodayTask = 22] = "finishRichBankTodayTask";
|
|
|
t[t.orderPlantTimes = 23] = "orderPlantTimes";
|
|
|
+t[t.plantTimes = 24] = "plantTimes";
|
|
|
t[t.levelNum = 10] = "levelNum";
|
|
|
})(i = a.GameProp || (a.GameProp = {}));
|
|
|
var u, d, h, f, y, g = function() {
|
|
|
@@ -19121,8 +19123,18 @@ gData.farmSystem._lastSeletFarm && gData.farmSystem._lastSeletFarm.clickGuideBtn
|
|
|
};
|
|
|
e.prototype.onClickSafeDepositBox = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
+var t;
|
|
|
return c(this, function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
+null == (t = gData.gameData.getProp(d.GameProp.plantTimes)) && (t = 0);
|
|
|
+if (t < gData.gameData.showRichBankIconLimit) {
|
|
|
+mk.tip.pop("种植" + gData.gameData.showRichBankIconLimit + "次后开启");
|
|
|
+return [ 2 ];
|
|
|
+}
|
|
|
+if (!gData.loginData.isAuth) {
|
|
|
+mk.ui.openPanel("module/authUI/authUI");
|
|
|
+return [ 2 ];
|
|
|
+}
|
|
|
console.log("currentRichBankCashTaskIndex 22======== " + gData.safeDepositBoxData.currentRichBankCashTaskIndex);
|
|
|
if (gData.safeDepositBoxData.currentRichBankCashTaskIndex) {
|
|
|
mk.ui.openPanel("module/safeDepositBox/SafeDepositBox");
|
|
|
@@ -27009,9 +27021,6 @@ e.prototype.start = function() {
|
|
|
var t = gData.gameData.getProp(r.GameProp.cashTimes);
|
|
|
t || (t = 0);
|
|
|
gData.gameData.setProp(r.GameProp.cashTimes, ++t);
|
|
|
-t = gData.gameData.getProp(r.GameProp.cashTimes);
|
|
|
-console.log("cashTimes2222======" + t);
|
|
|
-gData.gameData.showRichBankIconLimit == t && "1" == gData.gameData.funOpenData[13] && mk.event.emit("showRichBankIcon");
|
|
|
gData.gameData.taskRedBagAutoShowLimit == t && "1" == gData.gameData.funOpenData[4] && mk.event.emit("showTaskRedBagAction");
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
@@ -29086,35 +29095,39 @@ mk.tip.pop("生产次数+5");
|
|
|
};
|
|
|
e.prototype.clickMake = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var t, e, a;
|
|
|
-return c(this, function(o) {
|
|
|
-switch (o.label) {
|
|
|
+var t, e, a, o;
|
|
|
+return c(this, function(n) {
|
|
|
+switch (n.label) {
|
|
|
case 0:
|
|
|
mk.audio.playEffect("button");
|
|
|
mk.guide.next();
|
|
|
return gData.gameData.isProducting ? [ 2 ] : this.data.tab != l.ProductType.nzw ? [ 3, 2 ] : [ 4, gData.farmSystem.plant(this.data.picture, this.nameIcon.node) ];
|
|
|
|
|
|
case 1:
|
|
|
-t = o.sent();
|
|
|
+t = n.sent();
|
|
|
return [ 3, 4 ];
|
|
|
|
|
|
case 2:
|
|
|
return [ 4, gData.factorySystem.make(this.data.picture, this.nameIcon.node) ];
|
|
|
|
|
|
case 3:
|
|
|
-t = o.sent();
|
|
|
-o.label = 4;
|
|
|
+t = n.sent();
|
|
|
+n.label = 4;
|
|
|
|
|
|
case 4:
|
|
|
if (t) {
|
|
|
-if ("0" == gData.gameData.funOpenData[4]) return [ 2 ];
|
|
|
-gData.plantData.init_ani = !0;
|
|
|
-e = this.nameIcon.node.parent.convertToWorldSpaceAR(this.nameIcon.node.getPosition());
|
|
|
-gData.gameData.gameStyle.dpFlyRedAni(e);
|
|
|
-null == (a = gData.gameData.getProp(l.GameProp.orderPlantTimes))[this.data.id] ? a[this.data.id] = 1 : a[this.data.id]++;
|
|
|
-gData.gameData.setProp(l.GameProp.orderPlantTimes, a);
|
|
|
+null == (e = gData.gameData.getProp(l.GameProp.orderPlantTimes))[this.data.id] ? e[this.data.id] = 1 : e[this.data.id]++;
|
|
|
+gData.gameData.setProp(l.GameProp.orderPlantTimes, e);
|
|
|
this.checkOrder();
|
|
|
mk.data.sendDataEvent("Plant", this.data.name);
|
|
|
+null == (a = gData.gameData.getProp(l.GameProp.plantTimes)) && (a = 0);
|
|
|
+a++;
|
|
|
+gData.gameData.setProp(l.GameProp.plantTimes, a);
|
|
|
+gData.gameData.showRichBankIconLimit == a && "1" == gData.gameData.funOpenData[13] && mk.event.emit("showRichBankIcon");
|
|
|
+if ("0" == gData.gameData.funOpenData[4]) return [ 2 ];
|
|
|
+gData.plantData.init_ani = !0;
|
|
|
+o = this.nameIcon.node.parent.convertToWorldSpaceAR(this.nameIcon.node.getPosition());
|
|
|
+gData.gameData.gameStyle.dpFlyRedAni(o);
|
|
|
}
|
|
|
return [ 2 ];
|
|
|
}
|