wuwangdong 4 年之前
父節點
當前提交
2b1ebd3960

+ 3 - 1
assets/script/before/main/FactoryIcon.ts

@@ -181,11 +181,13 @@ export class FactoryIcon extends cc.Component {
         this.clean();
         gData.factorySystem.currSelectFactory = null;
 
+        let productID = this.data.productID;
         this.data.state = FactroyState.Empty;
         this.data.productID = 0;
         this.data.growSpan = 0;
         gData.gameData.setFactoryDataMap(this.configID, this.data);
-        await gData.gameData.gameStyle.doCropFlyLogic(this.data.productID, this.node);
+        await gData.gameData.gameStyle.doCropFlyLogic(productID, this.node);
+        gData.gameData.nextMake = null;
         gData.gameData.setNextProduct(false);
 
         if (gData.harvestData.getType == 0) {

+ 1 - 0
assets/script/before/main/FarmIcon.ts

@@ -155,6 +155,7 @@ export class FarmIcon extends cc.Component {
         this.node.removeChild(child);
         gData.gameData.setFarmDataMap(this.configID, this.data);
         await gData.gameData.gameStyle.doCropFlyLogic(this.plantID, this.node, true);
+        gData.gameData.nextMake = null;
         gData.gameData.setNextProduct(false);
 
         if (gData.harvestData.getType == 0) {

+ 1 - 0
assets/script/before/main/PastureIcon.ts

@@ -281,6 +281,7 @@ export default class PastureIcon extends cc.Component {
         this.data.growSpan = 0;
         gData.gameData.setPastureDataMap(this.configID, this.data);
         await gData.gameData.gameStyle.doCropFlyLogic(this.data.productID, this.node);
+        gData.gameData.nextMake = null;
         gData.gameData.setNextProduct(false);
 
         if (gData.harvestData.getType == 0) {

+ 1 - 1
assets/script/game/data/AdData.ts

@@ -465,7 +465,7 @@ export class AdData {
         }
 
         return per;
-    }
+    } 
 
     savePreLoadEcpm(data) {
         let times = gData.gameData.getProp(GameProp.videoTimes);

二進制
build/jsb-link/assets/main/index.jsc


File diff suppressed because it is too large
+ 0 - 0
build/jsb-link/assets/resources/config.json


二進制
build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser


+ 9 - 4
build/jsb-link/js backups (useful for debugging)/main.index.js

@@ -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 ];

+ 2 - 2
packages-hot-update/cfg.json

@@ -10,7 +10,7 @@
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kxnlyTest/baseRemote/",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kxnlyJsb/baseRemote/"
     ],
-    "buildTime": 1635389909708,
-    "genTime": 1635389909708,
+    "buildTime": 1635399518359,
+    "genTime": 1635399518359,
     "genVersion": null
 }

Some files were not shown because too many files changed in this diff