|
|
@@ -10272,6 +10272,7 @@ this.normalCount.string = e;
|
|
|
this.normalProgress.fillRange = 1 - (this.ripeTime - t) / (1e3 * this.totleTime);
|
|
|
} else if (this.counting && t > this.ripeTime && !this.isRipeInit) {
|
|
|
this.isRipeInit = !0;
|
|
|
+console.log("onRiped start");
|
|
|
this.riped();
|
|
|
}
|
|
|
};
|
|
|
@@ -10325,9 +10326,11 @@ e = !0;
|
|
|
gData.gameData.RawInsectCurArr[2]++;
|
|
|
}
|
|
|
if (e) {
|
|
|
+console.log("onRiped 1111");
|
|
|
this.sickIcon.active = !0;
|
|
|
this.onSick && this.onSick.emit([ t ]);
|
|
|
} else {
|
|
|
+console.log("onRiped 2222");
|
|
|
this.ripedIcon.active = !0;
|
|
|
this.onRiped && this.onRiped.emit([ t ]);
|
|
|
}
|
|
|
@@ -10976,6 +10979,7 @@ t = this.node.getChildByName("hb");
|
|
|
this.node.removeChild(t);
|
|
|
gData.gameData.setFarmDataMap(this.configID, this.data);
|
|
|
gData.gameData.setNextProduct(!1);
|
|
|
+gData.gameData.gameStyle.doCropFlyLogic(this.plantID);
|
|
|
0 == gData.harvestData.getType ? gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_harvest, this.node) : gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_others, this.node);
|
|
|
gData.gameData.popTableScreenADLogic(7);
|
|
|
mk.guide.open(16);
|
|
|
@@ -11036,28 +11040,18 @@ return [ 2, !1 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.onRiped = function(t) {
|
|
|
-return r(this, void 0, void 0, function() {
|
|
|
-return c(this, function() {
|
|
|
+console.log("onRiped " + this.configID);
|
|
|
this.data.state = s.FarmState.Ripe;
|
|
|
gData.gameData.setFarmDataMap(this.configID, this.data, t);
|
|
|
-return [ 2 ];
|
|
|
-});
|
|
|
-});
|
|
|
};
|
|
|
e.prototype.onSick = function(t) {
|
|
|
this.data.state = s.FarmState.Sick;
|
|
|
gData.gameData.setFarmDataMap(this.configID, this.data, t);
|
|
|
};
|
|
|
e.prototype.doMakePlantFinishLogic = function() {
|
|
|
-var t = gData.gameData.getProductMap(this.plantID);
|
|
|
-if ("10_2" == mk.guide.getCurGuideIdString()) {
|
|
|
-this.data.growSpan = 0;
|
|
|
-this.data.state = s.FarmState.Ripe;
|
|
|
-} else {
|
|
|
-var e = Date.now() + 1e3 * t.time;
|
|
|
+var t = gData.gameData.getProductMap(this.plantID), e = Date.now() + 1e3 * t.time;
|
|
|
this.data.growSpan = e;
|
|
|
this.data.state = s.FarmState.Growing;
|
|
|
-}
|
|
|
this.data.productID = this.plantID;
|
|
|
gData.gameData.setFarmDataMap(this.configID, this.data);
|
|
|
gData.gameData.isProducting = !1;
|
|
|
@@ -17662,7 +17656,6 @@ a.Inst.finalGetScore = 0;
|
|
|
a.Inst.initScore();
|
|
|
this.refreshGame();
|
|
|
var t = gData.gameData.getProp(f.GameProp.levelNum);
|
|
|
-t % 5 == 0 && mk.ad.showInterAd(1);
|
|
|
mk.data.sendDataEvent("TapChapter", "" + t);
|
|
|
};
|
|
|
e.prototype.refreshGame = function() {
|
|
|
@@ -17704,7 +17697,6 @@ this.gameOver();
|
|
|
};
|
|
|
e.prototype.gameOver = function() {
|
|
|
mk.data.setTAEventUser(1, "video_play_time", 1);
|
|
|
-gData.reward.subType = 2;
|
|
|
mk.ad.videoAdType = f.VideoAdType.video_init_23;
|
|
|
gData.adData.curRedBagAdFun = m.AdFun.settlement;
|
|
|
mk.ui.openPanel("module/newOpenRedBag/newOpenRedBag");
|
|
|
@@ -21170,7 +21162,6 @@ gData.reward.data = gData.harvestData.adData.videoRedMoney.videoRewardList;
|
|
|
gData.reward.addReward();
|
|
|
} else {
|
|
|
gData.reward.adData = gData.harvestData.adData;
|
|
|
-gData.gameData.gameStyle.doCropFlyLogic(this.plantID);
|
|
|
gData.reward.callback = gData.harvestData.call;
|
|
|
mk.ui.openPanel("module/reward/reward");
|
|
|
1 == this.isCrops_ ? mk.data.sendDataEvent(l.DataEventId.button_click, "动物超级加倍收获") : 2 == this.isCrops_ && mk.data.sendDataEvent(l.DataEventId.button_click, "商品超级加倍收获");
|
|
|
@@ -31846,7 +31837,6 @@ var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.add_redbag_value = 0;
|
|
|
e._data = [];
|
|
|
e.callback = null;
|
|
|
-e.subType = 1;
|
|
|
e.closeUICallBack = null;
|
|
|
e.isAddMoney = !1;
|
|
|
return e;
|