|
|
@@ -3292,20 +3292,7 @@ t.moveSheep.play();
|
|
|
}).start();
|
|
|
}
|
|
|
};
|
|
|
-e.prototype.clickAnimalIconBtn = function(t, e) {
|
|
|
-mk.audio.playEffect("button");
|
|
|
-if ("bird_1" == e) {
|
|
|
-this.flyBirdFinished_1();
|
|
|
-this.getRewardByHttp("bird_1");
|
|
|
-} else if ("bird_2" == e) {
|
|
|
-this.flyBirdFinished_2();
|
|
|
-this.getRewardByHttp("bird_2");
|
|
|
-} else if ("dog" == e) {
|
|
|
-this.moveDogFinished();
|
|
|
-this.getRewardByHttp("dog");
|
|
|
-}
|
|
|
-gData.adData.checkShowFullInter(1, s.InterFullAdType.interstitial2_init_3);
|
|
|
-};
|
|
|
+e.prototype.clickAnimalIconBtn = function() {};
|
|
|
e.prototype.getRewardByHttp = function(t) {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
var e, a, o, n, i, r;
|
|
|
@@ -8288,13 +8275,9 @@ this.showGroup.removeAllChildren();
|
|
|
};
|
|
|
e.prototype.onTouch = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var t, e;
|
|
|
return c(this, function() {
|
|
|
switch (this.data.state) {
|
|
|
case s.FactroyState.Lock:
|
|
|
-t = gData.gameData.getProductArrByType(this.tab);
|
|
|
-e = t[0].value - gData.gameData.playerProp.completeFarmTaskTimes;
|
|
|
-mk.tip.pop("完成" + e + "次任务红包后解锁");
|
|
|
break;
|
|
|
|
|
|
case s.FactroyState.Empty:
|
|
|
@@ -8385,7 +8368,7 @@ 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);
|
|
|
+gData.harvestData.getType;
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
});
|
|
|
@@ -9527,12 +9510,7 @@ gData.adUnlockData.openPanel(this.configID);
|
|
|
break;
|
|
|
|
|
|
case s.FarmState.Empty:
|
|
|
-gData.farmSystem.currSelectFarm = this;
|
|
|
-gData.plantData.openPanel(s.ProductType.nzw, this.configID);
|
|
|
-break;
|
|
|
-
|
|
|
case s.FarmState.Growing:
|
|
|
-mk.ui.openPanel("module/speedUpUI/speedUp");
|
|
|
break;
|
|
|
|
|
|
case s.FarmState.Ripe:
|
|
|
@@ -9551,9 +9529,7 @@ return [ 2 ];
|
|
|
e.prototype.onHarvest = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
var t;
|
|
|
-return c(this, function(e) {
|
|
|
-switch (e.label) {
|
|
|
-case 0:
|
|
|
+return c(this, function() {
|
|
|
this.countDown.cleanRiped();
|
|
|
this.process.cleanProcess();
|
|
|
gData.farmSystem.currSelectFarm = null;
|
|
|
@@ -9563,15 +9539,10 @@ this.data.growSpan = 0;
|
|
|
t = this.node.getChildByName("hb");
|
|
|
this.node.removeChild(t);
|
|
|
gData.gameData.setFarmDataMap(this.configID, this.data);
|
|
|
-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);
|
|
|
+gData.harvestData.getType;
|
|
|
return [ 2 ];
|
|
|
-}
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
@@ -12393,7 +12364,7 @@ Object.defineProperty(a, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
a.Fun = void 0;
|
|
|
-var o, n = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/TurnableData"), d = t("./module/SignData"), h = t("./module/FissionData"), f = t("./AdData"), y = t("./module/RewardData"), g = t("./module/CashNormalData"), m = t("./module/ReceiptNoticeData"), _ = t("./module/BlessingBagData"), v = t("./module/CashProData"), b = t("./module/RedBagCashData"), D = t("./module/RedCodeData"), w = t("./module/MoreGameData"), S = t("./module/SettingData"), A = t("./module/GuideData"), k = t("./module/GuideWeakData"), P = t("./ConfigData"), O = t("./module/NewCashUIData"), I = t("../../before/view/data/ADUnlockData"), T = t("../../before/view/data/PlantData"), R = t("../../before/main/FarmSystem"), C = t("../../before/view/data/HarvestData"), F = t("../../before/view/data/ADClearSickData"), M = t("../../before/main/PastureSystem"), x = t("../../before/main/FactorySystem"), N = t("./module/FarmMapData"), j = t("./module/GradeRewardData"), E = t("./module/WalletCashOutData"), L = t("./module/LineUpUIData"), B = t("./module/WarnTipData"), U = function() {
|
|
|
+var o, n = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/TurnableData"), d = t("./module/SignData"), h = t("./module/FissionData"), f = t("./AdData"), y = t("./module/RewardData"), g = t("./module/CashNormalData"), m = t("./module/ReceiptNoticeData"), _ = t("./module/BlessingBagData"), v = t("./module/CashProData"), b = t("./module/RedBagCashData"), D = t("./module/RedCodeData"), w = t("./module/MoreGameData"), S = t("./module/SettingData"), A = t("./module/GuideData"), k = t("./module/GuideWeakData"), P = t("./ConfigData"), O = t("./module/NewCashUIData"), I = t("../../before/view/data/ADUnlockData"), T = t("../../before/view/data/PlantData"), R = t("../../before/main/FarmSystem"), C = t("../../before/view/data/HarvestData"), M = t("../../before/view/data/ADClearSickData"), F = t("../../before/main/PastureSystem"), x = t("../../before/main/FactorySystem"), N = t("./module/FarmMapData"), j = t("./module/GradeRewardData"), L = t("./module/WalletCashOutData"), E = t("./module/LineUpUIData"), B = t("./module/WarnTipData"), U = function() {
|
|
|
function t() {
|
|
|
this.init();
|
|
|
}
|
|
|
@@ -12425,14 +12396,14 @@ this.newCashUiData = new O.NewCashUIData();
|
|
|
this.adUnlockData = new I.default();
|
|
|
this.plantData = new T.default();
|
|
|
this.harvestData = new C.default();
|
|
|
-this.adClearSickData = new F.default();
|
|
|
-this.pastureSystem = new M.default();
|
|
|
+this.adClearSickData = new M.default();
|
|
|
+this.pastureSystem = new F.default();
|
|
|
this.factorySystem = new x.default();
|
|
|
this.farmSystem = new R.FarmSystem();
|
|
|
this.farmMapData = new N.FarmMapData();
|
|
|
this.farmGradeData = new j.GradeRewardData();
|
|
|
-this.walletCashOutData = new E.WalletCashOutData();
|
|
|
-this.lineUpUIData = new L.LineUpUIData();
|
|
|
+this.walletCashOutData = new L.WalletCashOutData();
|
|
|
+this.lineUpUIData = new E.LineUpUIData();
|
|
|
this.warnTipData = new B.default();
|
|
|
this.moduleData = new Map();
|
|
|
this.moduleData.set(o.moreGame, this.moreGame);
|
|
|
@@ -13313,27 +13284,18 @@ return [ 2, t ];
|
|
|
t.prototype.updateNewTaskProgress = function(t) {
|
|
|
void 0 === t && (t = !1);
|
|
|
return o(this, void 0, void 0, function() {
|
|
|
-var t, e, a, o;
|
|
|
-return n(this, function(n) {
|
|
|
-switch (n.label) {
|
|
|
+var t;
|
|
|
+return n(this, function(e) {
|
|
|
+switch (e.label) {
|
|
|
case 0:
|
|
|
-if (this.playerProp.userFarmTaskInfo) {
|
|
|
-t = this.playerProp.userFarmTaskInfo.completeCount;
|
|
|
-e = this.playerProp.userFarmTaskInfo.taskCount;
|
|
|
-if (t >= e) {
|
|
|
-this.gameStyle.getIsCanGetOrderReward() ? mk.tip.pop("订单已完成,快领奖吧!") : mk.tip.pop("任务红包进度已满,快去提现");
|
|
|
return [ 2, !1 ];
|
|
|
-}
|
|
|
-}
|
|
|
-a = {};
|
|
|
-return [ 4, mk.http.sendData("farmTask/updateUserFarmTaskInfo", a) ];
|
|
|
|
|
|
case 1:
|
|
|
-o = n.sent();
|
|
|
-mk.console.logSingle("refrehTask=>", o);
|
|
|
-if (0 != o.errcode) return [ 2, !1 ];
|
|
|
+t = e.sent();
|
|
|
+mk.console.logSingle("refrehTask=>", t);
|
|
|
+if (0 != t.errcode) return [ 2, !1 ];
|
|
|
gData.gameData.init_task = !0;
|
|
|
-this.playerProp.userFarmTaskInfo = o.data.userFarmTaskInfo;
|
|
|
+this.playerProp.userFarmTaskInfo = t.data.userFarmTaskInfo;
|
|
|
this.playerProp.userFarmTaskInfo.completeCount, this.playerProp.userFarmTaskInfo.taskCount;
|
|
|
return [ 2, !0 ];
|
|
|
}
|
|
|
@@ -23044,14 +23006,9 @@ this.showGroup.removeAllChildren();
|
|
|
};
|
|
|
e.prototype.onTouch = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var t, e;
|
|
|
return c(this, function() {
|
|
|
switch (this.data.state) {
|
|
|
case s.PastureState.Lock:
|
|
|
-if (2 == (t = gData.gameData.getProductMap(this.data.productID)).unlock) {
|
|
|
-e = t.value - gData.gameData.playerProp.completeFarmTaskTimes;
|
|
|
-mk.tip.pop("完成" + e + "次任务红包后解锁");
|
|
|
-} else 1 == t.unlock && mk.tip.pop("喂食" + t.name + t.value + "次解锁");
|
|
|
break;
|
|
|
|
|
|
case s.PastureState.Empty:
|
|
|
@@ -23177,7 +23134,7 @@ 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);
|
|
|
+gData.harvestData.getType;
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
});
|
|
|
@@ -26248,7 +26205,6 @@ a.addReward();
|
|
|
};
|
|
|
e.prototype.getReward = function(t, e) {
|
|
|
void 0 === e && (e = !1);
|
|
|
-this.flyCoinAnim(t, e);
|
|
|
if (this.callback) {
|
|
|
this.callback();
|
|
|
this.callback = null;
|