|
|
@@ -11674,7 +11674,7 @@ t.fileProgress.node.parent.active = !1;
|
|
|
t.fileProgress.fillRange = 0;
|
|
|
t.labPro.string = "0%";
|
|
|
t.btnSure.active = !0;
|
|
|
-t.btnCancel.active = !0;
|
|
|
+t.btnCancel.active = !1;
|
|
|
}, function(e, a, o) {
|
|
|
var n = a / o;
|
|
|
t.setPro(n);
|
|
|
@@ -12880,7 +12880,7 @@ this.playerProp.redMoneyCashPayRecordList = t.redMoneyCashPayRecordList;
|
|
|
mk.console.logSingle("userNoviceWeFareInfo==>", t.userNoviceWeFareInfo);
|
|
|
this.playerProp.userFarmTaskInfo = t.userFarmTaskInfo;
|
|
|
this.playerProp.speedUpLeftTimes = t.speedUpLeftTimes;
|
|
|
-this.playerProp.completeFarmTaskTimes = t.completeFarmTaskTimes;
|
|
|
+this.playerProp.completeFarmTaskTimes = 3;
|
|
|
this.playerProp.orderData = t.userOrderTaskInfo;
|
|
|
console.log("==============initPlayerProp");
|
|
|
console.log(t.userOrderTaskInfo);
|
|
|
@@ -13135,6 +13135,28 @@ return this.getProductMap(e);
|
|
|
}
|
|
|
return this.getProductMap(e);
|
|
|
};
|
|
|
+t.prototype.doJudgeOrderLogic = function(t) {
|
|
|
+var e = this.playerProp.orderData, a = e.orderTaskList;
|
|
|
+if (e && a) for (var o = this.configs.Product, n = 0; n != a.length; ++n) {
|
|
|
+var i = a[n];
|
|
|
+if (this.playerProp.copyOrderData[n] < i.taskCount && i.Id <= o.length) {
|
|
|
+var r = o[i.Id - 1];
|
|
|
+if (r.tab == u.nzw) continue;
|
|
|
+if (r.tab == u.dw) {
|
|
|
+for (var c = gData.pastureSystem.pastureIcons, s = c.length, l = 0; l < s; l++) if (c[l].data.productID == r.picture && c[l].data.state == p.Empty) {
|
|
|
+t.state = 2;
|
|
|
+break;
|
|
|
+}
|
|
|
+} else {
|
|
|
+var h = gData.factorySystem.factoryIcons;
|
|
|
+for (s = h.length, l = 0; l < s; l++) if (this.getTabByConfigID(h[l].configID) == r.tab && h[l].data.state == d.Empty) {
|
|
|
+t.state = 1;
|
|
|
+break;
|
|
|
+}
|
|
|
+}
|
|
|
+}
|
|
|
+}
|
|
|
+};
|
|
|
t.prototype.getRandomFactoryConfig = function(t) {
|
|
|
for (var e = gData.gameData.getTabByConfigID(t), a = this.getProductArrByType(e), o = this.getMaxProduct(e), n = [], i = a.length, c = 0; c < i; c++) if (a[c].picture <= o) {
|
|
|
n.push(a[c].picture);
|
|
|
@@ -13195,7 +13217,10 @@ if (!this.nextMake) {
|
|
|
var e = {
|
|
|
state: -1
|
|
|
};
|
|
|
-gData.farmSystem.selectNextFarm(e, t) || gData.pastureSystem.nextPasture(e) || gData.factorySystem.nextFactory(e) || (this.nextType = 0);
|
|
|
+if (!gData.farmSystem.selectNextFarm(e, t)) {
|
|
|
+-1 == e.state && this.doJudgeOrderLogic(e);
|
|
|
+gData.pastureSystem.nextPasture(e) || gData.factorySystem.nextFactory(e) || (this.nextType = 0);
|
|
|
+}
|
|
|
this.init_makeInfo = !0;
|
|
|
}
|
|
|
};
|
|
|
@@ -14822,13 +14847,11 @@ break;
|
|
|
}
|
|
|
gData.farmSystem.currSelectFarm || (gData.farmSystem.currSelectFarm = t[0]);
|
|
|
} else {
|
|
|
-var a = -1, o = gData.factorySystem.factoryIcons;
|
|
|
-for (e = 0; e != o.length; ++e) if (o[e].tab == this.productType && o[e].data.state == d.FarmState.Empty) {
|
|
|
--1 != a && (a = e);
|
|
|
-gData.factorySystem.currSelectFactory = o[e];
|
|
|
+var a = gData.factorySystem.factoryIcons;
|
|
|
+for (e = 0; e != a.length; ++e) if (a[e].tab == this.productType) {
|
|
|
+gData.factorySystem.currSelectFactory = a[e];
|
|
|
break;
|
|
|
}
|
|
|
-gData.factorySystem.currSelectFactory || (gData.factorySystem.currSelectFactory = o[a]);
|
|
|
}
|
|
|
gData.plantData.openPanel(this.productType, 1, this.productIndex - 1);
|
|
|
};
|
|
|
@@ -17255,6 +17278,7 @@ this.config = gData.gameData.getProductMap(this.plantID);
|
|
|
this.judgeIsMatchOrder();
|
|
|
if (i) {
|
|
|
this.isCdOver = !1;
|
|
|
+console.log("=========isCdOver == false");
|
|
|
this.getNormalReward();
|
|
|
} else {
|
|
|
var r = mk.guide.isGuiding(), c = Math.random(), l = gData.adData.getPerByEcpm(s.RateConfig.RC_superDouble);
|
|
|
@@ -17263,13 +17287,14 @@ this.isTouchBtn = !1;
|
|
|
mk.ui.openPanel("game/prefab/uiPanel/HarvestPanel");
|
|
|
} else {
|
|
|
this.isCdOver = !1;
|
|
|
+console.log("=========isCdOver == false");
|
|
|
this.getNormalReward();
|
|
|
} else {
|
|
|
this.isCdOver = !1;
|
|
|
this.getNormalReward();
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+} else console.log("=========isCdOver");
|
|
|
};
|
|
|
e.prototype.setAdData = function(e) {
|
|
|
mk.console.logSingle("HarvestData addata ", this.adData);
|
|
|
@@ -17302,6 +17327,7 @@ case 3:
|
|
|
if ((e = c.sent()) && 0 != e.errcode) return [ 2 ];
|
|
|
if (!(e.data.redMoneyAddition <= 0)) return [ 3, 4 ];
|
|
|
this.isCdOver = !0;
|
|
|
+console.log("=========isCdOver == true");
|
|
|
console.log("返回奖励为0");
|
|
|
return [ 3, 7 ];
|
|
|
|
|
|
@@ -17319,6 +17345,7 @@ i.parent = mk.fly.node;
|
|
|
i.setPosition(o);
|
|
|
cc.tween(i).delay(.4).call(function() {
|
|
|
l.isCdOver = !0;
|
|
|
+console.log("=========isCdOver == true");
|
|
|
l.getType = 0;
|
|
|
var t = [ {
|
|
|
rewardType: 1,
|
|
|
@@ -17332,6 +17359,7 @@ return [ 3, 7 ];
|
|
|
|
|
|
case 6:
|
|
|
this.isCdOver = !0;
|
|
|
+console.log("=========isCdOver == true");
|
|
|
this.getType = 0;
|
|
|
r = [ {
|
|
|
rewardType: 1,
|
|
|
@@ -23625,7 +23653,12 @@ this.awardLabel.string = (t.menuRedBagCoin / 100).toString();
|
|
|
this.timeLabel.string = t.time;
|
|
|
i = !1;
|
|
|
r = 0;
|
|
|
-1 == t.unlock ? (r = gData.gameData.getProductMakeTimesById(t.picture - 1)) >= t.value && (i = !0) : 2 == t.unlock && gData.gameData.playerProp.completeFarmTaskTimes >= t.value && (i = !0);
|
|
|
+if (1 == t.unlock) {
|
|
|
+(r = gData.gameData.getProductMakeTimesById(t.picture - 1)) >= t.value && (i = !0);
|
|
|
+console.log("PlantItem=====>picture===" + t.picture);
|
|
|
+console.log("PlantItem=====>times===" + r);
|
|
|
+console.log("PlantItem=====>value===" + t.value);
|
|
|
+} else 2 == t.unlock && gData.gameData.playerProp.completeFarmTaskTimes >= t.value && (i = !0);
|
|
|
this.mainNode.active = i;
|
|
|
this.lockNode.active = !i;
|
|
|
if (!i) {
|