|
|
@@ -8367,20 +8367,23 @@ gData.gameData.setFactoryDataMap(this.configID, this.data, t);
|
|
|
};
|
|
|
e.prototype.onHarvest = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-return c(this, function(t) {
|
|
|
-switch (t.label) {
|
|
|
+var t;
|
|
|
+return c(this, function(e) {
|
|
|
+switch (e.label) {
|
|
|
case 0:
|
|
|
this.countDown.cleanRiped();
|
|
|
this.clean();
|
|
|
gData.factorySystem.currSelectFactory = null;
|
|
|
+t = this.data.productID;
|
|
|
this.data.state = s.FactroyState.Empty;
|
|
|
this.data.productID = 0;
|
|
|
this.data.growSpan = 0;
|
|
|
gData.gameData.setFactoryDataMap(this.configID, this.data);
|
|
|
-return [ 4, gData.gameData.gameStyle.doCropFlyLogic(this.data.productID, this.node) ];
|
|
|
+return [ 4, gData.gameData.gameStyle.doCropFlyLogic(t, this.node) ];
|
|
|
|
|
|
case 1:
|
|
|
-t.sent();
|
|
|
+e.sent();
|
|
|
+gData.gameData.nextMake = null;
|
|
|
gData.gameData.setNextProduct(!1);
|
|
|
0 == gData.harvestData.getType ? gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_harvest, this.node) : gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_others, this.node);
|
|
|
return [ 2 ];
|
|
|
@@ -9564,6 +9567,7 @@ return [ 4, gData.gameData.gameStyle.doCropFlyLogic(this.plantID, this.node, !0)
|
|
|
|
|
|
case 1:
|
|
|
e.sent();
|
|
|
+gData.gameData.nextMake = null;
|
|
|
gData.gameData.setNextProduct(!1);
|
|
|
0 == gData.harvestData.getType ? gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_harvest, this.node) : gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_others, this.node);
|
|
|
return [ 2 ];
|
|
|
@@ -23167,6 +23171,7 @@ return [ 4, gData.gameData.gameStyle.doCropFlyLogic(this.data.productID, this.no
|
|
|
|
|
|
case 1:
|
|
|
t.sent();
|
|
|
+gData.gameData.nextMake = null;
|
|
|
gData.gameData.setNextProduct(!1);
|
|
|
0 == gData.harvestData.getType ? gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_harvest, this.node) : gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_others, this.node);
|
|
|
return [ 2 ];
|