|
@@ -2943,13 +2943,13 @@ if ("bird_1" == e) {
|
|
|
this.flyBirdFinished_1();
|
|
this.flyBirdFinished_1();
|
|
|
mk.fly.PlayCoinAnim(1, 5, this.flyBird_1.node, "", function() {
|
|
mk.fly.PlayCoinAnim(1, 5, this.flyBird_1.node, "", function() {
|
|
|
console.log("--");
|
|
console.log("--");
|
|
|
-}, 2);
|
|
|
|
|
|
|
+}, -1, 2);
|
|
|
} else if ("bird_2" == e) {
|
|
} else if ("bird_2" == e) {
|
|
|
this.flyBirdFinished_2();
|
|
this.flyBirdFinished_2();
|
|
|
-mk.fly.PlayCoinAnim(1, 5, this.flyBird_2.node, "", null, 2);
|
|
|
|
|
|
|
+mk.fly.PlayCoinAnim(1, 5, this.flyBird_2.node, "", null, -1, 2);
|
|
|
} else if ("dog" == e) {
|
|
} else if ("dog" == e) {
|
|
|
this.moveDogFinished();
|
|
this.moveDogFinished();
|
|
|
-mk.fly.PlayCoinAnim(1, 5, this.dogMove.node, "", null, 2);
|
|
|
|
|
|
|
+mk.fly.PlayCoinAnim(1, 5, this.dogMove.node, "", null, -1, 2);
|
|
|
} else "sheep" == e && mk.ui.openPanel("module/newOpenRedBag/newOpenRedBag");
|
|
} else "sheep" == e && mk.ui.openPanel("module/newOpenRedBag/newOpenRedBag");
|
|
|
gData.adData.checkShowFullInter(1);
|
|
gData.adData.checkShowFullInter(1);
|
|
|
};
|
|
};
|
|
@@ -7888,6 +7888,7 @@ this.data.productID = 0;
|
|
|
this.data.growSpan = 0;
|
|
this.data.growSpan = 0;
|
|
|
gData.gameData.setFactoryDataMap(this.configID, this.data);
|
|
gData.gameData.setFactoryDataMap(this.configID, this.data);
|
|
|
gData.gameData.setNextProduct(!1);
|
|
gData.gameData.setNextProduct(!1);
|
|
|
|
|
+gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_harvest, this.node);
|
|
|
};
|
|
};
|
|
|
i([ y({
|
|
i([ y({
|
|
|
type: u.FarmCountDown,
|
|
type: u.FarmCountDown,
|
|
@@ -8773,6 +8774,7 @@ this.data.productID = 0;
|
|
|
this.data.growSpan = 0;
|
|
this.data.growSpan = 0;
|
|
|
gData.gameData.setFarmDataMap(this.configID, this.data);
|
|
gData.gameData.setFarmDataMap(this.configID, this.data);
|
|
|
gData.gameData.setNextProduct(!1);
|
|
gData.gameData.setNextProduct(!1);
|
|
|
|
|
+gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_harvest, this.node);
|
|
|
};
|
|
};
|
|
|
e.prototype.plant = function(t) {
|
|
e.prototype.plant = function(t) {
|
|
|
return r(this, void 0, void 0, function() {
|
|
return r(this, void 0, void 0, function() {
|
|
@@ -10010,13 +10012,14 @@ return e;
|
|
|
e.prototype.onLoad = function() {
|
|
e.prototype.onLoad = function() {
|
|
|
mk.fly = this;
|
|
mk.fly = this;
|
|
|
};
|
|
};
|
|
|
-e.prototype.PlayCoinAnim = function(t, e, o, n, a, i) {
|
|
|
|
|
|
|
+e.prototype.PlayCoinAnim = function(t, e, o, n, a, i, s) {
|
|
|
void 0 === t && (t = 0);
|
|
void 0 === t && (t = 0);
|
|
|
void 0 === n && (n = "");
|
|
void 0 === n && (n = "");
|
|
|
void 0 === a && (a = null);
|
|
void 0 === a && (a = null);
|
|
|
void 0 === i && (i = -1);
|
|
void 0 === i && (i = -1);
|
|
|
|
|
+void 0 === s && (s = -1);
|
|
|
return r(this, void 0, void 0, function() {
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var r, s, l, p, u, d, h, f, y;
|
|
|
|
|
|
|
+var r, l, p, u, d, h, f, y, g;
|
|
|
return c(this, function(c) {
|
|
return c(this, function(c) {
|
|
|
switch (c.label) {
|
|
switch (c.label) {
|
|
|
case 0:
|
|
case 0:
|
|
@@ -10027,26 +10030,26 @@ case 1:
|
|
|
return r < e ? [ 4, mk.pool.getPrefab("game/prefab/coin") ] : [ 3, 5 ];
|
|
return r < e ? [ 4, mk.pool.getPrefab("game/prefab/coin") ] : [ 3, 5 ];
|
|
|
|
|
|
|
|
case 2:
|
|
case 2:
|
|
|
-s = c.sent();
|
|
|
|
|
-l = "game/texture/coin/" + t;
|
|
|
|
|
-return [ 4, mk.loader.load(l, cc.SpriteFrame) ];
|
|
|
|
|
|
|
+l = c.sent();
|
|
|
|
|
+p = "game/texture/coin/" + t;
|
|
|
|
|
+return [ 4, mk.loader.load(p, cc.SpriteFrame) ];
|
|
|
|
|
|
|
|
case 3:
|
|
case 3:
|
|
|
-p = c.sent();
|
|
|
|
|
-s.getComponent(cc.Sprite).spriteFrame = p;
|
|
|
|
|
-s.setParent(this.node);
|
|
|
|
|
-s.scale = mk.math.random(.56, .84, !1);
|
|
|
|
|
-s.angle = mk.math.random(-45, 45, !1);
|
|
|
|
|
-u = (u = cc.v2(mk.math.random(-1, 1, !1), mk.math.random(-1, 1, !1))).normalize();
|
|
|
|
|
-d = cc.v2(mk.math.random(10, 160, !1) * u.x, mk.math.random(10, 160, !1) * u.y);
|
|
|
|
|
-h = new cc.Vec2(0, -300);
|
|
|
|
|
|
|
+u = c.sent();
|
|
|
|
|
+l.getComponent(cc.Sprite).spriteFrame = u;
|
|
|
|
|
+l.setParent(this.node);
|
|
|
|
|
+l.scale = -1 != i ? i : mk.math.random(.56, .84, !1);
|
|
|
|
|
+l.angle = mk.math.random(-45, 45, !1);
|
|
|
|
|
+d = (d = cc.v2(mk.math.random(-1, 1, !1), mk.math.random(-1, 1, !1))).normalize();
|
|
|
|
|
+h = cc.v2(mk.math.random(10, 160, !1) * d.x, mk.math.random(10, 160, !1) * d.y);
|
|
|
|
|
+f = new cc.Vec2(0, -300);
|
|
|
if (o) {
|
|
if (o) {
|
|
|
-f = o.parent.convertToWorldSpaceAR(o.getPosition());
|
|
|
|
|
-h = this.node.convertToNodeSpaceAR(f);
|
|
|
|
|
|
|
+y = o.parent.convertToWorldSpaceAR(o.getPosition());
|
|
|
|
|
+f = this.node.convertToNodeSpaceAR(y);
|
|
|
}
|
|
}
|
|
|
-y = h.add(d);
|
|
|
|
|
-s.setPosition(h);
|
|
|
|
|
-this.FlyIn(t, s, y, n, a, i);
|
|
|
|
|
|
|
+g = f.add(h);
|
|
|
|
|
+l.setPosition(f);
|
|
|
|
|
+this.FlyIn(t, l, g, n, a, s);
|
|
|
c.label = 4;
|
|
c.label = 4;
|
|
|
|
|
|
|
|
case 4:
|
|
case 4:
|
|
@@ -10677,7 +10680,7 @@ Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
value: !0
|
|
|
});
|
|
});
|
|
|
o.Fun = void 0;
|
|
o.Fun = void 0;
|
|
|
-var n, a = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), m = t("./module/CashNormalData"), _ = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), D = t("./module/RedBagCashData"), w = t("./module/RedCodeData"), S = t("./module/RedeemData"), A = t("./module/MoreGameData"), P = t("./module/SettingData"), k = t("./module/GuideData"), O = t("./module/GuideWeakData"), I = t("./ConfigData"), R = t("./module/NewCashUIData"), T = t("../../before/view/data/ADUnlockData"), C = t("../../before/view/data/PlantData"), N = t("../../before/main/FarmSystem"), x = t("../../before/view/data/HarvestData"), j = t("../../before/view/data/ADClearSickData"), F = t("../../before/main/PastureSystem"), M = t("../../before/main/FactorySystem"), B = t("./module/FarmMapData"), L = t("./module/GradeRewardData"), E = t("./module/WalletCashOutData"), U = function() {
|
|
|
|
|
|
|
+var n, a = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), m = t("./module/CashNormalData"), _ = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), D = t("./module/RedBagCashData"), w = t("./module/RedCodeData"), S = t("./module/RedeemData"), A = t("./module/MoreGameData"), P = t("./module/SettingData"), k = t("./module/GuideData"), O = t("./module/GuideWeakData"), I = t("./ConfigData"), R = t("./module/NewCashUIData"), T = t("../../before/view/data/ADUnlockData"), C = t("../../before/view/data/PlantData"), N = t("../../before/main/FarmSystem"), x = t("../../before/view/data/HarvestData"), j = t("../../before/view/data/ADClearSickData"), F = t("../../before/main/PastureSystem"), M = t("../../before/main/FactorySystem"), B = t("./module/FarmMapData"), L = t("./module/GradeRewardData"), E = t("./module/WalletCashOutData"), G = function() {
|
|
|
function t() {
|
|
function t() {
|
|
|
this.init();
|
|
this.init();
|
|
|
}
|
|
}
|
|
@@ -10742,7 +10745,7 @@ t[t.cashNormal = 7] = "cashNormal";
|
|
|
t[t.redBagCash = 8] = "redBagCash";
|
|
t[t.redBagCash = 8] = "redBagCash";
|
|
|
t[t.redeem = 9] = "redeem";
|
|
t[t.redeem = 9] = "redeem";
|
|
|
})(n = o.Fun || (o.Fun = {}));
|
|
})(n = o.Fun || (o.Fun = {}));
|
|
|
-window.gData = new U();
|
|
|
|
|
|
|
+window.gData = new G();
|
|
|
cc._RF.pop();
|
|
cc._RF.pop();
|
|
|
}, {
|
|
}, {
|
|
|
"../../before/main/FactorySystem": "FactorySystem",
|
|
"../../before/main/FactorySystem": "FactorySystem",
|
|
@@ -11342,7 +11345,7 @@ case 2:
|
|
|
gData.pastureSystem.btnMake();
|
|
gData.pastureSystem.btnMake();
|
|
|
gData.gameData.nextMake = null;
|
|
gData.gameData.nextMake = null;
|
|
|
this.nextMake = null;
|
|
this.nextMake = null;
|
|
|
-this.setNextProduct();
|
|
|
|
|
|
|
+this.setNextProduct(!1);
|
|
|
gData.adData.checkPopRed();
|
|
gData.adData.checkPopRed();
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -11350,7 +11353,7 @@ case 3:
|
|
|
gData.factorySystem.btnMake();
|
|
gData.factorySystem.btnMake();
|
|
|
gData.gameData.nextMake = null;
|
|
gData.gameData.nextMake = null;
|
|
|
this.nextMake = null;
|
|
this.nextMake = null;
|
|
|
-this.setNextProduct();
|
|
|
|
|
|
|
+this.setNextProduct(!1);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
t.prototype.setFarmDataMap = function(t, e, o) {
|
|
t.prototype.setFarmDataMap = function(t, e, o) {
|
|
@@ -12452,14 +12455,19 @@ e.prototype.onClickPlant = function() {
|
|
|
if (gData.gameData.leftTimes <= 0) mk.tip.pop("生产次数不足"); else if (gData.gameData.isProducting) mk.tip.pop("点击太快了"); else {
|
|
if (gData.gameData.leftTimes <= 0) mk.tip.pop("生产次数不足"); else if (gData.gameData.isProducting) mk.tip.pop("点击太快了"); else {
|
|
|
gData.gameData.makeProduct();
|
|
gData.gameData.makeProduct();
|
|
|
var t = this.node_taskHb.parent.convertToWorldSpaceAR(this.node_taskHb.getPosition());
|
|
var t = this.node_taskHb.parent.convertToWorldSpaceAR(this.node_taskHb.getPosition());
|
|
|
-mk.fly.PlayCoinAnim(1, 3, this.btn_product, t, function() {
|
|
|
|
|
|
|
+mk.fly.PlayCoinAnim(4, 3, this.btn_product, t, function() {
|
|
|
gData.gameData.init_task = !0;
|
|
gData.gameData.init_task = !0;
|
|
|
-});
|
|
|
|
|
|
|
+}, 1);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
-e.prototype.doFlyExpAni = function() {
|
|
|
|
|
-var t = this.lbl_farmLevel.node.parent.convertToWorldSpaceAR(this.lbl_farmLevel.node.getPosition());
|
|
|
|
|
-mk.fly.PlayCoinAnim(2, 3, this.btn_product, t, function() {});
|
|
|
|
|
|
|
+e.prototype.doFlyExpAni = function(t, e, o) {
|
|
|
|
|
+var n = this.lbl_farmLevel.node.parent.convertToWorldSpaceAR(this.lbl_farmLevel.node.getPosition());
|
|
|
|
|
+mk.fly.PlayCoinAnim(2, 3, e, n, function() {
|
|
|
|
|
+mk.tip.pop("获得" + t + "点等级经验");
|
|
|
|
|
+gData.gameData.gameData.gradeLevel = o.farmLevel;
|
|
|
|
|
+gData.gameData.gameData.farmExpValue = o.userExp;
|
|
|
|
|
+gData.gameData.gameData.farmGradeData = o.userFarmGrageRewardInfo;
|
|
|
|
|
+});
|
|
|
};
|
|
};
|
|
|
i([ d({
|
|
i([ d({
|
|
|
type: cc.Node,
|
|
type: cc.Node,
|
|
@@ -12811,7 +12819,7 @@ return [ 4, mk.http.sendData("farmGrade/farmGradeCash", e) ];
|
|
|
|
|
|
|
|
case 1:
|
|
case 1:
|
|
|
o = n.sent();
|
|
o = n.sent();
|
|
|
-console.log("农场等级提现数据=======>" + o);
|
|
|
|
|
|
|
+mk.console.logSingle("农场等级提现数据=>", o);
|
|
|
if (0 != o.errcode) return [ 2, null ];
|
|
if (0 != o.errcode) return [ 2, null ];
|
|
|
this.changeExp = !0;
|
|
this.changeExp = !0;
|
|
|
gData.gameData.gameData.farmGradeData = o.data.userFarmGrageRewardInfo;
|
|
gData.gameData.gameData.farmGradeData = o.data.userFarmGrageRewardInfo;
|
|
@@ -12823,7 +12831,7 @@ return [ 2, o ];
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
e.prototype.addGradeExp = function(t, e) {
|
|
e.prototype.addGradeExp = function(t, e) {
|
|
|
-void 0 === e && (e = !1);
|
|
|
|
|
|
|
+void 0 === e && (e = null);
|
|
|
return r(this, void 0, void 0, function() {
|
|
return r(this, void 0, void 0, function() {
|
|
|
var o, n, a;
|
|
var o, n, a;
|
|
|
return c(this, function(i) {
|
|
return c(this, function(i) {
|
|
@@ -12837,13 +12845,13 @@ return [ 4, mk.http.sendData("farmGrade/updateFarmGrageInfo", o) ];
|
|
|
case 1:
|
|
case 1:
|
|
|
if (0 != (n = i.sent()).errcode) return [ 2 ];
|
|
if (0 != (n = i.sent()).errcode) return [ 2 ];
|
|
|
a = n.data.userExp - gData.gameData.gameData.farmExpValue;
|
|
a = n.data.userExp - gData.gameData.gameData.farmExpValue;
|
|
|
-if (e) {
|
|
|
|
|
|
|
+if (e) gData.gameData.gameStyle.doFlyExpAni(a, e, n.data); else {
|
|
|
this.changeExp = !0;
|
|
this.changeExp = !0;
|
|
|
mk.tip.pop("获得" + a + "点等级经验");
|
|
mk.tip.pop("获得" + a + "点等级经验");
|
|
|
-} else gData.gameData.gameStyle.doFlyExpAni(a);
|
|
|
|
|
gData.gameData.gameData.gradeLevel = n.data.farmLevel;
|
|
gData.gameData.gameData.gradeLevel = n.data.farmLevel;
|
|
|
gData.gameData.gameData.farmExpValue = n.data.userExp;
|
|
gData.gameData.gameData.farmExpValue = n.data.userExp;
|
|
|
gData.gameData.gameData.farmGradeData = n.data.userFarmGrageRewardInfo;
|
|
gData.gameData.gameData.farmGradeData = n.data.userFarmGrageRewardInfo;
|
|
|
|
|
+}
|
|
|
return [ 2 ];
|
|
return [ 2 ];
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -14251,7 +14259,7 @@ done: !0
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
value: !0
|
|
|
});
|
|
});
|
|
|
-var s = t("../../../game/data/AdData"), l = t("../../../game/data/GameData"), p = cc._decorator, u = p.ccclass, d = (p.property,
|
|
|
|
|
|
|
+var s = t("../../../game/data/AdData"), l = cc._decorator, p = l.ccclass, u = (l.property,
|
|
|
function(t) {
|
|
function(t) {
|
|
|
a(e, t);
|
|
a(e, t);
|
|
|
function e() {
|
|
function e() {
|
|
@@ -14276,18 +14284,14 @@ return c(this, function(t) {
|
|
|
switch (t.label) {
|
|
switch (t.label) {
|
|
|
case 0:
|
|
case 0:
|
|
|
mk.console.log("watchAD:" + e);
|
|
mk.console.log("watchAD:" + e);
|
|
|
-return e ? [ 4, gData.adData.watchVideo(s.AdFun.harvest) ] : [ 3, 3 ];
|
|
|
|
|
|
|
+return e ? [ 4, gData.adData.watchVideo(s.AdFun.harvest) ] : [ 3, 2 ];
|
|
|
|
|
|
|
|
case 1:
|
|
case 1:
|
|
|
t.sent();
|
|
t.sent();
|
|
|
gData.harvestData.setToEmpty();
|
|
gData.harvestData.setToEmpty();
|
|
|
-return [ 4, gData.farmGradeData.addGradeExp(l.ExpAddType.EAT_harvest) ];
|
|
|
|
|
|
|
+t.label = 2;
|
|
|
|
|
|
|
|
case 2:
|
|
case 2:
|
|
|
-t.sent();
|
|
|
|
|
-t.label = 3;
|
|
|
|
|
-
|
|
|
|
|
-case 3:
|
|
|
|
|
return [ 2 ];
|
|
return [ 2 ];
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -14306,13 +14310,12 @@ mk.ad.destoryBanner();
|
|
|
e.prototype.clickClose = function() {
|
|
e.prototype.clickClose = function() {
|
|
|
mk.ui.closePanel(this.node.name);
|
|
mk.ui.closePanel(this.node.name);
|
|
|
};
|
|
};
|
|
|
-return i([ u ], e);
|
|
|
|
|
|
|
+return i([ p ], e);
|
|
|
}(cc.Component));
|
|
}(cc.Component));
|
|
|
-o.default = d;
|
|
|
|
|
|
|
+o.default = u;
|
|
|
cc._RF.pop();
|
|
cc._RF.pop();
|
|
|
}, {
|
|
}, {
|
|
|
-"../../../game/data/AdData": "AdData",
|
|
|
|
|
-"../../../game/data/GameData": "GameData"
|
|
|
|
|
|
|
+"../../../game/data/AdData": "AdData"
|
|
|
} ],
|
|
} ],
|
|
|
HelpData: [ function(t, e, o) {
|
|
HelpData: [ function(t, e, o) {
|
|
|
"use strict";
|
|
"use strict";
|
|
@@ -19110,6 +19113,7 @@ this.data.state = s.PastureState.Empty;
|
|
|
this.data.growSpan = 0;
|
|
this.data.growSpan = 0;
|
|
|
gData.gameData.setPastureDataMap(this.configID, this.data);
|
|
gData.gameData.setPastureDataMap(this.configID, this.data);
|
|
|
gData.gameData.setNextProduct(!1);
|
|
gData.gameData.setNextProduct(!1);
|
|
|
|
|
+gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_harvest, this.node);
|
|
|
};
|
|
};
|
|
|
i([ g({
|
|
i([ g({
|
|
|
type: cc.Node,
|
|
type: cc.Node,
|
|
@@ -22493,7 +22497,6 @@ mk.audio.playEffect("rewardClose");
|
|
|
e = this.rewardData[t];
|
|
e = this.rewardData[t];
|
|
|
o = parseInt(e.type);
|
|
o = parseInt(e.type);
|
|
|
n = parseInt(e.count);
|
|
n = parseInt(e.count);
|
|
|
-mk.fly.PlayCoinAnim(o, 5, cc.v2(0, -300));
|
|
|
|
|
switch (o) {
|
|
switch (o) {
|
|
|
case l.RewardType.redBag:
|
|
case l.RewardType.redBag:
|
|
|
gData.gameData.gameData.redMoney += n;
|
|
gData.gameData.gameData.redMoney += n;
|