window.__require = function e(t, n, o) {
function r(a, l) {
if (!n[a]) {
if (!t[a]) {
var s = a.split("/");
s = s[s.length - 1];
if (!t[s]) {
var c = "function" == typeof __require && __require;
if (!l && c) return c(s, !0);
if (i) return i(s, !0);
throw new Error("Cannot find module '" + a + "'");
}
a = s;
}
var u = n[a] = {
exports: {}
};
t[a][0].call(u.exports, function(e) {
return r(t[a][1][e] || e);
}, u, u.exports, e, t, n, o);
}
return n[a].exports;
}
for (var i = "function" == typeof __require && __require, a = 0; a < o.length; a++) r(o[a]);
return r;
}({
AIComponent: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "abddeV10apLNoWoDTAGhz7G", "AIComponent");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AIComponent = void 0;
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnInit = function() {};
t.createDefaultAI = null;
return __decorate([ i ], t);
}(o.MyComponent));
n.AIComponent = a;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
AISkillPatternConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f80b7xg1slLVLZWh2OCvJT7", "AISkillPatternConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AISkillPatternConfig = n.AISkillPatternGroupProto = n.AISkillPatternProto = n.AISkillTimeProto = n.AIIdleTimeProto = void 0;
var o = function(e) {
this.time = e;
};
n.AIIdleTimeProto = o;
var r = function(e, t) {
this.time = e;
this.skillId = t;
};
n.AISkillTimeProto = r;
var i = function(e, t) {
this.id = e;
this.patternGroups = t;
};
n.AISkillPatternProto = i;
var a = function(e, t, n) {
this.id = e;
this.time = t;
this.patterns = n;
};
n.AISkillPatternGroupProto = a;
var l = function() {
function e() {}
e.GetProto = function(t) {
return e.protos.find(function(e) {
return e.id == t;
});
};
e.protos = [ new i(1003, [ new a(1, 4, [ [ new r(4, 1) ] ]), new a(2, 3.5, [ [ new r(3.5, 1) ] ]), new a(3, 1.5, [ [ new r(1.5, 1) ] ]) ]), new i(1003.1, [ new a(1, 4, [ [ new r(4, 1) ] ]), new a(2, 2.5, [ [ new r(2.5, 1) ] ]), new a(3, .5, [ [ new r(.5, 1) ] ]) ]), new i(1003.2, [ new a(1, 4, [ [ new r(4, 1) ] ]), new a(2, 2, [ [ new r(2, 1) ] ]), new a(3, .5, [ [ new r(.5, 1) ] ]) ]), new i(1005.4, [ new a(1, 10, [ [ new r(1, 1005.01), new r(3, 1005.01), new r(1, 1005.01), new r(2, 1005.01) ] ]), new a(2, 12, [ [ new r(3, 1005.02), new r(4, 1005.02), new r(5, 1005.02) ] ]), new a(3, 9, [ [ new r(3, 1005.03), new r(4, 1005.03) ] ]), new a(4, 9, [ [ new r(3, 1005.04), new r(5, 1005.04) ] ]) ]), new i(1005.5, [ new a(1, 10, [ [ new r(1, 1005.01), new r(2, 1005.01), new r(1, 1005.01), new r(2, 1005.01) ] ]), new a(2, 10, [ [ new r(4, 1005.02), new r(3, 1005.02), new r(2, 1005.02) ] ]), new a(3, 8, [ [ new r(3, 1005.03), new r(2, 1005.01), new r(2, 1005.03) ] ]), new a(4, 9, [ [ new r(3, 1005.04), new r(2, 1005.02), new r(3, 1005.04) ] ]) ]), new i(1005.6, [ new a(1, 10, [ [ new r(1, 1005.01), new r(2, 1005.01), new r(1, 1005.01), new r(2, 1005.01) ] ]), new a(2, 10, [ [ new r(4, 1005.02), new r(3, 1005.02), new r(2, 1005.02) ] ]), new a(3, 10, [ [ new r(3, 1005.03), new r(1, 1005.01), new r(3, 1005.03), new r(1, 1005.02) ] ]), new a(4, 10, [ [ new r(3, 1005.04), new r(1, 1005.02), new r(3, 1005.04), new r(1, 1005.01) ] ]) ]), new i(1005.11, [ new a(1, 10, [ [ new r(3, 1005.04), new o(2), new r(3, 1005.01), new o(2) ] ]), new a(2, 30, [ [ new r(3, 1005.01), new o(2), new r(3, 1005.03), new r(3, 1005.04), new o(2) ] ]), new a(2, 30, [ [ new r(2.5, 1005.02), new o(2), new r(2.5, 1005.05), new r(2.5, 1005.04), new o(2) ] ]), new a(3, 9999999, [ [ new r(2.5, 1005.04), new o(1), new r(1, 1005.02), new o(1), new r(2.5, 1005.05), new o(1), new r(3, 1005.03), new o(1) ] ]) ]), new i(1006.11, [ new a(1, 10, [ [ new r(2, 1005.04), new o(1), new r(2.5, 1005.03), new o(2) ] ]), new a(2, 30, [ [ new r(2.5, 1005.03), new o(2), new r(2.5, 1005.01), new r(2.5, 1005.04), new o(2) ] ]), new a(2, 20, [ [ new r(3, 1005.05), new o(2), new r(3, 1005.02), new r(3, 1005.04), new o(2) ] ]), new a(3, 9999999, [ [ new r(2.5, 1005.04), new o(1), new r(1, 1005.02), new o(1), new r(2.5, 1005.05), new o(1), new r(2.5, 1005.01), new o(1) ] ]) ]), new i(1005.111, [ new a(1, 7, [ [ new r(4, 1), new o(3) ] ]), new a(2, 4, [ [ new r(2.5, 1), new o(2) ] ]), new a(3, 2, [ [ new r(1.5, 1), new o(1) ] ]) ]), new i(1005.14, [ new a(1, 20, [ [ new r(5, 1005.01), new r(1.6, 1005.011), new r(1.6, 1005.011), new r(1.6, 1005.011), new r(1.6, 1005.011), new r(4, 1005.02), new o(3) ] ]), new a(1, 30, [ [ new r(5, 1005.01), new r(1.4, 1005.011), new r(1.4, 1005.011), new r(1.4, 1005.011), new r(1.4, 1005.011), new r(1.4, 1005.011), new r(4, 1005.02), new r(4, 1005.03), new o(3) ] ]), new a(2, 60, [ [ new r(4, 1005.01), new r(1.3, 1005.011), new r(1.3, 1005.011), new r(1.3, 1005.011), new r(1.3, 1005.011), new r(4, 1005.04), new r(4, 1005.05), new o(2) ] ]), new a(3, 99999999, [ [ new r(4, 1005.04), new r(4, 1005.05), new r(5, 1005.01), new r(1.2, 1005.011), new r(1.2, 1005.011), new r(1.2, 1005.011), new r(1.2, 1005.011), new r(4, 1005.04), new r(4, 1005.05), new o(1) ] ]) ]), new i(1005.17, [ new a(1, 20, [ [ new r(3, 1005.03), new r(.5, 1005.02), new r(3, 1005.01), new r(.5, 1005.02), new o(3) ] ]), new a(1, 30, [ [ new r(2.5, 1005.03), new r(.5, 1005.02), new r(2.5, 1005.01), new r(.5, 1005.02), new r(2.5, 1005.01), new r(.5, 1005.02), new o(2) ] ]), new a(2, 60, [ [ new r(2, 1005.03), new r(.5, 1005.02), new r(2, 1005.01), new r(.5, 1005.02), new r(2, 1005.03), new r(.5, 1005.02), new o(2) ] ]), new a(3, 99999999, [ [ new r(2, 1005.03), new r(.5, 1005.02), new r(2, 1005.01), new r(.5, 1005.02), new r(2, 1005.01), new r(.5, 1005.02), new r(2, 1005.03), new r(.5, 1005.02), new o(2) ] ]) ]), new i(10086, [ new a(1, 30, [ [ new r(4, 10086.01), new r(4, 10086.03) ] ]), new a(2, 60, [ [ new r(3, 10086.05), new r(3, 10086.02), new r(3, 10086.04), new r(3, 10086.01) ] ]), new a(3, 99999999, [ [ new r(2, 10086.05), new r(2, 10086.02), new r(2, 10086.03), new r(2, 10086.01) ] ]) ]), new i(10088, [ new a(1, 30, [ [ new r(4, 10088.02) ] ]), new a(2, 60, [ [ new r(3, 10088.01), new r(3, 10088.02), new r(3, 10088.03), new r(3, 10088.04) ] ]), new a(3, 99999999, [ [ new r(2, 10088.01), new r(2, 10088.02), new r(2, 10088.03), new r(2, 10088.04) ] ]) ]), new i(1005.9, [ new a(1, 8, [ [ new r(4, 1005.01), new r(4, 1005.04) ] ]), new a(2, 30, [ [ new r(3, 1005.04), new r(2, 1005.02), new r(2, 1005.03), new r(3, 1005.01) ] ]), new a(3, 30, [ [ new r(3, 1005.06), new r(2, 1005.07), new r(3, 1005.04), new r(2, 1005.05) ] ]), new a(3, 40, [ [ new r(1, 1005.06), new r(2, 1005.07), new r(2, 1005.04), new r(3, 1005.05) ] ]), new a(4, 99999999, [ [ new r(1, 1005.06), new r(1, 1005.07), new r(1, 1005.04), new r(1, 1005.05), new r(1, 1005.06), new r(1, 1005.04), new r(1, 1005.07) ] ]) ]) ];
return e;
}();
n.AISkillPatternConfig = l;
cc._RF.pop();
}, {} ],
AISkillTrigger_Cd: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e6ed8oh6KlNJ7sfkNEpetXQ", "AISkillTrigger_Cd");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AISkillTrigger_Cd = void 0;
var o = e("../Enemy"), r = e("../../../Framework/Core/Resource/MyComponent"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.killSelf = !1;
t.owner = null;
return t;
}
t.prototype.onDestroy = function() {
this.owner = null;
};
t.prototype.onLoad = function() {
this.owner = this.getComponent(o.Enemy);
};
t.prototype.OnUpdate = function(e) {
if (!(!this.owner.activeSkills || !this.owner.target || this.owner.isJumping || this.owner.dead || this.owner.inCameraTotalTime <= 0)) for (var t = 0; t < this.owner.activeSkills.length; t++) {
var n = this.owner.activeSkills[t];
if (n.skill && !this.owner.isSilent) {
if (this.owner.proto.fireRange > 0 && cc.Vec2.squaredDistance(this.owner.body.position, this.owner.target.body.position) > this.owner.proto.fireRange * this.owner.proto.fireRange) return;
if (this.killSelf && n.skill.triggerCnt > 0) return;
var o = n.passedTime;
o || (o = 0);
if ((o += e) >= n.proto.cd && this.TryTriggerSkill(n)) {
o = 0;
this.killSelf && this.owner.Damage(this.owner.maxHealth, 0);
}
n.passedTime = o;
}
}
};
t.prototype.TryTriggerSkill = function(e) {
e.skill.Trigger();
return !0;
};
__decorate([ l() ], t.prototype, "killSelf", void 0);
return __decorate([ a ], t);
}(r.MyComponent);
n.AISkillTrigger_Cd = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../Enemy": "Enemy"
} ],
AISkillTrigger_Distance: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fabc4lZPrlAPoEaJVkuH70D", "AISkillTrigger_Distance");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AISkillTrigger_Distance = void 0;
var o = e("../Enemy"), r = e("./AISkillTrigger_Cd"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.owner = null;
return t;
}
t.prototype.onDestroy = function() {
this.owner = null;
};
t.prototype.onLoad = function() {
this.owner = this.getComponent(o.Enemy);
};
t.prototype.TryTriggerSkill = function(e) {
if (cc.Vec2.squaredDistance(this.owner.body.position, this.owner.target.body.position) <= e.proto.range * e.proto.range) {
e.skill.Trigger();
return !0;
}
return !1;
};
return __decorate([ a ], t);
}(r.AISkillTrigger_Cd));
n.AISkillTrigger_Distance = l;
cc._RF.pop();
}, {
"../Enemy": "Enemy",
"./AISkillTrigger_Cd": "AISkillTrigger_Cd"
} ],
AISkillTrigger_OnDead: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "cc63a6AS3tJ3rp9j2o5EYLZ", "AISkillTrigger_OnDead");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AISkillTrigger_OnDead = void 0;
var o = e("../../Messaging/MessageBroadcastReceiver"), r = e("../Enemy"), i = e("../../../Framework/Core/Resource/MyComponent"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.owner = null;
return t;
}
t.prototype.onDestroy = function() {
this.owner = null;
o.RemoveBroadcastReceiver(this);
};
t.prototype.onLoad = function() {
this.owner = this.getComponent(r.Enemy);
o.AddBroadcastReceiver(this);
};
t.prototype.OnKillEnemy = function(e) {
if (e == this.owner) {
var t = this.owner.activeSkills[0];
t && t.skill.Trigger();
}
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ l ], t);
}(i.MyComponent));
n.AISkillTrigger_OnDead = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../Enemy": "Enemy"
} ],
AI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "808314MeepHYJJpvs17ZJEb", "AI");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AI = void 0;
var o = e("../Enemy"), r = e("./AIComponent"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.owner = null;
t.frame = 0;
return t;
}
t.prototype.onDestroy = function() {
this.owner = null;
};
t.prototype.onLoad = function() {
this.owner = this.getComponent(o.Enemy);
};
t.prototype.OnInit = function() {
this.frame = 0;
};
return __decorate([ a ], t);
}(r.AIComponent));
n.AI = l;
cc._RF.pop();
}, {
"../Enemy": "Enemy",
"./AIComponent": "AIComponent"
} ],
AbstractSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "10834M1OtdM8IO4XsIrPCfm", "AbstractSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.triggerCnt = 0;
return t;
}
t.prototype.Trigger = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
return [ 2 ];
});
});
};
t.prototype.OnEnableSkill = function() {};
t.prototype.OnSave = function() {
return null;
};
t.prototype.OnLoad = function() {};
return __decorate([ i ], t);
}(o.MyComponent));
n.default = a;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
ActiveByBattleCnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "76988y5MjJAwLlzwyTCoIUS", "ActiveByBattleCnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/GameModel"), r = cc._decorator, i = r.ccclass, a = r.property, l = function() {
function e() {
this.count = 0;
this.nodes = [];
}
__decorate([ a() ], e.prototype, "count", void 0);
__decorate([ a(cc.Node) ], e.prototype, "nodes", void 0);
return __decorate([ i("BattleCntfig") ], e);
}(), s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.configs = [];
return t;
}
t.prototype.onEnable = function() {
for (var e = 0; e < this.configs.length; e++) for (var t = this.configs[e], n = o.default.Instance.battleCnt >= t.count, r = 0; r < t.nodes.length; r++) {
var i = t.nodes[r];
i && (i.active = n);
}
};
__decorate([ a(l) ], t.prototype, "configs", void 0);
return __decorate([ i ], t);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {
"../Config/GameModel": "GameModel"
} ],
Agent: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ba6d2Sz9vRJUotviuhCZFDD", "Agent");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Agent = void 0;
var o = e("./KeyValuePair"), r = e("./Line"), i = e("./RVOMath"), a = e("./Vector2"), l = e("./IAgent"), s = function() {
function e(e) {
this.agentNeighbors_ = new Array();
this.obstacleNeighbors_ = new Array();
this.orcaLines_ = new Array();
this.id_ = 0;
this.maxNeighbors_ = 0;
this.maxSpeed_ = 0;
this.neighborDist_ = 0;
this.radius_ = 0;
this.timeHorizon_ = 0;
this.timeHorizonObst_ = 0;
this.needDelete_ = !1;
this.collisionMask_ = 4294967295;
this.newVelocity_ = new a.Vector2();
this.sim_ = null;
this.vpv = new a.Vector2();
this.sim_ = e;
}
e.prototype.canCollideAgent = function(e) {
return e && 0 != (this.collisionMask_ & e.collisionMask_);
};
e.prototype.canCollideObstacle = function(e) {
return e && 0 != (this.collisionMask_ & e.collisionMask_);
};
e.prototype.computeNeighbors = function() {
this.obstacleNeighbors_.length = 0;
var e = i.RVOMath.Sqr(this.timeHorizonObst_ * this.maxSpeed_ + this.radius_);
this.sim_.kdTree_.computeObstacleNeighbors(this, e);
this.agentNeighbors_.length = 0;
if (this.maxNeighbors_ > 0) {
e = i.RVOMath.Sqr(this.neighborDist_);
this.sim_.kdTree_.computeAgentNeighbors(this, e);
}
};
e.prototype.computeNewVelocity = function() {
this.orcaLines_.length = 0;
for (var e = 1 / this.timeHorizonObst_, t = new a.Vector2(), n = new a.Vector2(), o = new a.Vector2(), l = new a.Vector2(), s = 0; s < this.obstacleNeighbors_.length; ++s) {
for (var c = this.obstacleNeighbors_[s].value, u = c.next_, p = a.Vector2.Subtract(c.point_, this.position_, t), d = a.Vector2.Subtract(u.point_, this.position_, n), f = !1, h = 0; h < this.orcaLines_.length; ++h) {
var m = this.orcaLines_[h], w = a.Vector2.Multiply(p, e, o), y = a.Vector2.Multiply(d, e, l);
if (i.RVOMath.Det(a.Vector2.Subtract(w, m.point, w), m.direction) - e * this.radius_ >= -i.RVOMath.RVO_EPSILON && i.RVOMath.Det(a.Vector2.Subtract(y, m.point, y), m.direction) - e * this.radius_ >= -i.RVOMath.RVO_EPSILON) {
f = !0;
break;
}
}
if (!f) {
var g = i.RVOMath.AbsSq(p), v = i.RVOMath.AbsSq(d), S = i.RVOMath.Sqr(this.radius_), M = a.Vector2.Subtract(u.point_, c.point_, o), k = a.Vector2.Negate(p, l), C = a.Vector2.Dot(k, M) / i.RVOMath.AbsSq(M), P = i.RVOMath.AbsSq(a.Vector2.Subtract(k, a.Vector2.Multiply(M, C, M), k)), _ = new r.Line();
if (C < 0 && g <= S) {
if (c.convex_) {
_.point = new a.Vector2(0, 0);
_.direction = i.RVOMath.Normalize(new a.Vector2(-p.y, p.x));
this.orcaLines_.push(_);
}
} else if (C > 1 && v <= S) {
if (u.convex_ && i.RVOMath.Det(d, u.direction_) >= 0) {
_.point = new a.Vector2(0, 0);
_.direction = i.RVOMath.Normalize(new a.Vector2(-d.y, d.x));
this.orcaLines_.push(_);
}
} else if (C >= 0 && C < 1 && P <= S) {
_.point = new a.Vector2(0, 0);
_.direction = a.Vector2.Negate(c.direction_);
this.orcaLines_.push(_);
} else {
var O = void 0, b = void 0;
if (C < 0 && P <= S) {
if (!c.convex_) continue;
u = c;
var F = i.RVOMath.Sqrt(g - S);
O = new a.Vector2(p.x * F - p.y * this.radius_, p.x * this.radius_ + p.y * F);
O = a.Vector2.Divide(O, g, O);
b = new a.Vector2(p.x * F + p.y * this.radius_, -p.x * this.radius_ + p.y * F);
b = a.Vector2.Divide(b, g, b);
} else if (C > 1 && P <= S) {
if (!u.convex_) continue;
c = u;
var I = i.RVOMath.Sqrt(v - S);
O = new a.Vector2(d.x * I - d.y * this.radius_, d.x * this.radius_ + d.y * I);
O = a.Vector2.Divide(O, v, O);
b = new a.Vector2(d.x * I + d.y * this.radius_, -d.x * this.radius_ + d.y * I);
b = a.Vector2.Divide(b, v, b);
} else {
if (c.convex_) {
F = i.RVOMath.Sqrt(g - S);
O = new a.Vector2(p.x * F - p.y * this.radius_, p.x * this.radius_ + p.y * F);
O = a.Vector2.Divide(O, g, O);
} else O = a.Vector2.Negate(c.direction_);
if (u.convex_) {
I = i.RVOMath.Sqrt(v - S);
b = new a.Vector2(d.x * I + d.y * this.radius_, -d.x * this.radius_ + d.y * I);
b = a.Vector2.Divide(b, v, b);
} else b = c.direction_;
}
var E = c.previous_, D = !1, R = !1, L = a.Vector2.Negate(E.direction_);
if (c.convex_ && i.RVOMath.Det(O, L) >= 0) {
O = L;
D = !0;
}
if (u.convex_ && i.RVOMath.Det(b, u.direction_) <= 0) {
b = u.direction_;
R = !0;
}
var B = a.Vector2.Subtract(c.point_, this.position_);
B = a.Vector2.Multiply(B, e, B);
var U = a.Vector2.Subtract(u.point_, this.position_);
U = a.Vector2.Multiply(U, e, U);
var T = a.Vector2.Subtract(U, B), x = a.Vector2.Subtract(this.velocity_, B), V = c == u ? .5 : a.Vector2.Dot(x, T) / i.RVOMath.AbsSq(T), A = a.Vector2.Dot(x, O), N = a.Vector2.Dot(x, b);
if (V < 0 && A < 0 || c == u && A < 0 && N < 0) {
var G = i.RVOMath.Normalize(x);
_.direction = new a.Vector2(G.y, -G.x);
var H = a.Vector2.Multiply(G, this.radius_ * e, G);
_.point = a.Vector2.Add(B, H);
this.orcaLines_.push(_);
} else if (V > 1 && N < 0) {
var W = a.Vector2.Subtract(this.velocity_, U);
G = i.RVOMath.Normalize(W);
_.direction = new a.Vector2(G.y, -G.x);
H = a.Vector2.Multiply(G, this.radius_ * e, G);
_.point = a.Vector2.Add(U, H);
this.orcaLines_.push(_);
} else {
var j = a.Vector2.Multiply(T, V);
j = a.Vector2.Add(B, j, j);
j = a.Vector2.Subtract(this.velocity_, j, j);
var q = V < 0 || V > 1 || c == u ? Number.MAX_VALUE : i.RVOMath.AbsSq(j), z = a.Vector2.Multiply(O, A, j);
z = a.Vector2.Add(B, z, j);
z = a.Vector2.Subtract(this.velocity_, z, j);
var X = A < 0 ? Number.MAX_VALUE : i.RVOMath.AbsSq(z), Z = a.Vector2.Multiply(b, N, j);
Z = a.Vector2.Add(U, Z, j);
Z = a.Vector2.Subtract(this.velocity_, Z, j);
var K = N < 0 ? Number.MAX_VALUE : i.RVOMath.AbsSq(Z);
if (q <= X && q <= K) {
_.direction = a.Vector2.Negate(c.direction_);
var Y = new a.Vector2(-_.direction.y, _.direction.x);
Y = a.Vector2.Multiply(Y, this.radius_ * e, Y);
_.point = a.Vector2.Add(B, Y, Y);
this.orcaLines_.push(_);
} else if (X <= K) {
if (D) continue;
_.direction = O;
var J = new a.Vector2(-_.direction.y, _.direction.x);
J = a.Vector2.Multiply(J, this.radius_ * e, J);
_.point = a.Vector2.Add(B, J, J);
this.orcaLines_.push(_);
} else if (!R) {
_.direction = a.Vector2.Negate(b);
var Q = new a.Vector2(-_.direction.y, _.direction.x);
Q = a.Vector2.Multiply(Q, this.radius_ * e, Q);
_.point = a.Vector2.Add(U, Q, Q);
this.orcaLines_.push(_);
}
}
}
}
}
var $ = this.orcaLines_.length, ee = 1 / this.timeHorizon_;
for (s = 0; s < this.agentNeighbors_.length; ++s) {
var te = this.agentNeighbors_[s].value, ne = a.Vector2.Subtract(te.position_, this.position_, t), oe = a.Vector2.Subtract(this.velocity_, te.velocity_, n), re = i.RVOMath.AbsSq(ne), ie = this.radius_ + te.radius_, ae = i.RVOMath.Sqr(ie), le = void (_ = new r.Line());
if (re > ae) {
var se = a.Vector2.Multiply(ne, ee, o), ce = a.Vector2.Subtract(oe, se, se), ue = i.RVOMath.AbsSq(ce), pe = a.Vector2.Dot(ce, ne);
if (pe < 0 && i.RVOMath.Sqr(pe) > ae * ue) {
var de = i.RVOMath.Sqrt(ue);
G = a.Vector2.Divide(ce, de);
_.direction = new a.Vector2(G.y, -G.x);
le = a.Vector2.Multiply(G, ie * ee - de);
} else {
var fe = i.RVOMath.Sqrt(re - ae);
if (i.RVOMath.Det(ne, ce) > 0) _.direction = new a.Vector2(ne.x * fe - ne.y * ie, ne.x * ie + ne.y * fe); else {
_.direction = new a.Vector2(ne.x * fe + ne.y * ie, -ne.x * ie + ne.y * fe);
_.direction = a.Vector2.Negate(_.direction);
}
_.direction = a.Vector2.Divide(_.direction, re, _.direction);
var he = a.Vector2.Dot(oe, _.direction), me = a.Vector2.Multiply(_.direction, he);
le = a.Vector2.Subtract(me, oe, me);
}
} else {
var we = 1 / this.sim_.timeStep_;
se = a.Vector2.Multiply(ne, we, o), ce = a.Vector2.Subtract(oe, se, se), de = i.RVOMath.Abs(ce), 
G = a.Vector2.Divide(ce, de, ce);
_.direction = new a.Vector2(G.y, -G.x);
le = a.Vector2.Multiply(G, ie * we - de);
}
le = a.Vector2.Multiply(le, .5);
_.point = a.Vector2.Add(this.velocity_, le, le);
this.orcaLines_.push(_);
}
var ye = this.linearProgram2(this.orcaLines_, this.maxSpeed_, this.prefVelocity_, !1);
this.newVelocity_ = ye.result;
ye.count < this.orcaLines_.length && (this.newVelocity_ = this.linearProgram3(this.orcaLines_, $, ye.count, this.maxSpeed_, this.newVelocity_));
};
e.prototype.insertAgentNeighbor = function(e, t) {
if (this != e) {
var n = i.RVOMath.AbsSq(a.Vector2.Subtract(this.position_, e.position_));
if (n < t) {
this.agentNeighbors_.length < this.maxNeighbors_ && this.agentNeighbors_.push(new o.KeyValuePair(n, e));
for (var r = this.agentNeighbors_.length - 1; 0 != r && n < this.agentNeighbors_[r - 1].key; ) {
this.agentNeighbors_[r] = this.agentNeighbors_[r - 1];
--r;
}
this.agentNeighbors_[r] = new o.KeyValuePair(n, e);
this.agentNeighbors_.length == this.maxNeighbors_ && (t = this.agentNeighbors_[this.agentNeighbors_.length - 1].key);
}
}
return t;
};
e.prototype.insertObstacleNeighbor = function(e, t) {
var n = e.next_, r = i.RVOMath.DistSqPointLineSegment(e.point_, n.point_, this.position_);
if (r < t) {
this.obstacleNeighbors_.push(new o.KeyValuePair(r, e));
for (var a = this.obstacleNeighbors_.length - 1; 0 != a && r < this.obstacleNeighbors_[a - 1].key; ) {
this.obstacleNeighbors_[a] = this.obstacleNeighbors_[a - 1];
--a;
}
this.obstacleNeighbors_[a] = new o.KeyValuePair(r, e);
}
return t;
};
e.prototype.update = function() {
this.velocity_ = this.newVelocity_.Clone();
var e = a.Vector2.Multiply(this.velocity_, this.sim_.timeStep_, this.vpv);
this.position_ = a.Vector2.Add(this.position_, e, this.position_);
};
e.prototype.linearProgram1 = function(e, t, n, o, r) {
var l = e[t].direction, s = e[t].point, c = a.Vector2.Dot(s, l), u = i.RVOMath.Sqr(c) + i.RVOMath.Sqr(n) - i.RVOMath.AbsSq(s);
if (u < 0) return null;
for (var p = i.RVOMath.Sqrt(u), d = -c - p, f = -c + p, h = new a.Vector2(), m = 0; m < t; ++m) {
var w = i.RVOMath.Det(l, e[m].direction), y = i.RVOMath.Det(e[m].direction, a.Vector2.Subtract(s, e[m].point, h));
if (i.RVOMath.FAbs(w) <= i.RVOMath.RVO_EPSILON) {
if (y < 0) return null;
} else {
var g = y / w;
w >= 0 ? f = Math.min(f, g) : d = Math.max(d, g);
if (d > f) return null;
}
}
var v = h;
if (r) if (a.Vector2.Dot(o, l) > 0) {
h = a.Vector2.Multiply(l, f, h);
v = a.Vector2.Add(s, h, h);
} else {
h = a.Vector2.Multiply(l, d, h);
v = a.Vector2.Add(s, h, h);
} else {
h = a.Vector2.Subtract(o, s, h);
if ((g = a.Vector2.Dot(l, h)) < d) {
h = a.Vector2.Multiply(l, d, h);
v = a.Vector2.Add(s, h, h);
} else if (g > f) {
h = a.Vector2.Multiply(l, f, h);
v = a.Vector2.Add(s, h, h);
} else {
h = a.Vector2.Multiply(l, g, h);
v = a.Vector2.Add(s, h, h);
}
}
return v;
};
e.prototype.linearProgram2 = function(e, t, n, o) {
var r;
if (o) r = a.Vector2.Multiply(n, t); else if (i.RVOMath.AbsSq(n) > i.RVOMath.Sqr(t)) {
var l = i.RVOMath.Normalize(n);
r = a.Vector2.Multiply(l, t, l);
} else r = n.Clone();
for (var s = new a.Vector2(), c = 0; c < e.length; ++c) {
var u = a.Vector2.Subtract(e[c].point, r, s);
if (i.RVOMath.Det(e[c].direction, u) > 0) {
var p = this.linearProgram1(e, c, t, n, o);
if (null == p) return {
count: c,
result: r
};
r = p;
}
}
return {
count: e.length,
result: r
};
};
e.prototype.linearProgram3 = function(e, t, n, o, l) {
for (var s = 0, c = new a.Vector2(), u = n; u < e.length; ++u) if (i.RVOMath.Det(e[u].direction, a.Vector2.Subtract(e[u].point, l, c)) > s) {
for (var p = new Array(), d = 0; d < t; ++d) p.push(e[d]);
for (var f = t; f < u; ++f) {
var h = new r.Line(), m = i.RVOMath.Det(e[u].direction, e[f].direction);
if (i.RVOMath.FAbs(m) <= i.RVOMath.RVO_EPSILON) {
if (a.Vector2.Dot(e[u].direction, e[f].direction) > 0) continue;
var w = a.Vector2.Add(e[u].point, e[f].point);
h.point = a.Vector2.Multiply(w, .5);
} else {
var y = a.Vector2.Subtract(e[u].point, e[f].point), g = a.Vector2.Multiply(e[u].direction, i.RVOMath.Det(e[f].direction, y) / m, y);
h.point = a.Vector2.Add(e[u].point, g, y);
}
var v = a.Vector2.Subtract(e[f].direction, e[u].direction);
h.direction = i.RVOMath.Normalize(v, v);
p.push(h);
}
var S = this.linearProgram2(p, o, new a.Vector2(-e[u].direction.y, e[u].direction.x), !0);
S.count >= p.length && (l = S.result);
var M = a.Vector2.Subtract(e[u].point, l, c);
s = i.RVOMath.Det(e[u].direction, M);
}
return l;
};
return e;
}();
n.Agent = s;
l.AgentFactory.CreateAgent = function(e) {
return new s(e);
};
cc._RF.pop();
}, {
"./IAgent": "IAgent",
"./KeyValuePair": "KeyValuePair",
"./Line": "Line",
"./RVOMath": "RVOMath",
"./Vector2": "Vector2"
} ],
AiLiSi_FeatureSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b287emI5NtK26xxJWlFe8RZ", "AiLiSi_FeatureSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../../Service/kl"), r = e("../../../../Messaging/MessageBroadcastReceiver"), i = e("../../../LevelContext"), a = e("../../../Player"), l = e("../../BulletSkill"), s = cc._decorator, c = s.ccclass, u = (s.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.v1 = cc.v2();
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnKillEnemy = function(e, t) {
if ((null == t ? void 0 : t.owner) instanceof a.Player) {
var n = this.context.skillData.proto.bulletNumber;
null != this.context.owner.GetSkillProto(622) && (n += 1);
for (var r = this.v1.set(e.aimPos), l = 0; l < n; l++) {
var s = cc.v2(o.default.Random(-1, 1), o.default.Random(-1, 1));
s.normalizeSelf();
var c = this.context.DoCreateBullet(this.bulletPrefab, i.LevelContext.Instance.effectLayer, s, r, this.ignoreScale, this.ignoreRotation);
this.context.DoInitBullet(c, s);
}
}
};
__decorate([ r.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ c ], t);
}(l.default));
n.default = u;
cc._RF.pop();
}, {
"../../../../../Service/kl": void 0,
"../../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../../LevelContext": "LevelContext",
"../../../Player": "Player",
"../../BulletSkill": "BulletSkill"
} ],
AnimationIgnoreTimeScale: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "adf2c14QiVLzrETGzUWmWq+", "AnimationIgnoreTimeScale");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AnimationIgnoreTimeScale = void 0;
var o = cc._decorator, r = o.ccclass, i = (o.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
var e = this.getComponent(cc.Animation);
if (e) for (var t = 0; t < e.getClips().length; t++) {
var n = e.getClips()[t];
e.getAnimationState(n.name).ignoreTimeScale = !0;
}
};
return __decorate([ r ], t);
}(cc.Component));
n.AnimationIgnoreTimeScale = i;
cc._RF.pop();
}, {} ],
Animator: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fe23bmlA1hFaq9VekFVj9Jh", "Animator");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AnimatorState = n.AnimationCompeleteCondition = void 0;
var o = e("./State"), r = e("./Condition"), i = cc._decorator, a = i.ccclass, l = i.executionOrder, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.animation = null;
t.curAnim = "";
t.speed_ = 1;
return t;
}
n = t;
Object.defineProperty(t.prototype, "speed", {
get: function() {
return this.speed_;
},
set: function(e) {
this.speed_ = e;
this.onAnimChanged();
},
enumerable: !1,
configurable: !0
});
t.prototype.onAnimChanged = function() {
var e = this.animation.currentClip;
if (e) {
var t = this.animation.getAnimationState(e.name);
t && (t.speed = this.speed);
}
};
t.prototype.onPause = function(e) {
this.animation.enabled = !e;
};
t.prototype.Play = function(e, t, n, o) {
if (n) this.animation.playAdditive(t); else if (this.curAnim != t || o) {
this.animation.play(t);
this.curAnim = t;
}
this.onAnimChanged();
};
t.prototype.GetDuration = function(e) {
return n.GetAnimationDuration(this.animation, e);
};
t.GetAnimationDuration = function(e, t) {
for (var n = 0; n < e.getClips().length; n++) {
var o = e.getClips()[n];
if (o && o.name == t) return o.duration;
}
return 0;
};
var n;
return n = __decorate([ a, l(100) ], t);
}(o.StateMachine);
n.default = s;
var c = function(e) {
__extends(t, e);
function t(t) {
var n = e.call(this, "AnimationCompelete", null) || this;
n.startTime = 0;
n.animTime = 0;
n.isFinish = !0;
n.delayTime = 0;
t && (n.delayTime = t);
return n;
}
t.prototype.OnInit = function(e) {
var t = this;
e.onEnter.Add(function() {
t.isFinish = !1;
t.startTime = Date.now();
var n = e;
t.animTime = n.owner.GetDuration(n.animName) + t.delayTime;
});
};
t.prototype.IsOk = function() {
if (this.isFinish) return !0;
this.isFinish = Date.now() - this.startTime >= this.animTime / 1 * 1e3;
return this.isFinish;
};
return t;
}(r.BaseCondition);
n.AnimationCompeleteCondition = c;
var u = function(e) {
__extends(t, e);
function t(t, n, o, r) {
var i = e.call(this, t, n) || this;
i.animName = "";
i.onEnter.Add(function(e, t) {
i.animName = i.animationSelector ? r() : o;
var a = !(!t || null == t.addtive) && t.addtive, l = !(!t || null == t.reset) && t.reset;
n.Play(i, i.animName, a, l);
});
i.animationSelector = r;
return i;
}
return t;
}(o.State);
n.AnimatorState = u;
cc._RF.pop();
}, {
"./Condition": "Condition",
"./State": "State"
} ],
AntiAddictionComponent: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bf1a6x3ditOoaXKCaTOgBL1", "AntiAddictionComponent");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Models/ModelManager"), r = e("../../Framework/Core/UI/WaitingUI"), i = e("../../Framework/Core/Views/ViewUIManager"), a = e("../../Service/Analys"), l = e("./AntiAddiction"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nameEditBox = null;
t.idEditBox = null;
t.onResult = null;
return t;
}
Object.defineProperty(t, "antiTriggerTip", {
get: function() {
return "您当前处于防沉迷保护中，因本日在线时长已达到上限/当前时段为未成年登录限制时段，您今日将无法登录游戏。";
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t, "antiWarnTip", {
get: function() {
return "亲爱的玩家，您的实名信息识别为未成年人。相关政策要求：周五、周六、周日和法定节假日，每日20时-21时向未成年人提供1小时网络游戏服务，其他时间均不得以任何形式向未成年人提供网络游戏服务。非常感谢您对我们游戏的喜爱和支持，祝您生活愉快！";
},
enumerable: !1,
configurable: !0
});
t.prototype.start = function() {
var e = o.default.GetModel(l.AntiAddictionModel);
this.nameEditBox.string = e.lastEditName;
this.idEditBox.string = e.lastEditId;
a.default.LogEvent("showAntiAddiction");
};
t.prototype.Auth = function() {
return __awaiter(this, void 0, Promise, function() {
var e, t;
return __generator(this, function() {
e = new l.AntiAddictionResult();
t = null;
this.onResult = function(n, o, a) {
i.default.HideView(r.default);
e.suc = n;
e.cancel = a;
e.msg = o;
t && t(e);
};
return [ 2, new Promise(function(e) {
t = e;
}) ];
});
});
};
t.prototype.Confirm = function() {
a.default.LogEvent("confirmAntiAddiction");
if (this.nameEditBox.string.length < 2 || this.idEditBox.string.length < 15) this.onResult && this.onResult(!1, "请输入正确的姓名或身份证号", !1); else {
i.default.ShowView(r.default);
l.AntiAddictionSystem.Auth(this.nameEditBox.string, this.idEditBox.string, this.onResult);
}
};
t.prototype.Cancel = function() {
a.default.LogEvent("cancelAntiAddiction");
this.onResult && this.onResult(!1, "用户取消", !0);
};
__decorate([ u(cc.EditBox) ], t.prototype, "nameEditBox", void 0);
__decorate([ u(cc.EditBox) ], t.prototype, "idEditBox", void 0);
return __decorate([ c ], t);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {
"../../Framework/Core/Models/ModelManager": void 0,
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Service/Analys": void 0,
"./AntiAddiction": "AntiAddiction"
} ],
AntiAddictionUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4ef5aK2bdNKUKxe/YADPJvu", "AntiAddictionUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Core/Views/ViewUIManager"), l = e("../../Framework/UI/MessageBoxUI"), s = e("../../Service/Timer"), c = e("./AntiAddiction"), u = e("./AntiAddictionComponent"), p = cc._decorator.ccclass, d = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
n = t;
t.prototype.OnSetParams = function() {
return this;
};
t.Auth = function() {
return __awaiter(this, void 0, Promise, function() {
var e, t, o, r, i;
return __generator(this, function(p) {
switch (p.label) {
case 0:
e = null;
t = c.AntiAddictionSystem.model;
return c.AntiAddictionSystem.isSkipAuth ? [ 2, null ] : [ 3, 1 ];

case 1:
return t.isAuthenticated ? [ 3, 9 ] : [ 4, a.default.ShowView(n) ];

case 2:
return [ 4, (o = p.sent()).node.getComponent(u.default).Auth() ];

case 3:
e = p.sent();
console.log("result............", e);
p.label = 4;

case 4:
if (e.suc) return [ 3, 8 ];
if (e.cancel) return [ 3, 6 ];
l.default.ShowConfirm("提示", "防沉迷验证失败！请输入正确的身份证信息。" + e.msg);
return [ 4, o.node.getComponent(u.default).Auth() ];

case 5:
e = p.sent();
return [ 3, 7 ];

case 6:
cc.game.end();
return [ 3, 8 ];

case 7:
return [ 3, 4 ];

case 8:
return [ 3, 10 ];

case 9:
e = new c.AntiAddictionResult();
p.label = 10;

case 10:
if (!t.isAdult) {
r = function() {
l.default.ShowConfirm("防沉迷提示", u.default.antiTriggerTip, function() {
cc.game.end();
});
};
if (e.triggerAnti) {
r();
return [ 2, e ];
}
l.default.ShowConfirm("防沉迷提示", u.default.antiWarnTip);
i = s.default.RepeatRun(10, -1, function() {
if (e.triggerAnti) {
s.default.Stop(i);
r();
}
});
}
c.AntiAddictionSystem.OnStartGame();
return [ 2, e ];
}
});
});
};
var n;
return n = __decorate([ p, o.RegisterView("AntiAddictionUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = d;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/MessageBoxUI": void 0,
"../../Service/Timer": void 0,
"./AntiAddiction": "AntiAddiction",
"./AntiAddictionComponent": "AntiAddictionComponent"
} ],
AntiAddiction: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "459cano5AxJcrFD4HndgCF9", "AntiAddiction");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AntiAddictionSystem = n.AntiAddictionResult = n.AntiAddictionModel = void 0;
var o = e("../../Framework/Core/Models/ModelManager"), r = e("../../Framework/Core/Storage/Serializable"), i = e("../Config/GameModel"), a = e("../../Service/GameStorage"), l = e("../../Service/IPlatformProxy"), s = e("../../Service/kl"), c = e("../../Service/PlatformService"), u = e("../../Service/RemoteSetting"), p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.age = 0;
t.isAuthenticated = !1;
t.id = "";
t.lastEditName = "";
t.lastEditId = "";
return t;
}
Object.defineProperty(t.prototype, "isAdult", {
get: function() {
return this.age >= 18;
},
enumerable: !1,
configurable: !0
});
__decorate([ r.SerializeField("a") ], t.prototype, "age", void 0);
__decorate([ r.SerializeField("b") ], t.prototype, "isAuthenticated", void 0);
__decorate([ r.SerializeField("c") ], t.prototype, "id", void 0);
__decorate([ r.SerializeField("d") ], t.prototype, "lastEditName", void 0);
__decorate([ r.SerializeField("e") ], t.prototype, "lastEditId", void 0);
return __decorate([ r.SerializeClass("anti_a_model") ], t);
}(r.default);
n.AntiAddictionModel = p;
var d = function() {
function e() {
this.suc = !0;
this.cancel = !1;
this.msg = "";
this.isFestival = !0;
this.model = null;
this.playStartTime = new Date();
this.playFinishTime = new Date();
this.model = o.default.GetModel(p);
this.playStartTime.setHours(20, 0, 0, 0);
this.playFinishTime.setHours(21, 0, 0, 0);
var e = this.curDate.getDay();
console.log("防沉迷: 今天是星期", e);
switch (e) {
case 0:
case 5:
case 6:
this.isFestival = !0;
break;

default:
var t = u.default.Get("festivalDates", []);
this.isFestival = !1;
for (var n = 0; n < t.length; n++) {
var r = t[n], i = s.default.DateFromString(r[0]), a = s.default.DateFromString(r[1]);
if (this.curDate.getTime() >= i.getTime() && this.curDate.getTime() <= a.getTime()) {
this.isFestival = !0;
console.log("防沉迷: 今天是节假日");
break;
}
}
}
}
Object.defineProperty(e.prototype, "canPlayGame", {
get: function() {
return !(!this.model.isAdult && this.triggerAnti);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "triggerAnti", {
get: function() {
return !(this.model.isAdult || this.isFestival && this.curDate.getTime() >= this.playStartTime.getTime() && this.curDate.getTime() <= this.playFinishTime.getTime());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "curDate", {
get: function() {
return u.default.Get("useLocalTime", !1) ? new Date(Date.now()) : a.default.nowDate;
},
enumerable: !1,
configurable: !0
});
return e;
}();
n.AntiAddictionResult = d;
var f = function() {
function e() {}
e.GenAI = function() {
for (var e = Date.now() + "_" + "xx-8xxx-yxxx-xxx".replace(/[xy]/g, function(e) {
var t = 16 * Math.random() | 0;
return ("x" == e ? t : 3 & t | 8).toString(16);
}), t = e.length; t < 32; t++) e += Math.random() > .5 ? "k" : "l";
return e;
};
Object.defineProperty(e, "gameId", {
get: function() {
return c.default.platformType == l.PlatformType.Empty ? "h18Drawwar3DV2_AndroidDouYin" : c.default.gameId;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "isSkipAuth", {
get: function() {
return 1 == u.default.Get("skipAntiAddiction", !1);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "model", {
get: function() {
return o.default.GetModel(p);
},
enumerable: !1,
configurable: !0
});
e.Auth = function(t, n, r) {
var i = o.default.GetModel(p);
i.lastEditId = n;
i.lastEditName = t;
var a = e.GenAI();
e.DoAuth(a, t, n, r);
};
e.DoAuth = function(t, n, o, r) {
e.onResult = r;
c.default.util.httpPostJson("https://slb-assist.kl321.com/NppaAuth/check", JSON.stringify({
game: e.gameId,
data: {
ai: t,
name: n,
idNum: o
}
}), function(n) {
var i = s.default.ParseJsonText(n), a = !(!i || !i.data) && 0 == i.data.status, l = i && i.data ? i.data.pi : "", c = i && i.data ? i.data.rspMsg : n;
a ? e.OnResult(a, c, e.GetAge(o), l) : e.DoQuery(o, t, r);
}, function() {
e.DoQuery(o, t, r);
});
};
e.DoQuery = function(t, n, o) {
e.onResult = o;
c.default.util.httpPostJson("https://slb-assist.kl321.com/NppaAuth/query", JSON.stringify({
game: e.gameId,
data: {
ai: n
}
}), function(n) {
console.log("Anti.Query result..........", n);
var o = s.default.ParseJsonText(n), r = !!o && 0 == o.status, i = o ? o.pi : "", a = o ? o.rspMsg : n, l = e.GetAge(t);
r ? e.OnResult(r, a, l, i) : e.OnResult(r, a, 0, "");
}, function(t) {
console.log("Anti.Query err..........", t);
e.OnResult(!1, t, 0, "");
});
};
e.OnStartGame = function() {
if (1 != u.default.Get("skipAntiAddictionLogin", !0)) {
c.default.OnApplicationVisible.Add(function(t) {
t ? e.OnShow() : e.OnHide();
});
e.OnShow();
}
};
e.OnShow = function() {
e.lastLoginTime = Date.now();
e.session = "Session_" + Date.now().toFixed(0);
e.LoginOrLogout(!1, 0);
};
e.OnHide = function() {
var t = Math.ceil((Date.now() - (e.lastLoginTime ? e.lastLoginTime : Date.now())) / 1e3);
e.LoginOrLogout(!1, t);
};
e.LoginOrLogout = function(t, n) {
var r = o.default.GetModel(p);
r.id && 0 != r.id.length && c.default.util.httpPostJson("https://slb-assist.kl321.com/NppaAuth/loginout", JSON.stringify({
game: e.gameId,
data: {
si: e.session,
bt: t ? 1 : 0,
ot: n,
ct: 0,
pi: r.id
}
}), function(e) {
console.log("Anti.Log result..........", e);
}, function(e) {
console.log("Anti.Log err..........", e);
});
};
e.GetAge = function(e) {
var t = (e + "").length;
if (0 == t) return 0;
if (15 != t && 18 != t) return 0;
var n = "";
18 == t && (n = e.substr(6, 4) + "/" + e.substr(10, 2) + "/" + e.substr(12, 2));
15 == t && (n = "19" + e.substr(6, 2) + "/" + e.substr(8, 2) + "/" + e.substr(10, 2));
var o = new Date(n), r = new Date(), i = r.getFullYear() - o.getFullYear();
(r.getMonth() < o.getMonth() || r.getMonth() == o.getMonth() && r.getDate() < o.getDate()) && i--;
return i;
};
e.OnResult = function(t, n, r, a) {
if (t) {
var l = o.default.GetModel(p);
l.isAuthenticated = t;
l.id = a;
l.age = r;
console.log("AntiAddictionSystem.onResult:", l);
e.onResult && e.onResult(t, n, !1);
} else e.onResult && e.onResult(!1, n, !1);
i.default.Save(!1);
};
e.onResult = null;
e.lastLoginTime = null;
e.session = "";
return e;
}();
n.AntiAddictionSystem = f;
cc._RF.pop();
}, {
"../../Framework/Core/Models/ModelManager": void 0,
"../../Framework/Core/Storage/Serializable": void 0,
"../../Service/GameStorage": void 0,
"../../Service/IPlatformProxy": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../../Service/kl": void 0,
"../Config/GameModel": "GameModel"
} ],
ArchivementConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0d80ey7CbhHepPOhjzBduTz", "ArchivementConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ArchivementConfig = n.ArchivementProto = n.UnlockType = n.ArchivementType = void 0;
var o, r, i = e("../../Framework/Localize/LocalizeManager"), a = e("./GiftConfig"), l = e("./HeroConfig"), s = e("./SkillConfig");
(function(e) {
e[e.ReachTime = 0] = "ReachTime";
e[e.ReachRoleTime = 1] = "ReachRoleTime";
e[e.KillEnemyCnt = 2] = "KillEnemyCnt";
e[e.KillEnemyCntInBattle = 3] = "KillEnemyCntInBattle";
e[e.KillSpecEnemy = 4] = "KillSpecEnemy";
e[e.KillBossCnt = 5] = "KillBossCnt";
e[e.ReachWeaponLv = 6] = "ReachWeaponLv";
e[e.ReachWeaponClassLv = 7] = "ReachWeaponClassLv";
e[e.ReachTalentLv = 8] = "ReachTalentLv";
e[e.UseDiamond = 9] = "UseDiamond";
e[e.HaveRole = 10] = "HaveRole";
e[e.HaveWeapon = 11] = "HaveWeapon";
})(o = n.ArchivementType || (n.ArchivementType = {}));
(function(e) {
e[e.SkillGroup = 0] = "SkillGroup";
e[e.Coin = 1] = "Coin";
e[e.Hero = 2] = "Hero";
e[e.Piece = 3] = "Piece";
e[e.BluePrint = 4] = "BluePrint";
e[e.AdCard = 5] = "AdCard";
e[e.Diamond = 6] = "Diamond";
e[e.Weapon = 7] = "Weapon";
e[e.Equipment = 8] = "Equipment";
e[e.EquipmentPiece = 9] = "EquipmentPiece";
e[e.EquipmentBluePrint = 10] = "EquipmentBluePrint";
e[e.ActiveValue = 11] = "ActiveValue";
e[e.Saodang = 12] = "Saodang";
e[e.Fengche = 13] = "Fengche";
})(r = n.UnlockType || (n.UnlockType = {}));
var c = function() {
function e(e, t, n, o, r, i, a, l, s) {
void 0 === s && (s = -1);
this.id = e;
this.groupID = t;
this.type = n;
this.x = o;
this.y = r;
this.unlockType = i;
this.unlockId = a;
this.iconPath_ = l;
this.unlockLevel = s;
}
Object.defineProperty(e.prototype, "iconPath", {
get: function() {
return this.iconPath_.length > 0 ? this.iconPath_ : a.RewardProto.GetIconPath(this.unlockType, this.unlockId, 1);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "rewardDesc", {
get: function() {
switch (this.unlockType) {
case r.Coin:
return i.TXT("获得") + " " + this.unlockId + i.TXT("金币");

case r.Diamond:
return i.TXT("获得") + " " + this.unlockId + i.TXT("钻石");

case r.SkillGroup:
return i.TXT("解锁") + " " + i.TXT(s.SkillConfig.FindSkillGroup(this.unlockId).name);

case r.Hero:
return i.TXT("解锁") + " " + i.TXT(l.HeroConfig.GetHero(this.unlockId).name);

case r.EquipmentPiece:
return i.TXT("获得随机面具碎片") + " x" + this.unlockId;

case r.EquipmentBluePrint:
return i.TXT("获得时装图纸") + " x" + this.unlockId;
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "desc", {
get: function() {
var e = [], t = "";
switch (this.type) {
case o.ReachTime:
e.push(this.y);
t = "使用任意角色存活{0}分钟";
break;

case o.ReachRoleTime:
e.push(l.HeroConfig.GetHero(this.x).name);
e.push(this.y);
t = "使用{0}单局存活{1}分钟";
break;

case o.KillEnemyCnt:
e.push(this.y);
t = "总共击败{0}个敌人";
break;

case o.KillBossCnt:
e.push(this.y);
t = "累计击败{0}次BOSS";
break;

case o.ReachWeaponLv:
e.push(this.y);
e.push(this.x);
t = "{0}把武器等级达到{1}级";
break;

case o.ReachWeaponClassLv:
e.push(this.y);
e.push(this.x);
t = "{0}把武器等级达到{1}阶";
break;

case o.ReachTalentLv:
e.push(this.y);
t = "天赋累计达到{0}级";
break;

case o.UseDiamond:
e.push(this.y);
t = "累计消耗{0}钻石";
break;

case o.HaveRole:
e.push(this.y);
t = "拥有{0}个角色";
break;

case o.HaveWeapon:
e.push(this.y);
t = "拥有{0}把武器";
}
return i.default.GetCurLocalizeFormatText.apply(i.default, __spreadArrays([ t ], e));
},
enumerable: !1,
configurable: !0
});
return e;
}();
n.ArchivementProto = c;
var u = function() {
function e() {}
e.GetItems = function() {
return e.items;
};
e.GetArchivement = function(t) {
return e.items.find(function(e) {
return e.id == t;
});
};
e.items = [ new c(2, -1, o.ReachTime, -1, 5, r.SkillGroup, 15, ""), new c(3, -1, o.ReachTime, -1, 10, r.SkillGroup, 19, ""), new c(10, -1, o.ReachTime, -1, 15, r.SkillGroup, 23, ""), new c(4, -1, o.KillEnemyCnt, -1, 2e3, r.SkillGroup, 5, ""), new c(6, -1, o.KillEnemyCnt, -1, 8e3, r.SkillGroup, 20, ""), new c(8, -1, o.KillEnemyCnt, -1, 2e4, r.SkillGroup, 22, ""), new c(7, -1, o.ReachRoleTime, 2, 10, r.SkillGroup, 16, ""), new c(9, -1, o.ReachRoleTime, 3, 20, r.SkillGroup, 21, ""), new c(100, 1, o.HaveRole, -1, 2, r.EquipmentPiece, 4, "Unpack/Shop/piecewhat2"), new c(101, 1, o.HaveRole, -1, 3, r.EquipmentPiece, 3, "Unpack/Shop/piecewhat2"), new c(102, 1, o.HaveRole, -1, 4, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(110, 2, o.HaveWeapon, -1, 3, r.EquipmentPiece, 3, "Unpack/Shop/piecewhat2"), new c(111, 2, o.HaveWeapon, -1, 4, r.EquipmentPiece, 3, "Unpack/Shop/piecewhat2"), new c(112, 2, o.HaveWeapon, -1, 5, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(113, 2, o.HaveWeapon, -1, 6, r.Diamond, 30, ""), new c(114, 2, o.HaveWeapon, -1, 7, r.Diamond, 30, ""), new c(115, 2, o.HaveWeapon, -1, 8, r.Diamond, 30, ""), new c(116, 2, o.HaveWeapon, -1, 9, r.Diamond, 30, ""), new c(130, 3, o.ReachTalentLv, -1, 10, r.EquipmentPiece, 4, "Unpack/Shop/piecewhat2"), new c(131, 3, o.ReachTalentLv, -1, 20, r.EquipmentPiece, 3, "Unpack/Shop/piecewhat2"), new c(132, 3, o.ReachTalentLv, -1, 30, r.Diamond, 20, ""), new c(133, 3, o.ReachTalentLv, -1, 40, r.Diamond, 20, ""), new c(134, 3, o.ReachTalentLv, -1, 50, r.Diamond, 20, ""), new c(135, 3, o.ReachTalentLv, -1, 60, r.Diamond, 20, ""), new c(136, 3, o.ReachTalentLv, -1, 70, r.Diamond, 20, ""), new c(137, 3, o.ReachTalentLv, -1, 80, r.Diamond, 20, ""), new c(138, 3, o.ReachTalentLv, -1, 90, r.Diamond, 20, ""), new c(139, 3, o.ReachTalentLv, -1, 100, r.Diamond, 20, ""), new c(140, 3, o.ReachTalentLv, -1, 110, r.Diamond, 20, ""), new c(141, 3, o.ReachTalentLv, -1, 120, r.Diamond, 20, ""), new c(150, 4, o.KillBossCnt, -1, 1, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(151, 4, o.KillBossCnt, -1, 2, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(152, 4, o.KillBossCnt, -1, 3, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(153, 4, o.KillBossCnt, -1, 5, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(154, 4, o.KillBossCnt, -1, 8, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(155, 4, o.KillBossCnt, -1, 10, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(156, 4, o.KillBossCnt, -1, 12, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(157, 4, o.KillBossCnt, -1, 15, r.EquipmentBluePrint, 10, "Battle/Texture/Item/EquipBp"), new c(170, 5, o.ReachWeaponLv, 20, 1, r.Diamond, 20, ""), new c(171, 5, o.ReachWeaponLv, 20, 2, r.Diamond, 20, ""), new c(172, 5, o.ReachWeaponLv, 20, 3, r.Diamond, 20, ""), new c(173, 5, o.ReachWeaponLv, 20, 4, r.Diamond, 20, ""), new c(174, 5, o.ReachWeaponLv, 20, 5, r.Diamond, 20, ""), new c(175, 5, o.ReachWeaponLv, 20, 6, r.Diamond, 20, ""), new c(176, 5, o.ReachWeaponLv, 20, 7, r.Diamond, 20, ""), new c(177, 5, o.ReachWeaponLv, 20, 8, r.Diamond, 20, ""), new c(178, 5, o.ReachWeaponLv, 20, 9, r.Diamond, 20, ""), new c(190, 6, o.ReachWeaponClassLv, 3, 1, r.Diamond, 30, ""), new c(191, 6, o.ReachWeaponClassLv, 3, 2, r.Diamond, 30, ""), new c(192, 6, o.ReachWeaponClassLv, 3, 3, r.Diamond, 30, ""), new c(193, 6, o.ReachWeaponClassLv, 3, 4, r.Diamond, 30, ""), new c(194, 6, o.ReachWeaponClassLv, 3, 5, r.Diamond, 30, ""), new c(195, 6, o.ReachWeaponClassLv, 3, 6, r.Diamond, 30, ""), new c(196, 6, o.ReachWeaponClassLv, 3, 7, r.Diamond, 30, ""), new c(197, 6, o.ReachWeaponClassLv, 3, 8, r.Diamond, 30, ""), new c(198, 6, o.ReachWeaponClassLv, 3, 9, r.Diamond, 30, ""), new c(210, 7, o.UseDiamond, -1, 500, r.Diamond, 30, ""), new c(211, 7, o.UseDiamond, -1, 1e3, r.Diamond, 30, ""), new c(212, 7, o.UseDiamond, -1, 1500, r.Diamond, 30, ""), new c(213, 7, o.UseDiamond, -1, 2e3, r.Diamond, 30, ""), new c(214, 7, o.UseDiamond, -1, 3e3, r.Diamond, 30, ""), new c(215, 7, o.UseDiamond, -1, 5e3, r.Diamond, 30, "") ];
return e;
}();
n.ArchivementConfig = u;
cc._RF.pop();
}, {
"../../Framework/Localize/LocalizeManager": void 0,
"./GiftConfig": "GiftConfig",
"./HeroConfig": "HeroConfig",
"./SkillConfig": "SkillConfig"
} ],
ArchivementData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e2b6byn6KRBbpsUku239c4+", "ArchivementData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ArchivementData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../Messaging/MessageBroadcastReceiver"), i = e("./ArchivementConfig"), a = e("./GameModel"), l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.value_ = 0;
t.unlock_ = !1;
t.isGetReward = !1;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "value", {
get: function() {
return this.value_;
},
set: function(e) {
if (!this.unlock) {
this.value_ = e;
this.value >= this.proto.y && (this.unlock = !0);
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "visible", {
get: function() {
if (!this.proto) return !1;
if (this.proto.unlockLevel < 0) return !0;
var e = a.default.Instance.GetLevel(this.proto.unlockLevel);
return !(e && !e.unlock);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "unlock", {
get: function() {
return this.unlock_;
},
set: function(e) {
var t = this.unlock_;
this.unlock_ = e;
t != e && e && r.BroadcastMessage(null, "OnUnlockArchivement", this);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = i.ArchivementConfig.GetArchivement(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "value_", void 0);
__decorate([ o.SerializeField("c") ], t.prototype, "unlock_", void 0);
__decorate([ o.SerializeField("d") ], t.prototype, "isGetReward", void 0);
return t;
}(o.default);
n.ArchivementData = l;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./ArchivementConfig": "ArchivementConfig",
"./GameModel": "GameModel"
} ],
ArchivementModel: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "27c0aFo/ohFBqvDZn8njZX+", "ArchivementModel");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../../Framework/Utility/DailyValue"), i = e("../../Service/Timer"), a = e("../Messaging/MessageBroadcastReceiver"), l = e("./ArchivementConfig"), s = e("./ArchivementData"), c = e("./Config"), u = e("./DailyMissionConfig"), p = e("./DailyMissionData"), d = e("./GameModel"), f = e("./LevelConfig"), h = e("./MonsterConfig"), m = e("./SafeInt"), w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.archivementList = new Array();
t.dailyMissionList = new Array();
t.activeValue = new m.default(0);
t.activeBoxOpen = [ 0, 0, 0, 0, 0 ];
t.isDailyInit = new r.DailyValue(0);
return t;
}
n = t;
Object.defineProperty(t.prototype, "unlockCount", {
get: function() {
for (var e = 0, t = 0; t < this.archivementList.length; t++) this.archivementList[t].unlock && e++;
return e;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnConstructor = function() {};
t.prototype.Initialize = function() {
this.Init();
};
t.prototype.Init = function() {
var e = this;
n.Instance = this;
a.AddBroadcastReceiver(this);
for (var t = this.archivementList.length - 1; t >= 0; t--) {
var o = this.archivementList[t];
l.ArchivementConfig.GetArchivement(o.id) || this.archivementList.splice(t, 1);
}
var r = l.ArchivementConfig.GetItems();
for (t = 0; t < r.length; t++) {
var c = r[t];
if (!this.GetArchivement(c.id)) {
var u = new s.ArchivementData();
u.id = c.id;
var p = this.GetMaxArchivement(u.proto);
p && (u.value = p.value);
this.archivementList.push(u);
}
}
this.InitDailyMission(0 == this.isDailyInit.value);
i.default.RepeatRun(10, -1, function() {
0 == e.isDailyInit.value && e.InitDailyMission(!0);
});
};
t.prototype.InitDailyMission = function(e) {
if (e) {
this.dailyMissionList.splice(0, this.dailyMissionList.length);
this.activeBoxOpen = [ 0, 0, 0, 0, 0 ];
this.activeValue.intValue = 0;
}
0 == this.dailyMissionList.length && (this.isDailyInit.value = 1);
for (var t = this.dailyMissionList.length - 1; t >= 0; t--) {
var n = this.dailyMissionList[t];
u.DailyMissionConfig.GetDailyMission(n.id) || this.dailyMissionList.splice(t, 1);
}
var o = u.DailyMissionConfig.GetItems();
for (t = 0; t < o.length; t++) {
var r = o[t];
if (!this.GetDailyMission(r.id)) {
var i = new p.DailyMissionData();
i.id = r.id;
i.proto.type == u.DailyMissionType.LoginGame && (i.value = 1);
this.dailyMissionList.push(i);
}
}
};
t.prototype.CheckIsGetRewardStatus = function() {
this.OnWeaponLevelup(0, 0);
this.OnWeaponClassup(0, 0);
this.OnWeaponBuy(0);
this.OnHeroBuy(0);
this.OnTalentLevelup(0, 0);
var e = !1;
this.archivementList.forEach(function(t) {
if (t.isGetReward) switch (t.proto.unlockType) {
case l.UnlockType.SkillGroup:
var n = d.default.Instance.GetSkillGroup(t.proto.unlockId);
if (!n.unlock.boolValue) {
n.Unlock("成就");
e = !0;
}
break;

case l.UnlockType.Hero:
var o = d.default.Instance.GetHero(t.proto.unlockId);
if (!o.visible) {
o.visible = !0;
e = !0;
}
}
});
e && d.default.Save();
};
t.prototype.GetMaxArchivement = function(e) {
var t = null;
if (e) for (var n = 0; n < this.archivementList.length; n++) {
var o = this.archivementList[n];
o.proto && o.proto.type == e.type && o.proto.x == e.x && o.proto.groupID == e.groupID && (!t || t.value < o.value) && (t = o);
}
return t;
};
t.prototype.GetArchivement = function(e) {
return this.archivementList.find(function(t) {
return t.id == e;
});
};
t.prototype.HandleArchivement = function(e, t) {
this.archivementList.forEach(function(n) {
n.visible && n.proto && n.proto.type == e && t(n);
});
};
t.prototype.GetDailyMission = function(e) {
return this.dailyMissionList.find(function(t) {
return t.id == e;
});
};
t.prototype.HandleDailyMission = function(e, t) {
this.dailyMissionList.forEach(function(n) {
n.visible && n.proto && n.proto.type == e && t(n);
});
};
t.prototype.OnBattleTime = function(e, t, n) {
this.HandleArchivement(l.ArchivementType.ReachTime, function(t) {
(-1 == t.proto.x || t.proto.x == e) && n >= t.proto.y && (t.value = n);
});
this.HandleArchivement(l.ArchivementType.ReachRoleTime, function(e) {
(-1 == e.proto.x || e.proto.x == t) && n >= e.proto.y && (e.value = n);
});
};
t.prototype.OnKillEnemy = function(e, t, n, o, r, i) {
this.HandleArchivement(l.ArchivementType.KillEnemyCnt, function(e) {
e.value++;
});
if (i == h.MonsterType.Boss && null == f.LevelConfig.FragmentLevelId.find(function(e) {
return e == n;
})) {
this.HandleArchivement(l.ArchivementType.KillBossCnt, function(e) {
e.value++;
});
this.HandleDailyMission(u.DailyMissionType.KillBossCnt, function(e) {
e.value++;
});
d.default.Save(!0);
}
i == h.MonsterType.Elite && this.HandleDailyMission(u.DailyMissionType.KillEliteEnemyCnt, function(e) {
e.value++;
});
this.HandleDailyMission(u.DailyMissionType.KillEnemyCnt, function(e) {
e.value++;
});
};
t.prototype.OnWeaponLevelup = function(e, t) {
var n = 0, o = 0;
this.HandleArchivement(l.ArchivementType.ReachWeaponLv, function(e) {
if (0 == n || n != e.proto.x) {
n = e.proto.x;
o = 0;
d.default.Instance.weaponList.forEach(function(e) {
e && e.unlock.boolValue && e.level.intValue >= n && o++;
});
}
e.value = o;
});
e > 0 && t > 0 && this.HandleDailyMission(u.DailyMissionType.UpgradeWeapon, function(e) {
e.value++;
});
};
t.prototype.OnWeaponClassup = function() {
var e = 0, t = 0;
this.HandleArchivement(l.ArchivementType.ReachWeaponClassLv, function(n) {
if (0 == e || e != n.proto.x) {
e = n.proto.x;
t = 0;
d.default.Instance.weaponList.forEach(function(n) {
n && n.unlock.boolValue && n.classLevel.intValue >= e && t++;
});
}
n.value = t;
});
};
t.prototype.OnWeaponBuy = function() {
var e = 0;
d.default.Instance.weaponList.forEach(function(t) {
t && t.unlock.boolValue && e++;
});
this.HandleArchivement(l.ArchivementType.HaveWeapon, function(t) {
t.value = e;
});
};
t.prototype.OnHeroBuy = function() {
var e = 0;
d.default.Instance.heroList.forEach(function(t) {
t && t.unlock.boolValue && e++;
});
this.HandleArchivement(l.ArchivementType.HaveRole, function(t) {
t.value = e;
});
};
t.prototype.OnTalentLevelup = function() {
var e = 0;
d.default.Instance.talentList.forEach(function(t) {
t && (e += t.lv);
});
this.HandleArchivement(l.ArchivementType.ReachTalentLv, function(t) {
t.value = e;
});
};
t.prototype.OnUseDiamond = function(e) {
if (e > 0) {
this.HandleArchivement(l.ArchivementType.UseDiamond, function(t) {
t.value += e;
});
this.HandleDailyMission(u.DailyMissionType.UseDiamond, function(t) {
t.value += e;
});
}
};
t.prototype.OnShopBuy = function(e, t) {
if (e) {
this.HandleDailyMission(u.DailyMissionType.ShopBuy, function(e) {
e.value++;
});
t && this.HandleDailyMission(u.DailyMissionType.ChargeMoney, function(e) {
e.value++;
});
}
};
t.prototype.OnEnterLevel = function(e) {
e != c.BattleMode.Level && e != c.BattleMode.Endless || this.HandleDailyMission(u.DailyMissionType.EnterLevel, function(e) {
e.value++;
});
};
t.prototype.OnBattleResult = function(e, t, n, o) {
!n || o != c.BattleMode.Fragment1 && o != c.BattleMode.Fragment2 && o != c.BattleMode.Fragment3 || this.HandleDailyMission(u.DailyMissionType.PassTrain, function(e) {
e.value++;
});
};
t.prototype.OnUseCoin = function(e) {
e > 0 && this.HandleDailyMission(u.DailyMissionType.UseCoin, function(t) {
t.value += e;
});
};
t.prototype.OnlineMinute = function(e) {
e > 0 && this.HandleDailyMission(u.DailyMissionType.OnlineMinute, function(t) {
t.value += e;
});
};
var n;
t.Instance = null;
__decorate([ o.SerializeField("a", s.ArchivementData) ], t.prototype, "archivementList", void 0);
__decorate([ o.SerializeField("b", p.DailyMissionData) ], t.prototype, "dailyMissionList", void 0);
__decorate([ o.SerializeField("c", m.default) ], t.prototype, "activeValue", void 0);
__decorate([ o.SerializeField("d") ], t.prototype, "activeBoxOpen", void 0);
__decorate([ o.SerializeField("e", r.DailyValue) ], t.prototype, "isDailyInit", void 0);
__decorate([ a.BroadcastHandler ], t.prototype, "OnBattleTime", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnWeaponLevelup", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnWeaponClassup", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnWeaponBuy", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnHeroBuy", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnTalentLevelup", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnUseDiamond", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnShopBuy", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnEnterLevel", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnBattleResult", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnUseCoin", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnlineMinute", null);
return n = __decorate([ o.SerializeClass("am") ], t);
}(o.default);
n.default = w;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../../Framework/Utility/DailyValue": void 0,
"../../Service/Timer": void 0,
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./ArchivementConfig": "ArchivementConfig",
"./ArchivementData": "ArchivementData",
"./Config": "Config",
"./DailyMissionConfig": "DailyMissionConfig",
"./DailyMissionData": "DailyMissionData",
"./GameModel": "GameModel",
"./LevelConfig": "LevelConfig",
"./MonsterConfig": "MonsterConfig",
"./SafeInt": "SafeInt"
} ],
ArchivementRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e6ee3fjY/xOwJFNf4cLHn/e", "ArchivementRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/ArchivementModel"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cntLable = null;
t.timeCounter = 0;
return t;
}
n = t;
t.prototype.update = function(e) {
this.timeCounter -= e;
if (this.timeCounter <= 0) {
var t = n.redCnt;
this.node.opacity = t > 0 ? 255 : 0;
this.cntLable.string = t.toFixed(0);
this.timeCounter = 1;
}
};
Object.defineProperty(t, "redCnt", {
get: function() {
for (var e = 0, t = o.default.Instance.archivementList, n = 0; n < t.length; n++) {
var r = t[n];
r.unlock && !r.isGetReward && e++;
}
return e;
},
enumerable: !1,
configurable: !0
});
var n;
__decorate([ a(cc.Label) ], t.prototype, "cntLable", void 0);
return n = __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../Config/ArchivementModel": "ArchivementModel"
} ],
AreaLimitedRVOBody: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "62ae6Aom59IwLUCVi2Sznaz", "AreaLimitedRVOBody");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AreaLimitedRVOBody = void 0;
var o = e("./Entity"), r = e("./LevelContext"), i = e("./LinearBody"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.entity = null;
t.lastPos = cc.v2();
t.enableLimit = !0;
t.isHitWall_ = !1;
t.newPos = new cc.Vec2();
t.v1 = new cc.Vec2();
t.v2 = new cc.Vec2();
t.v3 = new cc.Vec2();
t.v4 = new cc.Vec2();
return t;
}
Object.defineProperty(t.prototype, "isHitWall", {
get: function() {
return this.isHitWall_;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
this.entity = this.getComponent(o.Entity);
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.node.getPosition(this.lastPos);
};
t.prototype.start = function() {
this.node.getPosition(this.lastPos);
};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
if (this.enableLimit) {
this.newPos.set(this.entity.body.position);
this.isHitWall_ = !1;
for (var n = this.entity.tileMask, o = cc.Vec2.distance(this.newPos, this.lastPos), i = this.newPos.sub(this.lastPos, this.v1).normalizeSelf(), a = 0, l = this.v3.set(this.lastPos), s = this.entity.moveCollisionHalfSize; a < o && o > 0; ) {
var c = o - a;
a += a + Math.min(c, 10);
var u = this.lastPos.add(this.v4.set(i).multiplyScalar(a + 10), this.v2), p = !1, d = !1, f = u.x > this.lastPos.x, h = u.y > this.lastPos.y;
if (s.equals(cc.Size.ZERO)) {
p = !r.LevelContext.Instance.IsWalkable(u.x, this.lastPos.y, n);
d = !r.LevelContext.Instance.IsWalkable(this.lastPos.x, u.y, n);
} else {
for (var m = f ? u.x + s.width : u.x - s.width, w = 0; w < 2 * s.height; w += 10) if (!r.LevelContext.Instance.IsWalkable(m, this.lastPos.y + s.height - w, n)) {
p = !0;
break;
}
var y = h ? u.y + s.height : u.y - s.height;
for (w = 0; w < 2 * s.width; w += 10) if (!r.LevelContext.Instance.IsWalkable(u.x - s.width + w, y, n)) {
d = !0;
break;
}
}
if (p) {
this.newPos.x = this.lastPos.x;
this.isHitWall_ = !0;
}
if (d) {
this.newPos.y = this.lastPos.y;
this.isHitWall_ = !0;
}
l.set(u);
}
r.LevelContext.Instance.scrnSafeArea && !this.isHitWall_ && r.LevelContext.Instance.LimitAreaPos(this.newPos, !1) && (this.isHitWall_ = !0);
this.lastPos.set(this.newPos);
this.isHitWall && (this.entity.body.position = this.newPos);
}
};
return __decorate([ l ], t);
}(i.default));
n.AreaLimitedRVOBody = s;
cc._RF.pop();
}, {
"./Entity": "Entity",
"./LevelContext": "LevelContext",
"./LinearBody": "LinearBody"
} ],
AutoScroll: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e09f4LB1/lOh7CI2FY8lFnc", "AutoScroll");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Util"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.itemPrefab = null;
t.spacing = 10;
t.speed = 15;
t.itemHeight = 0;
t.gap = 0;
t.running = !1;
return t;
}
t.prototype.onLoad = function() {
this.itemPrefab.active = !1;
};
t.prototype.InitCellDataList = function(e, t) {
this.updateViewCell = t;
this.cellDataList = e;
var n = 0;
if (this.cellDataList && this.cellDataList.length > 0) {
this.itemHeight = this.itemPrefab.height;
this.gap = this.itemHeight + this.spacing;
for (var r = .5 * (this.node.height - this.gap), i = 0; i < this.cellDataList.length; i++) {
var a = o.default.GetOrCreateChild(i, this.node, 0);
a.active = !0;
a.y = r;
this.updateViewCell(i, this.cellDataList[i], a);
r -= this.gap;
n++;
}
this.running = !0;
} else {
this.itemPrefab.active = !1;
this.running = !1;
}
for (i = n; i < this.node.childrenCount; i++) this.node.children[i].active = !1;
};
t.prototype.update = function(e) {
if (this.running) {
var t = this.speed * e, n = this.cellDataList.length * this.gap;
n < this.node.height + this.gap && (n = this.node.height + this.gap);
for (var o = 0; o < this.cellDataList.length; o++) {
var r = this.node.children[o];
r.y += t;
r.y >= .5 * (this.node.height + this.gap) && (r.y -= n);
}
}
};
__decorate([ a(cc.Node) ], t.prototype, "itemPrefab", void 0);
__decorate([ a(cc.Float) ], t.prototype, "spacing", void 0);
__decorate([ a(cc.Float) ], t.prototype, "speed", void 0);
return __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../Util": "Util"
} ],
B2_FeatureSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7bbabK7oIpNzZxXb29MP+zr", "B2_FeatureSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Messaging/MessageBroadcastReceiver"), r = e("../../../LevelContext"), i = e("../../EffectSkill"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(n) {
switch (n.label) {
case 0:
return [ 4, e.prototype.OnInit.call(this, t) ];

case 1:
n.sent();
this.context.getDamageFunc = this.GetDamage.bind(this);
return [ 2 ];
}
});
});
};
t.prototype.GetDamage = function() {
return this.context.owner.weaponSkill.context.GetDamage();
};
t.prototype.Slash = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, o, i, a, l;
return __generator(this, function(s) {
switch (s.label) {
case 0:
e = cc.v2(this.context.owner.body.position);
t = this.context.owner.view.scaleX;
n = null != this.context.owner.GetSkillProto(641) ? 3 : 1;
o = 0;
s.label = 1;

case 1:
if (!(o < n)) return [ 3, 4 ];
(i = this.context.CreateEffectHandler(this.context.fireEffect, this.context.fireSound, e, 0, r.LevelContext.Instance.playerLayer, !0, null)).scaleX = t;
a = i.getComponent(cc.Animation);
(l = a.getAnimationState(a.defaultClip.name)).speed = n > 1 ? 1.5 : 1;
return [ 4, this.waitForTime((l.clip.duration + .1) / l.speed) ];

case 2:
s.sent();
this.context.cache && this.context.cache.DestroyNode(i);
s.label = 3;

case 3:
o++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.OnDashBegin = function() {
this.Slash();
};
t.prototype.OnDashEnd = function() {
null != this.context.owner.GetSkillProto(642) && this.Slash();
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnDashBegin", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnDashEnd", null);
return __decorate([ l ], t);
}(i.default));
n.default = s;
cc._RF.pop();
}, {
"../../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../../LevelContext": "LevelContext",
"../../EffectSkill": "EffectSkill"
} ],
BaoLieChongCi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "84feb1sMc5IJqN5+K+rIjcU", "BaoLieChongCi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../BaseSkill"), a = e("./NuHuoChongJi2"), l = cc._decorator, s = l.ccclass, c = (l.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnHitEntity = function(e) {
e.context.skillData && e.context.skillData.id != this.context.skillData.id - 2 || this.context.owner.isDashing && this.context.PlayEffectHandler(this.fireEffect, this.fireSound, e.target.body.position, 0, r.LevelContext.Instance.effectLayer, null);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return n.context.skillData.proto.damage * (1 + (a.default.IsActive ? a.default.AddDamageRate : 0));
};
return [ 2 ];
});
});
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ s ], t);
}(i.default));
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill",
"./NuHuoChongJi2": "NuHuoChongJi2"
} ],
BaoNu: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "34e5bGpQwNH2qjQTSSVYUvy", "BaoNu");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 15;
t.accel = 50;
t.taskId = null;
return t;
}
t.prototype.AddAcceledValue = function(e, t) {
var n = this.context.owner;
n.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, e);
n.AddFeatureEx(o.SkillFeature.BulletDamageUpPercent, e);
t && n.ResetFeatures();
};
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnHitEntity = function(e) {
var t = this;
if (e.target == this.context.owner) {
if (this.taskId) {
this.CancelRun(this.taskId);
this.AddAcceledValue(-this.accel, !1);
}
this.AddAcceledValue(this.accel, !0);
this.taskId = this.DelayRun(this.intervel, function() {
t.AddAcceledValue(-t.accel, !0);
t.taskId = null;
});
}
};
__decorate([ s() ], t.prototype, "intervel", void 0);
__decorate([ s() ], t.prototype, "accel", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill"
} ],
BaseBullet_ContinuousDamage: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "73ceeKm+ytHV4Hwtka7Pr/q", "BaseBullet_ContinuousDamage");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./BaseBullet"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.hitOnFirstTouch = !1;
t.hitColliders = [];
t.passedTime = 0;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.hitColliders = [];
};
t.prototype.onCollisionEnter = function(e) {
if (this.isActive) {
this.hitColliders.push(e);
this.hitOnFirstTouch && this.skill.Damage(e.node, cc.Vec2.ZERO);
}
};
t.prototype.onCollisionExit = function(e) {
var t = this.hitColliders.indexOf(e);
t < 0 || this.hitColliders.splice(t, 1);
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
var t = this.skill.skillData.proto.damageIntervel;
if (this.passedTime >= t) {
this.passedTime = 0;
for (var n = 0; n < this.hitColliders.length; n++) {
var o = this.hitColliders[n];
cc.isValid(o) && this.OnHit(o, this.skill.owner.collider);
}
}
};
__decorate([ a() ], t.prototype, "hitOnFirstTouch", void 0);
return __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"./BaseBullet": "BaseBullet"
} ],
BaseBullet: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7e59d3QWjFIermUv5xlOHNZ", "BaseBullet");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/SoundsManager"), r = e("../../../Service/Delegate"), i = e("../../Config/SkillConfig"), a = e("../Entity"), l = e("../LevelContext"), s = e("../LinearBody"), c = e("../MapItem"), u = e("../Util"), p = e("./EffectLayer"), d = e("./SkillContext"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.throughPlayer = !1;
t.reflectEffect = null;
t.reflectSound = null;
t.disapperEffect = null;
t.disapperSound = null;
t.disapperEffectLayer = p.EffectLayer.Effect;
t.maxHitCount = 1;
t.canReflect = !0;
t.maxBounceCount = 0;
t.maxReflectCount = 0;
t.triggerBuff = !0;
t.canDamage = !0;
t.fadeout = !1;
t.skill = null;
t.hittedCount = 0;
t.isDestory = !1;
t.OnHitEvent = new r.default();
t.body = null;
t.totalHitCount = 0;
t.leftBounceCount = 0;
t.leftReflectCount = 0;
t.bounceCount = 0;
t.srcScale = 1;
t.damage = 0;
t.critable = !0;
t.mojingBounceCnt = 0;
t.buffDescPercent = 0;
t.v2 = cc.v2();
t.v3 = cc.v2();
t.v4 = cc.v2();
t.v5 = cc.v2();
return t;
}
Object.defineProperty(t.prototype, "isThroughTarget", {
get: function() {
return this.throughPlayer;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isDirect", {
get: function() {
return this.critable;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
this.body = this.getComponent(s.default);
this.srcScale = this.node.scale;
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
this.skill = null;
this.body = null;
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.hittedCount = 0;
this.leftBounceCount = 0;
this.bounceCount = 0;
this.isDestory = !1;
this.node.opacity = 255;
this.node.scale = this.srcScale;
};
t.prototype.OnInit = function() {
this.damage = this.skill.GetDamage();
this.mojingBounceCnt = 0;
this.leftBounceCount += this.maxBounceCount;
this.leftReflectCount += this.maxReflectCount;
this.totalHitCount += this.maxBounceCount;
if (this.skill.isBulletSkill) {
var e = this.skill.GetFeature(i.SkillFeature.BulletBounceUp);
this.leftBounceCount += e;
this.totalHitCount += e;
this.leftReflectCount += this.skill.GetFeature(i.SkillFeature.BulletScreenReflectUp);
}
var t = this.skill.skillData.proto.opt;
t && null != t.through && (this.throughPlayer = 1 == t.through);
};
t.prototype.OnHit = function(e, t) {
if (this.isActive) {
if (this.hittedCount >= this.totalHitCount || this.isDestory) return !1;
var n = this.body ? this.body.finalVelocity.normalize() : t.node.getPosition(this.v5).sub(e.node.getPosition(this.v2), this.v3).normalizeSelf(), o = this.skill.Damage(e.node, n, this.canDamage ? this.damage : d.default.NoDamageValue, this);
if (!o.isHit) return !1;
o.cirit && (this.totalHitCount += this.skill.GetFeature(i.SkillFeature.BulletCiritHitCountUp));
var r = (this.leftBounceCount > 0 || this.leftReflectCount) && this.canReflect;
o.target instanceof a.Entity && (this.isThroughTarget || this.hittedCount++);
if (r) {
this.reflectEffect && (this.skill.PlayEffectHandler(this.reflectEffect, this.reflectSound, this.node.getPosition(this.v1), 0, l.LevelContext.Instance.effectLayer, null, null, this.damage).scale = this.node.scale);
if (this.leftBounceCount > 0 || this.leftReflectCount > 0) {
var s = this.body.finalVelocity.normalize();
if (this.leftBounceCount > 0) {
s.mulSelf(-1);
this.leftBounceCount--;
} else {
if (!(this.leftReflectCount > 0 && "CameraWall" == e.node.group)) return;
var c = e.node.width > e.node.height;
s.x *= c ? 1 : -1;
s.y *= c ? -1 : 1;
this.leftReflectCount--;
}
this.body.velocity = s.mul(this.body.velocity.len());
for (var p = 0; p < this.body.forceList.length; p++) {
var f = this.body.forceList[p];
f.force = s.mul(f.force.len());
f.force.normalize(f.normal);
}
this.node.angle = u.default.forward2Angle(s);
this.bounceCount++;
}
}
this.OnHitEvent.Invoke(o, this.hittedCount);
this.hittedCount >= this.totalHitCount && this.OnDisapper(this.node.getPosition(this.v4));
return !0;
}
};
t.prototype.OnDisapper = function() {
var e = this;
if (!this.isDestory) {
this.isDestory = !0;
this.OnHitEvent.Clear();
this.onDisappearEffect();
if (this.fadeout) {
this.isActive = !1;
var t = this.node.destroyTween;
if (t) t.stop(); else {
t = cc.tween(this.node).to(.15, {
opacity: 0,
scale: 0
}).call(function() {
e.skill.cache.DestroyNode(e.node);
});
this.node.destroyTween = t;
}
t.start();
} else this.skill.cache.DestroyNode(this.node);
}
};
t.prototype.onDisappearEffect = function() {
this.disapperEffect && (this.skill.PlayEffectHandler(this.disapperEffect, null, this.body.position, 0, l.LevelContext.Instance.GetLayer(this.disapperEffectLayer), null, null, this.damage).scale = this.node.scale);
this.disapperSound && o.default.instance.PlayEffectSync(this.disapperSound);
};
t.prototype.onCollisionEnter = function(e, t) {
this.OnHit(e, t);
};
__decorate([ m() ], t.prototype, "throughPlayer", void 0);
__decorate([ m(cc.Prefab) ], t.prototype, "reflectEffect", void 0);
__decorate([ m({
type: cc.AudioClip
}) ], t.prototype, "reflectSound", void 0);
__decorate([ m(cc.Prefab) ], t.prototype, "disapperEffect", void 0);
__decorate([ m({
type: cc.AudioClip
}) ], t.prototype, "disapperSound", void 0);
__decorate([ m({
type: cc.Enum(p.EffectLayer)
}) ], t.prototype, "disapperEffectLayer", void 0);
__decorate([ m() ], t.prototype, "maxHitCount", void 0);
__decorate([ m() ], t.prototype, "canReflect", void 0);
__decorate([ m() ], t.prototype, "maxBounceCount", void 0);
__decorate([ m() ], t.prototype, "maxReflectCount", void 0);
__decorate([ m() ], t.prototype, "triggerBuff", void 0);
__decorate([ m() ], t.prototype, "canDamage", void 0);
__decorate([ m() ], t.prototype, "fadeout", void 0);
return __decorate([ h ], t);
}(c.MapItem);
n.default = w;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/SoundsManager": void 0,
"../../../Service/Delegate": void 0,
"../../Config/SkillConfig": "SkillConfig",
"../Entity": "Entity",
"../LevelContext": "LevelContext",
"../LinearBody": "LinearBody",
"../MapItem": "MapItem",
"../Util": "Util",
"./EffectLayer": "EffectLayer",
"./SkillContext": "SkillContext"
} ],
BaseSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "81cd1InVZlHf5WIOaxwQj9a", "BaseSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SkillTargetType = void 0;
var o, r = e("../../../Framework/Core/Resource/AssetManager"), i = e("../../Config/Config"), a = e("../Entity"), l = e("../LevelContext"), s = e("../Util"), c = e("./SkillContext"), u = e("./AbstractSkill"), p = cc._decorator, d = p.ccclass, f = p.property;
(function(e) {
e[e.Neareast = 0] = "Neareast";
e[e.Random = 1] = "Random";
e[e.None = 2] = "None";
e[e.MoveDir = 3] = "MoveDir";
e[e.Player = 4] = "Player";
e[e.RandomInRange = 5] = "RandomInRange";
e[e.InvMoveDir = 6] = "InvMoveDir";
e[e.NeareastInRange = 7] = "NeareastInRange";
e[e.Rotate = 8] = "Rotate";
e[e.FireForward = 9] = "FireForward";
})(o = n.SkillTargetType || (n.SkillTargetType = {}));
var h = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cacheCount = -1;
t.buff = null;
t.buffRatio = 100;
t.buffTime = 0;
t.targetType = o.Random;
t.hitEffect = null;
t.hitSound = null;
t.fireEffect = null;
t.fireSound = null;
t.slowTime = 0;
t.hitbackForce = 0;
t.hitbackTime = 0;
t.recoilForce = 0;
t.recoilTime = 0;
t.shakeAmount = 2;
t.shakeZoomAmount = 0;
t.shakeDuration = 0;
t.vibrate = !1;
t.critable = !0;
t.showDamageText = !0;
t.ignoreSlient = !1;
t.damageColor = i.Config.DefaultDamageColor.clone();
t.isBegin = !1;
t.isCalcSlow = !1;
t.slowPassedTime = 0;
t.context = new c.default();
t.triggerCnt = 0;
return t;
}
t.prototype.onEnable = function() {
this.triggerCnt = 0;
e.prototype.onEnable.call(this);
};
t.prototype.onDestroy = function() {
this.context && this.context.cache && this.context.cache != r.default.Default.DefaultCache && r.default.Default.DestroyCache(this.context.cache, !0);
this.context = null;
};
t.prototype.onLoad = function() {
this.InitContext();
this.cacheCount > 0 ? this.context.cache = r.default.Default.CreateCache(this.node.name, this.cacheCount, !1) : this.context.cache = r.default.Default.DefaultCache;
};
t.prototype.OnUpdate = function(e) {
if (this.slowTime > 0 && this.isCalcSlow) {
this.slowPassedTime += e;
if (this.slowPassedTime >= this.slowTime) {
this.context.owner.fireSlowCnt--;
this.isCalcSlow = !1;
}
}
};
t.prototype.OnBegin = function() {
this.isBegin = !0;
this.slowPassedTime = 0;
if (this.slowTime > 0 && !this.isCalcSlow) {
this.context.owner.fireSlowCnt++;
this.isCalcSlow = !0;
}
};
t.prototype.OnEnd = function() {
this.isBegin = !1;
};
t.prototype.OnInit = function(e) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
this.context.owner = e;
e && (this.context.collideMask = e.collideMask);
return [ 2 ];
});
});
};
t.prototype.OnEnableSkill = function() {};
t.prototype.PlayRecoilEffect = function() {
var e = this.context.owner;
if (e && e.isMainPlayer) {
this.shakeAmount > 0 && this.shakeDuration > 0 && l.LevelContext.Instance.cameraShake.Start(this.shakeAmount, this.shakeDuration);
this.shakeZoomAmount > 0 && cc.tween(l.LevelContext.Instance.camera).to(.03, {
zoomRatio: 1.2 + this.shakeZoomAmount
}).to(.03, {
zoomRatio: 1.2
}).start();
this.vibrate && s.default.Vibrate();
}
};
t.prototype.Trigger = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function(t) {
switch (t.label) {
case 0:
this.OnBegin();
this.triggerCnt++;
this.context.isCleared = !1;
e = this.context.GetFireInfo();
this.PlayRecoilEffect(e.dir);
return [ 4, this.Fire(e.dir) ];

case 1:
t.sent();
this.OnEnd();
return [ 2 ];
}
});
});
};
t.prototype.InitContext = function() {
this.context.owner || (this.context.owner = this.getComponent(a.Entity));
this.context.owner || (this.context.owner = this.node.parent.getComponent(a.Entity));
this.context.buff = this.buff;
this.context.buffRatio = this.buffRatio;
this.context.buffTime = this.buffTime;
this.context.targetType = this.targetType;
this.context.hitEffect = this.hitEffect;
this.context.hitSound = this.hitSound;
this.context.fireEffect = this.fireEffect;
this.context.fireSound = this.fireSound;
this.context.hitbackForce = this.hitbackForce;
this.context.hitbackTime = this.hitbackTime;
this.context.showDamageText = this.showDamageText;
this.context.damageColor = this.damageColor;
this.context.critable = this.critable;
this.context.OnInit();
};
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
return [ 2 ];
});
});
};
t.prototype.OnSave = function() {
return null;
};
t.prototype.OnLoad = function() {};
__decorate([ f() ], t.prototype, "cacheCount", void 0);
__decorate([ f(cc.Prefab) ], t.prototype, "buff", void 0);
__decorate([ f() ], t.prototype, "buffRatio", void 0);
__decorate([ f() ], t.prototype, "buffTime", void 0);
__decorate([ f({
type: cc.Enum(o)
}) ], t.prototype, "targetType", void 0);
__decorate([ f(cc.Prefab) ], t.prototype, "hitEffect", void 0);
__decorate([ f({
type: cc.AudioClip
}) ], t.prototype, "hitSound", void 0);
__decorate([ f(cc.Prefab) ], t.prototype, "fireEffect", void 0);
__decorate([ f({
type: cc.AudioClip
}) ], t.prototype, "fireSound", void 0);
__decorate([ f() ], t.prototype, "slowTime", void 0);
__decorate([ f() ], t.prototype, "hitbackForce", void 0);
__decorate([ f() ], t.prototype, "hitbackTime", void 0);
__decorate([ f() ], t.prototype, "recoilForce", void 0);
__decorate([ f() ], t.prototype, "recoilTime", void 0);
__decorate([ f() ], t.prototype, "shakeAmount", void 0);
__decorate([ f() ], t.prototype, "shakeZoomAmount", void 0);
__decorate([ f() ], t.prototype, "shakeDuration", void 0);
__decorate([ f() ], t.prototype, "vibrate", void 0);
__decorate([ f() ], t.prototype, "critable", void 0);
__decorate([ f() ], t.prototype, "showDamageText", void 0);
__decorate([ f() ], t.prototype, "ignoreSlient", void 0);
__decorate([ f(cc.Color) ], t.prototype, "damageColor", void 0);
return __decorate([ d ], t);
}(u.default);
n.default = h;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/AssetManager": void 0,
"../../Config/Config": "Config",
"../Entity": "Entity",
"../LevelContext": "LevelContext",
"../Util": "Util",
"./AbstractSkill": "AbstractSkill",
"./SkillContext": "SkillContext"
} ],
BaseTalentSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f6e0d0SIIFN26eryE1A7KHg", "BaseTalentSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TalentSkillContext = void 0;
var o = e("../BaseSkill"), r = e("../SkillContext"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.talentData = null;
return t;
}
return t;
}(r.default));
n.TalentSkillContext = l;
var s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.context = new l();
return t;
}
t.prototype.StartTalent = function(e) {
this.context.talentData = e;
this.OnStartTalent();
};
t.prototype.OnStartTalent = function() {};
return __decorate([ a ], t);
}(o.default);
n.default = s;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill",
"../SkillContext": "SkillContext"
} ],
BattleGuideUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f217aYkKD5KyI/oh/d8Rk3U", "BattleGuideUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.timeLabel = null;
t.confirmBtn = null;
return t;
}
t.prototype.OnSetParams = function() {
var e = this, t = 3;
this.confirmBtn.interactable = !1;
this.timeLabel.node.active = !0;
this.timeLabel.string = "(3)";
this.schedule(function() {
t--;
e.timeLabel.string = "(" + t + ")";
if (0 == t) {
e.confirmBtn.interactable = !0;
e.timeLabel.node.active = !1;
}
}, 1, t - 1);
};
__decorate([ s(cc.Label) ], t.prototype, "timeLabel", void 0);
__decorate([ s(cc.Button) ], t.prototype, "confirmBtn", void 0);
return __decorate([ l, o.RegisterView("BattleGuideUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0
} ],
BattleInfoUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2496avaihBGNoZ4509pJNkH", "BattleInfoUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/UI/PromptUI"), r = e("../Battle/LevelContext"), i = e("../Battle/Util"), a = e("./LvStars"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.activeSkills = null;
return t;
}
t.prototype.onEnable = function() {
this.InitActiveSkills(r.LevelContext.Instance.mainPlayer.activeSkills, this.activeSkills);
};
t.prototype.InitActiveSkills = function(e, t) {
for (var n = [], o = [], r = 0; r < e.length; r++) if ((d = e[r]) && d.isNormalSkill) {
var l = (u = d.group).GetLv(d.id), s = n.indexOf(u);
if (s < 0) {
n.push(u);
o.push(l);
} else o[s] < l && (o[s] = l);
}
var c = 0;
for (r = 0; r < n.length; r++) {
var u = n[r];
(f = i.default.GetOrCreateChild(c, t)).active = !0;
f.data = u.name;
i.default.SetImage(u.iconPath, f.findChild("Icon").getComponent(cc.Sprite));
f.findChild("Lv").getComponent(cc.Label).string = "Lv." + o[r];
var p = f.findChild("LvStars");
p.active = !0;
p.getComponent(a.default).SetLv(o[r], u.ids.length);
c++;
}
for (r = 0; r < e.length; r++) {
var d;
if ((d = e[r]) && d.proto.id >= 100 && d.proto.id < 1e3) {
var f;
(f = i.default.GetOrCreateChild(c, t)).active = !0;
f.data = d.proto.name;
if (!d.isNormalSkill) {
i.default.SetImage(d.proto.iconPath, f.findChild("Icon").getComponent(cc.Sprite));
f.findChild("LvStars").active = !1;
c++;
}
}
}
for (r = c; r < t.childrenCount; r++) t.children[r].active = !1;
};
t.prototype.OnItemClick = function(e) {
var t = e.target.data;
t && o.default.Show(t);
};
__decorate([ c(cc.Node) ], t.prototype, "activeSkills", void 0);
return __decorate([ s ], t);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"../../Framework/UI/PromptUI": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/Util": "Util",
"./LvStars": "LvStars"
} ],
BattleItemConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bd882Ze/x5GMrFFkImVfmKs", "BattleItemConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BattleItemConfig = n.BattleItemProto = void 0;
var o = function() {
function e(e, t, n, o, r, i, a) {
this.id = e;
this.order = t;
this.name = n;
this.desc = o;
this.tip = r;
this.icon = i;
this.res = a;
}
Object.defineProperty(e.prototype, "resPath", {
get: function() {
return "Prefabs/Item/" + this.res;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "iconPath", {
get: function() {
return "Battle/Texture/Item/" + this.icon;
},
enumerable: !1,
configurable: !0
});
return e;
}();
n.BattleItemProto = o;
var r = function() {
function e() {}
e.IsExp = function(t) {
return t <= e.ExpItemId3 && t >= e.ExpItemId;
};
e.GetItem = function(t) {
return e.items.find(function(e) {
return e.id == t;
});
};
e.VehicleItemId = 100;
e.ExpItemId = 0;
e.ExpItemId1 = 1;
e.ExpItemId2 = 2;
e.ExpItemId3 = 3;
e.BoxItemId = 4;
e.BookItemId = 5;
e.Coin100ItemId = 6;
e.GoldCloverItemId = 7;
e.FateCoinItemId = 8;
e.CoinItemId = 9;
e.EqupBpItemId = 10;
e.items = [ new o(e.ExpItemId, 3, "蓝宝石", "增加很少经验", "", "Gem_Blue", "Item_Exp"), new o(e.ExpItemId2, 4, "绿宝石", "增加少量经验", "", "Gem_Green", "Item_Exp_Green"), new o(e.ExpItemId3, 5, "紫宝石", "增加中量经验", "", "Gem_Orange", "Item_Exp_Orange"), new o(e.ExpItemId1, 6, "红宝石", "增加大量经验", "", "Gem_Red", "Item_Exp_Red"), new o(e.BoxItemId, 7, "宝箱", "普通技能、超武、金币", "", "baoxiang1", "Item_Box"), new o(e.BookItemId, 8, "属性之书", "升级角色属性", "", "book", "Item_Book"), new o(e.Coin100ItemId, 9, "高级钱袋", "增加100金币", "", "coinBag", "Item_Coin_100"), new o(e.GoldCloverItemId, 10, "金色四叶草", "进入宝石狂欢", "", "GoldClover01", "Item_GoldClover"), new o(e.FateCoinItemId, 11, "命运币", "好运或霉运？听天由命", "", "FateCoin", "Item_FateCoin"), new o(e.CoinItemId, 12, "金币", "金币", "", "coin", "Item_Coin"), new o(e.EqupBpItemId, -1, "时装图纸", "时装合成必需品", "", "", "Item_EquipBp") ];
return e;
}();
n.BattleItemConfig = r;
cc._RF.pop();
}, {} ],
BattleItemData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "51849gKdjtGU7o9U/KWNooB", "BattleItemData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BattleItemData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("./BattleItemConfig"), i = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.unlock = !1;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = r.BattleItemConfig.GetItem(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "unlock", void 0);
return t;
}(o.default);
n.BattleItemData = i;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"./BattleItemConfig": "BattleItemConfig"
} ],
BattleLevelupUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "488b5mz9ZRMpJ0gDUuspSPA", "BattleLevelupUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Service/kl"), l = e("../Battle/LevelContext"), s = e("../Battle/Util"), c = e("../Config/Config"), u = e("../Config/GameModel"), p = e("../Config/SkillConfig"), d = e("../Config/SkillData"), f = e("../../Framework/Core/Views/ViewUIManager"), h = e("../../Framework/Core/UI/WaitingUI"), m = e("../../Framework/Localize/LocalizeManager"), w = e("../Config/BattleItemConfig"), y = e("./SuperSkillUI"), g = e("./LvStars"), v = e("../../Service/PlatformService"), S = e("./NoAdUI"), M = e("../Battle/LevelManager"), k = e("../Config/GiftConfig"), C = cc._decorator, P = C.ccclass, _ = C.property, O = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.changeNode = null;
t.getAllNode = null;
t.cancelNode = null;
t.tipsNode = null;
t.noAdBtn = null;
t.anim = null;
t.selections = [];
t.isBusy = !1;
t.heroSkillClickCnt = 0;
t.showHeroSkillTips = !1;
return t;
}
t.prototype.onLoad = function() {
var e = this;
cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, function(t) {
if (e.node.active) switch (t.keyCode) {
case cc.macro.KEY.num1:
e.HandleSelect(e.selections[0]);
break;

case cc.macro.KEY.num2:
e.HandleSelect(e.selections[1]);
break;

case cc.macro.KEY.num3:
e.HandleSelect(e.selections[2]);
}
});
};
t.prototype.GetValidSelections = function(e) {
for (var t = [], n = u.default.Instance, o = l.LevelContext.Instance.mainPlayer, r = n.skillList, i = o.maxActiveSkillCnt, a = o.maxPasstiveSkillCnt, s = o.allActiveSkill, p = o.allPasstiveSkill, d = 0; d < r.length; d++) {
var f = r[d];
if (!o.GetSkillProto(f.id)) {
if (!e && o.level <= c.Config.primaryOpenSkillLv) {
for (var h = !1, m = 0; m < c.Config.primaryOpenSkilGroups.length; m++) if (f.proto.groupId == c.Config.primaryOpenSkilGroups[m]) {
h = !0;
break;
}
if (!h) continue;
}
if (f.isNormalSkill) {
var w = f.group;
if (w && !(w.heroID >= 0 && w.heroID != o.heroData.id)) {
var y = n.GetSkillGroup(f.proto.groupId);
if (!y || y.unlock.boolValue) {
var g = w.ids.indexOf(f.proto.id);
if (!(g > 0) || o.GetSkillProto(w.ids[g - 1])) {
if (w.activeSkill) {
if (s.length >= i && !s.contains(w)) continue;
} else if (p.length >= a && !p.contains(w)) continue;
t.push(f);
}
}
}
}
}
}
return t;
};
t.prototype.GetHeroSkill = function() {
var e = [];
if (l.LevelContext.Instance.CheckHeroSkillTime() >= 0) {
var t = u.default.Instance, n = l.LevelContext.Instance.mainPlayer, o = p.SkillConfig.GetHeroSkillGroupByHero(n.heroData.id);
if (o) for (var r = 0; r < o.ids.length; r++) {
var i = t.GetSkill(o.ids[r]);
i && !n.GetSkillProto(i.id) && e.push(i);
}
}
return e;
};
t.prototype.OnSetParams = function() {
this.heroSkillClickCnt = 0;
this.showHeroSkillTips = !1;
var e = this.GetValidSelections(l.LevelContext.Instance.levelProto.id > 2);
this.isBusy = !1;
this.UpdateUI(e);
l.LevelContext.Instance.runningCnt--;
};
t.prototype.update = function() {
this.noAdBtn.active = v.default.payable && !k.freeAd.boolValue;
};
t.prototype.UpdateUI = function(e, t) {
void 0 === t && (t = 0);
return __awaiter(this, void 0, void 0, function() {
var n, o, r, i, u, f, h, y, v, S, M, k, C, P, _, O, b, F, I, E, D, R, L, B, U;
return __generator(this, function(T) {
switch (T.label) {
case 0:
n = l.LevelContext.Instance;
o = n.mainPlayer;
r = t > 0 ? t : 3;
i = 0;
this.selections = [];
e.sort(function() {
return Math.random() > .5 ? 1 : -1;
});
u = n.CheckHeroSkillTime();
f = !1;
if (u >= 0 && (n.heroSkillAppear[u] > 0 || this.showHeroSkillTips)) {
if (1 == this.heroSkillClickCnt) f = !0; else if (0 == this.heroSkillClickCnt && s.default.RandomInt(0, 100) < c.Config.HeroSkillRate) {
f = !0;
n.heroSkillAppear[u]--;
} else {
this.showHeroSkillTips = 0 == this.heroSkillClickCnt;
this.showHeroSkillTips && n.heroSkillAppear[u]--;
}
if (f) {
this.showHeroSkillTips = !1;
if ((h = this.GetHeroSkill()).length > 0) {
h.sort(function() {
return Math.random() > .5 ? 1 : -1;
});
_ = h[0];
this.selections.push(_);
i++;
} else n.heroSkillAppear[u] = 0;
}
}
y = Math.min(r, e.length);
for (B = 0; B < e.length; B++) {
_ = e[B];
this.selections.push(_);
if (++i >= y) break;
}
v = o.maxActiveSkillCnt;
S = o.maxPasstiveSkillCnt;
M = o.allActiveSkill;
k = o.allPasstiveSkill;
C = M.length;
P = k.length;
for (B = 0; B < this.selections.length; B++) {
_ = this.selections[B];
O = _.group;
_.isNormalSkill && O && !M.contains(O) && !k.contains(O) && (O.activeSkill ? C++ : P++);
}
b = this.selections.length > 1 && a.default.RandomInt(0, 100) <= c.Config.GetAllLevelupRate && C <= v && P < S;
this.getAllNode.active = b && o.getAllLevelupCnt < c.Config.GetAllLevelupCnt;
this.changeNode.active = this.showHeroSkillTips || e.length > r && l.LevelContext.Instance.changeSkillCnt < c.Config.MaxChangeSkillCnt;
this.tipsNode.string = this.showHeroSkillTips ? "必出角色专属能力" : "必出4个技能";
this.tipsNode.node.color = this.showHeroSkillTips ? new cc.Color(250, 135, 0) : cc.Color.WHITE;
s.default.EnabledAllChild(this.content, !1);
F = 0;
I = function(e) {
var t = E.selections[e], n = s.default.GetOrCreateChild(e, E.content);
n.active = !0;
n.data = t;
if (t instanceof d.SkillData) {
var r = t.proto.desc, i = t.isSuperSkill, a = t.isHeroSkill, l = t.group;
n.findChild("bg1").active = !i && !a;
n.findChild("bg2").active = i || a;
var c = n.findChild("NameLabel"), u = n.findChild("New"), f = n.findChild("DescLabel"), h = n.findChild("super1"), m = n.findChild("super2"), w = n.findChild("LvStars"), y = n.findChild("ActiveFlag"), v = n.findChild("PassitiveFlag");
if (a) {
c.getComponent(cc.Label).string = t.proto.name;
s.default.SetImage(t.proto.iconPath, n.findChild("MainIcon").getComponent(cc.Sprite));
w.active = !1;
u.active = !1;
f.color = new cc.Color(241, 204, 106);
h.active = !1;
m.active = !1;
y.active = v.active = !1;
} else {
c.getComponent(cc.Label).string = l.name;
s.default.SetImage(l.iconPath, n.findChild("MainIcon").getComponent(cc.Sprite));
if (i) {
w.active = !1;
u.active = !0;
u.getComponent(cc.Label).string = "超武";
f.color = new cc.Color(241, 204, 106);
h.active = !1;
m.active = !1;
y.active = v.active = !1;
} else {
var S = l.GetLv(t.proto.id);
w.active = !0;
w.getComponent(g.default).SetLv(S - 1, l.ids.length, !0);
u.active = 1 == S;
u.getComponent(cc.Label).string = "新!";
f.color = new cc.Color(147, 188, 209);
var M = p.SkillConfig.GetSkillGroup(t.proto.groupId);
y.active = M.activeSkill;
v.active = !M.activeSkill;
var k = [];
p.SkillConfig.superSkillDepence.forEach(function(e) {
var n = p.SkillConfig.GetSkill(e.ids[0]).groupId, r = p.SkillConfig.GetSkill(e.ids[1]).groupId;
if (n == t.proto.groupId) {
var i = o.ContainGroup(n), a = o.ContainGroup(r);
!i && a && k.push(e.ids[1]);
} else if (r == t.proto.groupId) {
i = o.ContainGroup(n);
!(a = o.ContainGroup(r)) && i && k.push(e.ids[0]);
}
});
h.active = k.length > 0;
m.active = k.length > 1;
k.length > 0 && ((C = p.SkillConfig.GetSkill(k[0])) && (P = p.SkillConfig.GetSkillGroup(C.groupId)) ? s.default.SetImage(P.iconPath, h.findChild("icon").getComponent(cc.Sprite)) : h.active = !1);
if (k.length > 1) {
var C;
if (C = p.SkillConfig.GetSkill(k[1])) {
var P;
(P = p.SkillConfig.GetSkillGroup(C.groupId)) ? s.default.SetImage(P.iconPath, m.findChild("icon").getComponent(cc.Sprite)) : m.active = !1;
} else m.active = !1;
}
}
}
f.getComponent(cc.RichText).string = r;
F++;
}
};
E = this;
for (B = 0; B < this.selections.length; B++) I(B);
if (this.selections.length <= 0) {
D = [ w.BattleItemConfig.Coin100ItemId ];
for (B = 0; B < D.length; B++) {
R = D[B];
U = w.BattleItemConfig.GetItem(R);
(L = s.default.GetOrCreateChild(this.selections.length + B, this.content)).active = !0;
L.data = U;
L.findChild("bg1").active = !0;
L.findChild("bg2").active = !1;
s.default.SetImage(U.iconPath, L.findChild("MainIcon").getComponent(cc.Sprite));
L.findChild("NameLabel").getComponent(cc.Label).string = U.name;
L.findChild("DescLabel").getComponent(cc.RichText).string = m.TXT(U.desc);
L.findChild("Lv").getComponent(cc.Label).string = "";
F++;
}
}
this.cancelNode.active = 0 == F;
this.content.getComponent(cc.Layout).spacingX = F > 3 ? 18 : 40;
for (B = 0; B < this.content.children.length; B++) (U = this.content.children[B]).opacity = 0;
B = 0;
T.label = 1;

case 1:
if (!(B < this.content.children.length)) return [ 3, 4 ];
(U = this.content.children[B]).opacity = 255;
U.getComponent(cc.Animation).play();
return [ 4, this.waitForTime(.08) ];

case 2:
T.sent();
T.label = 3;

case 3:
B++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.ShowTips = function(e, t, n) {
var o = e.findChild("Head"), r = o.findChild("NameLabel").getComponent(cc.Label), i = o.findChild("MainIcon").getComponent(cc.Sprite), a = e.findChild("DescLabel").getComponent(cc.RichText);
if (n) {
r.string = t.name;
a.string = m.TXT(t.desc);
s.default.SetImage(t.iconPath, i);
} else {
var l = e.data;
r.string = l.proto.name;
a.string = m.TXT(l.proto.desc);
s.default.SetImage(l.proto.iconPath, i);
}
};
t.prototype.AddSkill = function() {
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
return __awaiter(this, void 0, void 0, function() {
var t, n, o, r;
return __generator(this, function(i) {
switch (i.label) {
case 0:
t = l.LevelContext.Instance.mainPlayer;
n = 0;
i.label = 1;

case 1:
if (!(n < e.length)) return [ 3, 4 ];
o = e[n];
return [ 4, t.AddSkill(o.id) ];

case 2:
i.sent();
p.SkillConfig.GetHeroSkillGroup(o.proto.groupId) && (r = l.LevelContext.Instance.CheckHeroSkillTime()) >= 0 && (l.LevelContext.Instance.heroSkillAppear[r] = 0);
console.log("AddSkill:", o.id);
i.label = 3;

case 3:
n++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.OnSelectBtnClick = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
t = e.target.parent.data;
return [ 4, this.HandleSelect(t) ];

case 1:
n.sent();
return [ 2 ];
}
});
});
};
t.prototype.OnSelectItemClick = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t;
return __generator(this, function() {
t = e.target.data;
this.HandleSelect(t);
return [ 2 ];
});
});
};
t.prototype.HandleSelect = function(e) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(t) {
switch (t.label) {
case 0:
if (this.isBusy) return [ 2 ];
this.isBusy = !0;
f.default.ShowView(h.default);
return e instanceof d.SkillData ? [ 4, this.AddSkill(e) ] : [ 3, 2 ];

case 1:
t.sent();
return [ 3, 3 ];

case 2:
if (e instanceof w.BattleItemProto) switch (e.id) {
case w.BattleItemConfig.Coin100ItemId:
l.LevelContext.Instance.AddCoin(100);
}
t.label = 3;

case 3:
l.LevelContext.Instance.runningCnt++;
f.default.HideView(h.default);
this.HideView();
M.LevelManager.Instance.SaveProcessData();
return [ 2 ];
}
});
});
};
t.prototype.OnGetAllSuc = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
f.default.ShowView(h.default);
l.LevelContext.Instance.mainPlayer.getAllLevelupCnt++;
e = 0;
n.label = 1;

case 1:
return e < this.selections.length ? (t = this.selections[e]) instanceof d.SkillData ? [ 4, this.AddSkill(t) ] : [ 3, 3 ] : [ 3, 4 ];

case 2:
n.sent();
n.label = 3;

case 3:
e++;
return [ 3, 1 ];

case 4:
l.LevelContext.Instance.runningCnt++;
f.default.HideView(h.default);
this.HideView();
M.LevelManager.Instance.SaveProcessData();
return [ 2 ];
}
});
});
};
t.prototype.OnChangeSuc = function() {
this.heroSkillClickCnt++;
l.LevelContext.Instance.changeSkillCnt++;
for (var e = __spreadArrays(this.selections), t = this.GetValidSelections(!0), n = function(n) {
var o = t[n];
t.length > 4 && null != e.find(function(e) {
return e.id == o.id;
}) && t.splice(n, 1);
}, o = t.length - 1; o >= 0; o--) n(o);
this.UpdateUI(t, this.showHeroSkillTips ? 3 : 4);
this.anim.play();
};
t.prototype.OnCancelClick = function() {
l.LevelContext.Instance.runningCnt++;
this.HideView();
};
t.prototype.OnSuperDescClick = function() {
f.default.ShowView(y.default);
};
t.prototype.OnNoAdClick = function() {
S.default.Show(!0);
};
__decorate([ _(cc.Node) ], t.prototype, "content", void 0);
__decorate([ _(cc.Node) ], t.prototype, "changeNode", void 0);
__decorate([ _(cc.Node) ], t.prototype, "getAllNode", void 0);
__decorate([ _(cc.Node) ], t.prototype, "cancelNode", void 0);
__decorate([ _(cc.Label) ], t.prototype, "tipsNode", void 0);
__decorate([ _(cc.Node) ], t.prototype, "noAdBtn", void 0);
__decorate([ _(cc.Animation) ], t.prototype, "anim", void 0);
return __decorate([ P, o.RegisterView("BattleLevelupUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = O;
cc._RF.pop();
}, {
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Service/PlatformService": void 0,
"../../Service/kl": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/LevelManager": "LevelManager",
"../Battle/Util": "Util",
"../Config/BattleItemConfig": "BattleItemConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"../Config/SkillConfig": "SkillConfig",
"../Config/SkillData": "SkillData",
"./LvStars": "LvStars",
"./NoAdUI": "NoAdUI",
"./SuperSkillUI": "SuperSkillUI"
} ],
BattlePauseUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ae6c6L44S5MTLi1edjDQlAU", "BattlePauseUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/SoundsManager"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Framework/UI/MessageBoxUI"), c = e("../Battle/LevelContext"), u = e("../Battle/Util"), p = e("../Config/Config"), d = e("../Config/GameModel"), f = e("../Config/SkillConfig"), h = e("./BattleResultUI"), m = e("./BattleStatisticsUI"), w = cc._decorator, y = w.ccclass, g = w.property, v = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.musicToggle = null;
t.effectToggle = null;
t.virbrateToggle = null;
t.fxToggle = null;
t.autoAtkToggle = null;
t.title = null;
t.activeSkills = null;
t.inactiveSkills = null;
t.heroSkills = null;
t.tongjiNode = null;
return t;
}
t.prototype.OnSetParams = function() {
c.LevelContext.Instance.runningCnt--;
this.musicToggle.isChecked = d.default.Instance.enableMusic;
this.effectToggle.isChecked = d.default.Instance.enableAudioEffect;
this.virbrateToggle.isChecked = d.default.Instance.enableVibrate;
this.fxToggle.isChecked = !d.default.Instance.enableFxEffect;
this.title.string = c.LevelContext.Instance.levelProto.name;
this.autoAtkToggle.isChecked = d.default.Instance.enableAutoAtk;
this.tongjiNode.active = p.Config.enableLevelStatistics;
var e = c.LevelContext.Instance.mainPlayer;
this.InitSkills(e.allActiveSkill, this.activeSkills, e.maxActiveSkillCnt);
this.InitSkills(e.allPasstiveSkill, this.inactiveSkills, e.maxPasstiveSkillCnt);
this.InitSkills(e.allHeroSkill.concat(e.allSuperSkill), this.heroSkills, e.maxHeroSkillCnt);
};
t.prototype.InitSkills = function(e, t, n) {
for (var o = c.LevelContext.Instance.mainPlayer, r = Math.max(n, t.childrenCount), i = 0; i < r; i++) {
var a = u.default.GetOrCreateChild(i, t);
a.active = !0;
var l = e[i], s = a.findChild("Icon");
if (l) {
s.active = !0;
u.default.SetImage(l.iconPath, s.getComponent(cc.Sprite));
} else s.active = !1;
a.active = i < n;
var p = a.findChild("LvStars");
if (l instanceof f.SkillGroupProto) {
for (var d = o.GetSkillLevel(l), h = 0; h < 5; h++) {
var m = u.default.GetOrCreateChild(h, p);
m.active = !0;
m.getChildByName("star").active = h < d;
}
p.active = !0;
} else p && (p.active = !1);
}
for (i = r; i < t.childrenCount; i++) t.children[i].active = !1;
};
t.prototype.OnContinueClick = function() {
c.LevelContext.Instance.runningCnt++;
this.HideView();
};
t.prototype.OnExitClick = function() {
var e = this;
s.default.ShowConfirmCancel("提示", "是否退出战斗?", function() {
e.HideView();
l.default.ShowView(h.default, !1);
});
};
t.prototype.OnMusicToggle = function(e) {
d.default.Instance.enableMusic = e.isChecked;
o.default.instance.enableMusic = d.default.Instance.enableMusic;
};
t.prototype.OnEffectToggle = function(e) {
d.default.Instance.enableAudioEffect = e.isChecked;
o.default.instance.enableEffects = d.default.Instance.enableAudioEffect;
};
t.prototype.OnVibrateToggle = function(e) {
d.default.Instance.enableVibrate = e.isChecked;
};
t.prototype.OnFXToggle = function(e) {
d.default.Instance.enableFxEffect = !e.isChecked;
};
t.prototype.OnAutoAtkToggle = function(e) {
d.default.Instance.enableAutoAtk = e.isChecked;
};
t.prototype.OnStatisticsClick = function() {
l.default.ShowView(m.default);
};
__decorate([ g(cc.Toggle) ], t.prototype, "musicToggle", void 0);
__decorate([ g(cc.Toggle) ], t.prototype, "effectToggle", void 0);
__decorate([ g(cc.Toggle) ], t.prototype, "virbrateToggle", void 0);
__decorate([ g(cc.Toggle) ], t.prototype, "fxToggle", void 0);
__decorate([ g(cc.Toggle) ], t.prototype, "autoAtkToggle", void 0);
__decorate([ g(cc.Label) ], t.prototype, "title", void 0);
__decorate([ g(cc.Node) ], t.prototype, "activeSkills", void 0);
__decorate([ g(cc.Node) ], t.prototype, "inactiveSkills", void 0);
__decorate([ g(cc.Node) ], t.prototype, "heroSkills", void 0);
__decorate([ g(cc.Node) ], t.prototype, "tongjiNode", void 0);
return __decorate([ y, r.RegisterView("BattlePauseUI", i.ViewLayer.NormalLayer) ], t);
}(a.default);
n.default = v;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/MessageBoxUI": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/Util": "Util",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/SkillConfig": "SkillConfig",
"./BattleResultUI": "BattleResultUI",
"./BattleStatisticsUI": "BattleStatisticsUI"
} ],
BattleReliveUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "410757MvjxCdrI0jl68h5dc", "BattleReliveUI");
var o = this;
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = e("../../Framework/Core/Resource/EffectManager"), i = e("../../Framework/Core/Resource/SoundsManager"), a = e("../../Framework/Core/Views/RegisterView"), l = e("../../Framework/Core/Views/ViewConfig"), s = e("../../Framework/Core/Views/ViewUIComponent"), c = e("../../Framework/Core/Views/ViewUIManager"), u = e("../../Service/PlatformService"), p = e("../Battle/LevelContext"), d = e("../Battle/LevelManager"), f = e("../Config/GameModel"), h = e("../Config/ShopConfig"), m = e("../Config/WeaponConfig"), w = e("../Config/WeaponData"), y = e("./BattleResultUI"), g = e("./FirstChargePackUI"), v = e("./RewardsUI"), S = cc._decorator, M = S.ccclass, k = S.property, C = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.freeNode = null;
t.adNode = null;
t.cancelNode = null;
t.firstChargeBtn = null;
return t;
}
t.prototype.OnSetParams = function() {
f.default.Instance.processSaveData = null;
f.default.SaveProgress();
p.LevelContext.Instance.runningCnt--;
var e = p.LevelContext.Instance.mainPlayer, t = e.reliveCnt < e.totalReliveCount;
this.freeNode.active = t;
this.cancelNode.active = this.adNode.active = !t;
var n = h.ShopConfig.GetPackData(h.ShopItemType.NewbiePack), o = f.default.Instance.GetWeapon(n.weapon.id), r = o.unlock.boolValue && o.classLevel.intValue >= n.weapon.classLevel;
this.firstChargeBtn.active = u.default.payable && !r && g.default.leftTime > 0;
};
t.prototype.OnReliveClick = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function(t) {
switch (t.label) {
case 0:
this.HideView();
e = p.LevelContext.Instance.mainPlayer;
return [ 4, r.EffectManager.PlayEffect(null, "Prefabs/NewSkill/Levelup", e.node, cc.Vec2.ZERO) ];

case 1:
t.sent();
i.default.instance.PlayEffect("levelup");
e.body.ClearForce();
e.StopJump();
e.body.isActive = !0;
e.view.opacity = 255;
e.health = 0;
e.AddHealth(e.maxHealth);
e.AddWudiTime(5);
e.reliveCnt++;
this.broadcastMessage("OnRelive");
p.LevelContext.Instance.runningCnt++;
return [ 4, p.LevelContext.Instance.waitForTime(.1) ];

case 2:
t.sent();
e.ShockAwayMonsters();
d.LevelManager.Instance.SaveProcessData();
return [ 2 ];
}
});
});
};
t.prototype.OnAdSuc = function() {
this.OnReliveClick();
};
t.prototype.OnCancelClick = function() {
this.HideView();
c.default.ShowView(y.default, !1);
};
t.prototype.OnFirstChargeClick = function() {
c.default.ShowView(g.default);
};
__decorate([ k(cc.Node) ], t.prototype, "freeNode", void 0);
__decorate([ k(cc.Node) ], t.prototype, "adNode", void 0);
__decorate([ k(cc.Node) ], t.prototype, "cancelNode", void 0);
__decorate([ k(cc.Node) ], t.prototype, "firstChargeBtn", void 0);
return __decorate([ M, a.RegisterView("BattleReliveUI", l.ViewLayer.PopupLayer) ], t);
}(s.default);
n.default = C;
u.default.OnPay.AddEvent(function(e, t, n) {
return __awaiter(o, void 0, void 0, function() {
var t, o, r, i;
return __generator(this, function(a) {
switch (a.label) {
case 0:
return e.name != h.ShopItemName[h.ShopItemType.NewbiePack] ? [ 3, 3 ] : n ? (t = c.default.GetView(C)) && t.isShowing ? [ 4, c.default.UntilHide(v.default) ] : [ 3, 3 ] : [ 2 ];

case 1:
a.sent();
o = h.ShopConfig.GetPackData(h.ShopItemType.NewbiePack);
(r = p.LevelContext.Instance.mainPlayer).RemoveWeapon();
(i = new w.WeaponData(m.WeaponConfig.GetWeapon(o.weapon.id))).classLevel.intValue = o.weapon.classLevel;
i.level.intValue = o.weapon.lv;
return [ 4, r.AddWeapon(i) ];

case 2:
a.sent();
r.ResetFeatures();
t.OnReliveClick();
a.label = 3;

case 3:
return [ 2 ];
}
});
});
});
cc._RF.pop();
}, {
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Service/PlatformService": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/LevelManager": "LevelManager",
"../Config/GameModel": "GameModel",
"../Config/ShopConfig": "ShopConfig",
"../Config/WeaponConfig": "WeaponConfig",
"../Config/WeaponData": "WeaponData",
"./BattleResultUI": "BattleResultUI",
"./FirstChargePackUI": "FirstChargePackUI",
"./RewardsUI": "RewardsUI"
} ],
BattleResultUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b45b5c9XKlIsabcDBOOR7iC", "BattleResultUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Core/Views/ViewUIManager"), l = e("../../Framework/Localize/LocalizeManager"), s = e("../../Framework/UI/MessageBoxUI"), c = e("../../Framework/UI/PromptUI"), u = e("../../Service/AccountManager"), p = e("../../Service/Extension/SubscribeOneTimeMessage"), d = e("../../Service/IPlatformProxy"), f = e("../../Service/Leaderboard"), h = e("../../Service/PlatformService"), m = e("../../Service/RemoteSetting"), w = e("../../Service/ShareAndAd/ShareControl"), y = e("../Battle/LevelContext"), g = e("../Battle/LevelManager"), v = e("../Battle/Util"), S = e("../Config/ArchivementConfig"), M = e("../Config/ChestConfig"), k = e("../Config/Config"), C = e("../Config/GameModel"), P = e("../Config/GiftConfig"), _ = e("../Config/LevelConfig"), O = e("../Config/SkillConfig"), b = e("./BattleStatisticsUI"), F = e("./ChapterPackUI"), I = e("./HallUI"), E = e("./ItemRedPnt"), D = e("./NoAdUI"), R = e("./TalentUI"), L = e("./TTShortcutUI"), B = e("./WeaponInfoUI"), U = e("./WeaponRedPnt"), T = e("./WeaponUI"), x = cc._decorator, V = x.ccclass, A = x.property, N = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.winNode = null;
t.winEftNode = null;
t.loseNode = null;
t.rewardContent = null;
t.heroNode = null;
t.heroMat = null;
t.heroName = null;
t.gameTime = null;
t.coins = null;
t.heroLevel = null;
t.killCount = null;
t.confirmBtn = null;
t.powerupBtn = null;
t.videoShareBtn = null;
t.videoShareReward = null;
t.newRecordNode = null;
t.itemTemplate = null;
t.pieceTemplate = null;
t.tongjiNode = null;
t.coinNum = 0;
t.rewards = [];
t.isWin = !1;
t.isNewRecord = !1;
t.isNewChapter = !1;
return t;
}
n = t;
t.prototype.OnSetParams = function(e) {
this.isWin = e;
this.isNewChapter = !1;
var t = y.LevelContext.Instance;
t.runningCnt--;
this.winEftNode.active = this.winNode.active = e;
this.loseNode.active = !e;
this.videoShareBtn.active = h.default.platformType == d.PlatformType.TouTiao && h.default.videoRecoder.recordTime > 3e3;
this.videoShareReward.active = C.default.Instance.shareVideoCnt.value > 0;
this.tongjiNode.active = k.Config.enableLevelStatistics;
var n = t.mainPlayer;
n.wuDiLeftTime += 99999;
this.rewards.clear();
this.CalcCoins();
this.CalcBluePrints();
this.CalcPieces();
this.broadcastMessage("OnBattleResult", t.levelProto.id, n.heroData.proto.id, e, t.mode);
this.CalcChapter();
this.CalcCopyLevel();
this.GetReward();
C.default.Save();
C.default.Instance.processSaveData = null;
C.default.SaveProgress();
B.default.UpdateHeroNode(this.heroNode, n.heroData, n.weaponData, null, this.heroMat);
this.heroName.string = n.heroData.proto.name;
this.gameTime.string = v.default.FormatTimeMMSS(t.totalTime);
this.coins.string = this.coinNum.toFixed(0);
this.heroLevel.string = l.TXT("等级:") + n.level;
this.killCount.string = t.killEnemyCnt.toFixed(0);
this.newRecordNode.active = this.isNewRecord;
this.rewardContent.destroyAllChildren();
for (var o = 0; o < this.rewards.length; o++) {
var r = this.rewards[o], i = r.unlockType == S.UnlockType.Piece ? cc.instantiate(this.pieceTemplate) : cc.instantiate(this.itemTemplate);
i.active = !0;
i.setPosition(cc.Vec2.ZERO);
i.setParent(this.rewardContent);
i.findChild("Number").getComponent(cc.Label).string = "x" + r.count;
v.default.SetImage(r.iconPath, i.findChild("Icon").getComponent(cc.Sprite));
}
this.pieceTemplate.active = !1;
this.itemTemplate.active = !1;
var a = E.default.redCnt > 0 || U.default.redCnt > 0;
this.powerupBtn.active = a && !this.isWin;
if (u.default.hasUserInfo && t.totalTime >= 180) {
var s = [];
for (o = 0; o < n.equipDatas.length; o++) {
var c = n.equipDatas[o];
s.push(c.id);
}
var p = {
heroId: n.heroData.id,
weaponId: n.weaponData.proto.id,
weaponClassLevel: n.weaponData.classLevel.intValue,
equipIds: s
};
if (t.mode == k.BattleMode.Endless) f.default.SubmitScoreEx(k.Config.RankEndless, t.totalTime, p, k.Config.LeaderboardType); else if (t.mode == k.BattleMode.Level) {
t.killEnemyCnt < 5e5 && f.default.SubmitScoreEx(k.Config.RankKill, t.killEnemyCnt, p, k.Config.LeaderboardType);
n.level < 5e3 && f.default.SubmitScoreEx(k.Config.RankLevel, n.level, p, k.Config.LeaderboardType);
}
}
h.default.platformType == d.PlatformType.TouTiao && h.default.videoRecoder.Stop();
var g = m.default.Get("ShowScreenAdDelay", 0);
g >= 0 && this.scheduleOnce(function() {
w.default.ShowScreenAd("战斗结束");
}, g);
};
t.prototype.CalcCoins = function() {
var e = y.LevelContext.Instance, t = e.mainPlayer, n = m.default.Get("minCoinSec", 120);
if (e.mode == k.BattleMode.Level) {
var o = e.totalTime < n ? 0 : .6 * e.totalTime;
this.coinNum = Math.floor(e.totalCoins + 1 * (o + .13 * e.killEnemyCnt + 15 * (t.level - 1)));
} else if (e.mode == k.BattleMode.Endless) {
o = e.totalTime < n ? 0 : .5 * e.totalTime;
this.coinNum = Math.floor(e.totalCoins + (o + .08 * e.killEnemyCnt + 13 * (t.level - 1)));
} else this.coinNum = Math.floor(e.totalCoins + (.5 * e.totalTime + .08 * e.killEnemyCnt + 13 * (t.level - 1)));
this.coinNum = Math.floor(this.coinNum * (1 + .01 * t.GetFeature(O.SkillFeature.BattleCoinUpPercent)));
};
t.prototype.CalcBluePrints = function() {
var e = y.LevelContext.Instance;
if (e.totalEquipBlueprints > 0) {
C.default.Instance.equipmentBlueprintDropCount.value += e.totalEquipBlueprints;
this.rewards.push(new P.RewardProto(S.UnlockType.EquipmentBluePrint, e.totalEquipBlueprints));
}
var t = e.levelProto.GetBluePrintRewards(e.totalTime);
if (t) for (var n = M.ChestConfig.GetBlueprintRewards(M.ChestConfig.shopWeaponStuffParam, t.count, [ t.types, t.types ], 0), o = 0; o < n.length; o++) this.rewards.push(n[o]);
};
t.prototype.CalcPieces = function() {
if (this.isWin) {
var e = y.LevelContext.Instance.levelProto.pieceReward;
if (e) for (var t = M.ChestConfig.GetWeaponRewards(M.ChestConfig.shopWeaponPieceParam, 0, e.count, e.types, !1), n = 0; n < t.length; n++) this.rewards.push(t[n]);
}
};
t.prototype.CalcChapter = function() {
var e = y.LevelContext.Instance, t = C.default.Instance.GetLevel(e.levelProto.id);
if (t) {
this.isNewRecord = e.totalTime > t.maxLevelTime;
e.totalTime && (t.maxLevelTime = Math.max(t.maxLevelTime, e.totalTime));
if (this.isWin) {
t.isBossKilled = !0;
var n = _.LevelConfig.GetChapter(t.proto.chapter);
if (n) {
for (var o = !1, r = 0; r < n.levels.length; r++) if (n.levels[r] == t.id && !(o = r == n.levels.length - 1)) {
(i = C.default.Instance.GetLevel(n.levels[r + 1])) && (i.unlock = !0);
break;
}
if (o && (n = _.LevelConfig.GetChapter(t.proto.chapter + 1))) {
var i;
if (i = C.default.Instance.GetLevel(n.levels[0])) {
i.unlock = !0;
this.isNewChapter = !0;
}
}
}
}
}
};
t.prototype.CalcCopyLevel = function() {
if (this.isWin) switch (y.LevelContext.Instance.mode) {
case k.BattleMode.Endless:
break;

case k.BattleMode.Fragment1:
C.default.Instance.shiLianLevel < 2 && (C.default.Instance.shiLianLevel = 2);
break;

case k.BattleMode.Fragment2:
C.default.Instance.shiLianLevel < 3 && (C.default.Instance.shiLianLevel = 3);
break;

case k.BattleMode.Fragment3:
C.default.Instance.shiLianLevel < 4 && (C.default.Instance.shiLianLevel = 4);
}
};
t.prototype.GetReward = function() {
C.default.Instance.AddCoin(this.coinNum, "战斗结算");
for (var e = 0; e < this.rewards.length; e++) this.rewards[e].GetReward("战斗结算");
};
t.prototype.Back = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
g.LevelManager.Instance.Finish(this.isWin);
return n.hasShowSubscrib ? [ 4, a.default.ShowView(I.default) ] : [ 3, 2 ];

case 1:
e.sent();
h.default.proxy.createShortCut && h.default.proxy.hasShortcutInstalled(function(e) {
var t = e == d.PlatformResult.Fail, n = h.default.platformType != d.PlatformType.TouTiao || h.default.subPlatformType == d.SubPlatformType.DouYin;
t && !C.default.Instance.ttGotShortcutReward && n && a.default.ShowView(L.default);
});
return [ 3, 4 ];

case 2:
this.ShowSubscribe();
return [ 4, a.default.ShowView(I.default) ];

case 3:
e.sent();
e.label = 4;

case 4:
this.isNewChapter && C.default.Instance.validChapterPackCnt > 0 && a.default.ShowView(F.default);
return [ 2 ];
}
});
});
};
t.prototype.OnBackClick = function() {
this.Back();
D.default.Show(!1);
};
t.prototype.OnPowerupClick = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.Back() ];

case 1:
e.sent();
E.default.redCnt > 0 ? a.default.ShowView(R.default) : a.default.ShowView(T.default);
return [ 2 ];
}
});
});
};
t.prototype.OnShareVideoSuc = function() {
this.videoShareBtn.active = !1;
if (!(C.default.Instance.shareVideoCnt.value <= 0)) {
C.default.Instance.AddCoin(300, "视频分享");
C.default.Instance.shareVideoCnt.value--;
s.default.ShowConfirm("恭喜", "获得300金币");
}
};
t.prototype.OnShareVideoFailed = function(e) {
s.default.ShowConfirm("提示", e);
};
t.prototype.OnCreated = function() {
p.default.OnSubscribeSuccessDelegate.Add(function() {
C.default.Instance.ttSubscribe = !0;
var e = h.default.platformType == d.PlatformType.TouTiao ? "订阅成功，请留意抖音【消息】-【游戏通知】" : "订阅成功";
c.default.Show(e);
});
};
t.prototype.ShowSubscribe = function() {
n.hasShowSubscrib = !0;
m.default.Get("SubscribeTemplateIds", null) && p.default.SubscribeIds([ "versionUpdate" ], 1);
};
t.prototype.OnStatisticsClick = function() {
a.default.ShowView(b.default);
};
var n;
t.hasShowSubscrib = !1;
__decorate([ A(cc.Node) ], t.prototype, "winNode", void 0);
__decorate([ A(cc.Node) ], t.prototype, "winEftNode", void 0);
__decorate([ A(cc.Node) ], t.prototype, "loseNode", void 0);
__decorate([ A(cc.Node) ], t.prototype, "rewardContent", void 0);
__decorate([ A(cc.Node) ], t.prototype, "heroNode", void 0);
__decorate([ A(cc.Material) ], t.prototype, "heroMat", void 0);
__decorate([ A(cc.Label) ], t.prototype, "heroName", void 0);
__decorate([ A(cc.Label) ], t.prototype, "gameTime", void 0);
__decorate([ A(cc.Label) ], t.prototype, "coins", void 0);
__decorate([ A(cc.Label) ], t.prototype, "heroLevel", void 0);
__decorate([ A(cc.Label) ], t.prototype, "killCount", void 0);
__decorate([ A(cc.Node) ], t.prototype, "confirmBtn", void 0);
__decorate([ A(cc.Node) ], t.prototype, "powerupBtn", void 0);
__decorate([ A(cc.Node) ], t.prototype, "videoShareBtn", void 0);
__decorate([ A(cc.Node) ], t.prototype, "videoShareReward", void 0);
__decorate([ A(cc.Node) ], t.prototype, "newRecordNode", void 0);
__decorate([ A(cc.Node) ], t.prototype, "itemTemplate", void 0);
__decorate([ A(cc.Node) ], t.prototype, "pieceTemplate", void 0);
__decorate([ A(cc.Node) ], t.prototype, "tongjiNode", void 0);
return n = __decorate([ V, o.RegisterView("BattleResultUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = N;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Framework/UI/MessageBoxUI": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/AccountManager": void 0,
"../../Service/Extension/SubscribeOneTimeMessage": void 0,
"../../Service/IPlatformProxy": void 0,
"../../Service/Leaderboard": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../../Service/ShareAndAd/ShareControl": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/LevelManager": "LevelManager",
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/ChestConfig": "ChestConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"../Config/LevelConfig": "LevelConfig",
"../Config/SkillConfig": "SkillConfig",
"./BattleStatisticsUI": "BattleStatisticsUI",
"./ChapterPackUI": "ChapterPackUI",
"./HallUI": "HallUI",
"./ItemRedPnt": "ItemRedPnt",
"./NoAdUI": "NoAdUI",
"./TTShortcutUI": "TTShortcutUI",
"./TalentUI": "TalentUI",
"./WeaponInfoUI": "WeaponInfoUI",
"./WeaponRedPnt": "WeaponRedPnt",
"./WeaponUI": "WeaponUI"
} ],
BattleSkillData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "39b0fdHAgNOwq8iQgbl9aRy", "BattleSkillData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BattleSkillData = void 0;
var o = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.seckillRatio = 0;
t.skill = null;
return t;
}
t.Clone = function(e, n) {
void 0 === n && (n = !1);
var o = new t();
o.Copy(e, n);
return o;
};
return t;
}(e("./SkillData").SkillData);
n.BattleSkillData = o;
cc._RF.pop();
}, {
"./SkillData": "SkillData"
} ],
BattleStartPowerUpUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f7a1f9Ng/hI3ZuvJIccVORP", "BattleStartPowerUpUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/UI/PromptUI"), l = e("../../Service/RemoteSetting"), s = e("../Battle/LevelContext"), c = e("../Config/SkillConfig"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.mode1 = null;
t.mode2 = null;
t.mode = 0;
return t;
}
t.prototype.onEnable = function() {
s.LevelContext.Instance.runningCnt--;
};
t.prototype.onDisable = function() {
s.LevelContext.Instance.runningCnt++;
};
t.prototype.OnSetParams = function() {
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
this.mode = l.default.Get("BattleStartPowerUpMode", 2);
this.mode1.active = 1 == this.mode;
this.mode2.active = 2 == this.mode;
};
t.prototype.OnAdSuc = function() {
this.HideView();
var e = s.LevelContext.Instance.mainPlayer;
if (1 == this.mode) {
for (var t = 0, n = 0; n < 3; n++) t += e.heroData.proto.GetLevelExp(e.level + n + 1);
e.AddExp(t);
} else {
e.AddFeatureEx(c.SkillFeature.BulletNumUp, 1);
e.AddFeatureEx(c.SkillFeature.SummonBulletNumUp, 1);
a.default.Show("成功获得子弹援助!");
}
};
__decorate([ d(cc.Node) ], t.prototype, "mode1", void 0);
__decorate([ d(cc.Node) ], t.prototype, "mode2", void 0);
return __decorate([ p, o.RegisterView("BattleStartPowerUpUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = f;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/RemoteSetting": void 0,
"../Battle/LevelContext": "LevelContext",
"../Config/SkillConfig": "SkillConfig"
} ],
BattleStatisticsUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "aa5bfo11hVHzYgKoFjWVMkm", "BattleStatisticsUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../Battle/LevelContext"), l = e("../Battle/LevelStatistics"), s = e("../Battle/Util"), c = e("../Config/EquipmentConfig"), u = e("../Config/HeroConfig"), p = e("../Config/SkillConfig"), d = e("../Config/TalentConfig"), f = e("../Config/WeaponConfig"), h = cc._decorator, m = h.ccclass, w = h.property, y = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.skillsContent = null;
return t;
}
t.prototype.OnSetParams = function() {
var e = a.LevelContext.Instance.mainPlayer, t = [];
this.skillsContent.enabledAllChild(!1);
for (var n = [], o = 0; o < l.default.totalStatistice.skillContextDamageStatistics.length; o++) {
var r = l.default.totalStatistice.skillContextDamageStatistics[o], i = {
skillId: r.skillId,
skillName: r.skillName,
damage: r.damage,
iconPath: null,
progress: 0,
lv: 0
}, h = p.SkillConfig.GetSkillGroup(r.groupId);
if (h) {
if (t.indexOf(h.id) >= 0) continue;
t.push(h.id);
i.skillName = h.name;
i.damage = 0;
i.iconPath = h.iconPath;
var m = 5;
i.lv = e.GetSkillLevel(h);
for (var w = 0; w < m; w++) if (w < i.lv) {
var y = p.SkillConfig.GetSkill(h.ids[w]), g = l.default.totalStatistice.GetSkillStatistics(y.id, y.name);
g && (i.damage += g.damage);
}
} else {
var v = p.SkillConfig.GetSkill(r.skillId);
v && (i.iconPath = v.iconPath);
var S = u.HeroConfig.GetHeroBySkillId(r.skillId);
S && (i.iconPath = S.headIcon);
var M = d.TalentConfig.GetTalentBySkillId(r.skillId);
M && (i.iconPath = M.iconPath);
f.WeaponConfig.GetWeaponBySkillId(r.skillId) && (i.iconPath = e.weaponData.iconPath);
var k = c.EquipmentConfig.GetEquipmentBySkillId(r.skillId);
k && (i.iconPath = k.iconPath);
}
i.progress = i.damage / l.default.totalStatistice.totalDamage;
n.push(i);
}
n.sort(function(e, t) {
return t.damage - e.damage;
});
for (o = 0; o < n.length; o++) {
i = n[o];
var C = s.default.GetOrCreateChild(o, this.skillsContent);
C.active = !0;
var P = C.findChild("LvStars");
m = 5;
P.active = i.lv > 0;
P.enabledAllChild(!1);
for (w = 0; w < m; w++) {
var _ = s.default.GetOrCreateChild(w, P);
_.active = !0;
_.getChildByName("star").active = w < i.lv;
}
this.SetSkill(C, i.iconPath, i.skillName, i.damage, i.progress);
}
};
t.prototype.SetSkill = function(e, t, n, o, r) {
s.default.SetImage(t, e.findChild("Icon").getComponent(cc.Sprite));
e.findChild("NameLabel").getComponent(cc.Label).string = n;
e.findChild("DamageLabel").getComponent(cc.Label).string = "伤害:" + o.toFixed(0);
e.findChild("ProgressBar").getComponent(cc.ProgressBar).progress = r;
e.findChild("RatioLabel").getComponent(cc.Label).string = (100 * r).toFixed(0) + "%";
};
t.prototype.OnCloseClick = function() {
this.HideView();
};
__decorate([ w(cc.Node) ], t.prototype, "skillsContent", void 0);
return __decorate([ m, o.RegisterView("BattleStatisticsUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = y;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/LevelStatistics": "LevelStatistics",
"../Battle/Util": "Util",
"../Config/EquipmentConfig": "EquipmentConfig",
"../Config/HeroConfig": "HeroConfig",
"../Config/SkillConfig": "SkillConfig",
"../Config/TalentConfig": "TalentConfig",
"../Config/WeaponConfig": "WeaponConfig"
} ],
BattleUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f00542bZzlHuaU102pRYwqx", "BattleUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Service/Extension/Input/TouchInput"), c = e("../../Service/RemoteSetting"), u = e("../Battle/LevelContext"), p = e("../Battle/Util"), d = e("../Config/Config"), f = e("../Messaging/MessageBroadcastReceiver"), h = e("./BattlePauseUI"), m = e("../Config/SkillConfig"), w = e("../Config/GameModel"), y = e("../Config/FateCoinConfig"), g = e("../Config/LevelConfig"), v = cc._decorator, S = v.ccclass, M = v.property, k = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.verLabel = null;
t.inputNode = null;
t.expBar = null;
t.hpBar = null;
t.dashCD = null;
t.dashIcon = null;
t.timeLabel = null;
t.activeSkills = null;
t.inactiveSkills = null;
t.heroSkills = null;
t.levelLabel = null;
t.dashLabel = null;
t.bulletLabel = null;
t.lowHpWarn = null;
t.crazyCoinBar = null;
t.crazyCoinValue = null;
t.crazyCoinTime = null;
t.fateCoinCD = null;
t.fateCoinLabel = null;
t.opRoot = null;
t.levelProgress = null;
t.assetCntLabel = null;
t.totalNodeCntLabel = null;
t.hasInput = !1;
t.curLeftSkillCD = 0;
t.curLeftFateCD = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
f.AddBroadcastReceiver(this);
s.default.instance.BindInputSource(this.inputNode);
cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, function(e) {
if (u.LevelContext.Instance) {
var t = u.LevelContext.Instance.joystick;
switch (e.keyCode) {
case cc.macro.KEY.w:
case cc.macro.KEY.up:
t.y = 1;
break;

case cc.macro.KEY.s:
case cc.macro.KEY.down:
t.y = -1;
break;

case cc.macro.KEY.a:
case cc.macro.KEY.left:
t.x = -1;
break;

case cc.macro.KEY.d:
case cc.macro.KEY.right:
t.x = 1;
}
}
});
cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, function(e) {
if (u.LevelContext.Instance) {
var t = u.LevelContext.Instance.joystick;
switch (e.keyCode) {
case cc.macro.KEY.w:
case cc.macro.KEY.up:
1 == t.y && (t.y = 0);
break;

case cc.macro.KEY.s:
case cc.macro.KEY.down:
-1 == t.y && (t.y = 0);
break;

case cc.macro.KEY.a:
case cc.macro.KEY.left:
-1 == t.x && (t.x = 0);
break;

case cc.macro.KEY.d:
case cc.macro.KEY.right:
1 == t.x && (t.x = 0);
}
}
});
};
t.prototype.start = function() {
var e = this;
this.scheduleOnce(function() {
e.ResizeBar(e.expBar);
}, .01);
this.schedule(function() {
u.LevelContext.Instance && (e.timeLabel.string = p.default.FormatTimeMMSS(u.LevelContext.Instance.totalTime));
}, 1, cc.macro.REPEAT_FOREVER);
};
t.prototype.update = function(e) {
if (u.LevelContext.Instance) {
var t = u.LevelContext.Instance.mainPlayer;
if (t) {
var n = t.dashSkill.curCD, r = 0 == t.dashSkill.dashCdTime ? 0 : (n - t.dashSkill.dashCdTime) / n;
this.dashCD.fillRange = r;
this.dashIcon.node.opacity = t.dashSkill.leftDashCnt > 0 ? 255 : 80;
this.lowHpWarn.active = t.health <= 1 && !t.dead;
this.opRoot.active = null == t.vehicle;
var i = w.default.Instance.fateCoinCnt.intValue;
if (i > 0 && d.Config.EnableEndless) {
this.fateCoinLabel.node.parent.active = !0;
this.fateCoinLabel.string = i.toFixed(0);
this.fateCoinCD.fillRange = this.curLeftFateCD / y.FateCoinConfig.CD;
} else this.fateCoinLabel.node.parent.active = !1;
this.curLeftFateCD -= e;
this.curLeftFateCD = Math.max(0, this.curLeftFateCD);
var a = u.LevelContext.Instance.crazyCoinLeftTime > 0;
this.crazyCoinBar.node.active = a;
if (a) {
this.ResizeBar(this.crazyCoinBar);
this.crazyCoinValue.string = u.LevelContext.Instance.crazyCoins.toFixed(0);
this.crazyCoinTime.string = p.default.FormatTimeMMSSMsMs(1e3 * u.LevelContext.Instance.crazyCoinLeftTime);
this.crazyCoinBar.progress = u.LevelContext.Instance.crazyCoinLeftTime / t.crazyCoinTime;
}
this.UpdateProgressNodes();
if (c.default.isDebug) {
this.assetCntLabel.string = u.LevelContext.Instance.enemies.length.toFixed(0);
this.totalNodeCntLabel.string = o.default.Default.totalNodeCount.toFixed(0);
}
}
}
};
t.prototype.UpdateHeathBar = function() {
for (var e = u.LevelContext.Instance.mainPlayer, t = Math.ceil(e.maxHealth), n = 0; n < t; n++) {
var o = p.default.GetOrCreateChild(n, this.hpBar);
o.active = !0;
var r = e.health;
o.children[0].getComponent(cc.Sprite).fillRange = r < 1 && 0 == n ? r : Math.max(0, r - n);
}
for (n = t; n < this.hpBar.childrenCount; n++) this.hpBar.children[n].active = !1;
};
t.prototype.OnSetParams = function() {
for (var e = this, t = 0; t < u.LevelContext.Instance.mainPlayer.maxActiveSkillCnt; t++) p.default.GetOrCreateChild(t, this.activeSkills);
for (t = 0; t < u.LevelContext.Instance.mainPlayer.maxPasstiveSkillCnt; t++) p.default.GetOrCreateChild(t, this.inactiveSkills);
for (t = 0; t < u.LevelContext.Instance.mainPlayer.maxHeroSkillCnt; t++) p.default.GetOrCreateChild(t, this.heroSkills);
this.hasInput = !1;
this.curLeftSkillCD = 0;
this.assetCntLabel.node.parent.parent.active = !1;
this.crazyCoinBar.node.active = !1;
this.levelProgress.node.active = u.LevelContext.Instance.mode == d.BattleMode.Level;
this.curLeftFateCD = 0;
var n = u.LevelContext.Instance.mainPlayer;
this.InitSkills(n.allActiveSkill, this.activeSkills, n.maxActiveSkillCnt);
this.InitSkills(n.allPasstiveSkill, this.inactiveSkills, n.maxPasstiveSkillCnt);
this.InitSkills(n.allHeroSkill, this.heroSkills, n.maxHeroSkillCnt);
this.UpdateLabels();
this.UpdateHeathBar();
this.verLabel.string = c.default.version;
this.timeLabel.string = p.default.FormatTimeMMSS(u.LevelContext.Instance.totalTime);
this.scheduleOnce(function() {
e.UpdateLabels();
e.UpdateHeathBar();
}, .3);
};
t.prototype.ResizeBar = function(e) {
e.totalLength = e.node.width;
e.barSprite.node.x = -e.node.width / 2;
};
t.prototype.UpdateLabels = function() {
this.OnBattleSkillLevelUp();
this.OnExpChanged();
this.OnDashReload();
this.OnPlayerFireBullet();
};
t.prototype.OnHealthChanged = function(e) {
e.isMainPlayer && this.UpdateHeathBar();
};
t.prototype.OnDamage = function(e) {
e.isMainPlayer && this.UpdateHeathBar();
};
t.prototype.OnLevelStart = function() {
u.LevelContext.Instance.mainPlayer.AddListener(this.node);
};
t.prototype.OnLevelFinish = function() {
u.LevelContext.Instance.mainPlayer.RemoveListener(this.node);
};
t.prototype.OnBulletReloadEnd = function() {
this.OnBulletNumChanged();
};
t.prototype.OnBulletNumChanged = function() {
var e = u.LevelContext.Instance.mainPlayer;
this.bulletLabel.string = e.bulletNum + "/" + e.maxBulletNum;
};
t.prototype.OnPlayerFireBullet = function() {
this.OnBulletNumChanged();
};
t.prototype.OnBattleSkillLevelUp = function() {
this.levelLabel.string = u.LevelContext.Instance.mainPlayer.level.toFixed(0);
};
t.prototype.OnDashReload = function() {
this.dashLabel.string = u.LevelContext.Instance.mainPlayer.dashSkill.leftDashCnt.toFixed(0);
};
t.prototype.OnDashBegin = function() {
this.OnDashReload();
};
t.prototype.OnExpChanged = function() {
var e = u.LevelContext.Instance.mainPlayer;
this.expBar.progress = e.exp / e.heroData.proto.GetLevelExp(e.level + 1);
};
t.prototype.OnAddSkill = function(e) {
var t = u.LevelContext.Instance.mainPlayer, n = e.group;
m.SkillConfig.GetSkillGroup(e.proto.groupId);
n && (e.isNormalSkill ? n.activeSkill ? this.InitSkills(t.allActiveSkill, this.activeSkills, t.maxActiveSkillCnt) : this.InitSkills(t.allPasstiveSkill, this.inactiveSkills, t.maxPasstiveSkillCnt) : e.isHeroSkill && this.InitSkills(t.allHeroSkill, this.heroSkills, t.maxHeroSkillCnt));
};
t.prototype.OnRemoveSkill = function(e) {
var t = u.LevelContext.Instance.mainPlayer, n = w.default.Instance.GetSkill(e);
if (n) {
var o = n.group;
o && (n.isNormalSkill ? o.activeSkill ? this.InitSkills(t.allActiveSkill, this.activeSkills, t.maxActiveSkillCnt) : this.InitSkills(t.allPasstiveSkill, this.inactiveSkills, t.maxPasstiveSkillCnt) : n.isHeroSkill && this.InitSkills(t.allHeroSkill, this.heroSkills, t.maxHeroSkillCnt));
}
};
t.prototype.OnAddSkillSlot = function() {
var e = u.LevelContext.Instance.mainPlayer;
this.InitSkills(e.allPasstiveSkill, this.inactiveSkills, e.maxPasstiveSkillCnt);
};
t.prototype.UpdateProgressNodes = function() {
var e = g.LevelConfig.GetLevel(u.LevelContext.Instance.levelProto.id).normal.onceSpawnMonster, t = e[e.length - 1];
if (t) {
var n = t.sec;
this.levelProgress.progress = Math.min(1, u.LevelContext.Instance.totalTime / n);
}
};
t.prototype.InitSkills = function(e, t, n) {
for (var o = Math.max(n, t.childrenCount), r = 0; r < o; r++) {
var i = p.default.GetOrCreateChild(r, t);
i.active = !0;
var a = e[r], l = i.findChild("Icon");
if (a) {
l.active = !0;
p.default.SetImage(a.iconPath, l.getComponent(cc.Sprite));
} else l.active = !1;
i.active = r < n;
}
for (r = o; r < t.childrenCount; r++) t.children[r].active = !1;
};
t.prototype.OnDashClick = function() {
var e = u.LevelContext.Instance.mainPlayer;
if (!(e.controlableCnt <= 0 || null != e.vehicle || this.dashCD.fillRange > 0 && e.dashSkill.leftDashCnt <= 0)) {
e.Dash(e.input.equals(cc.Vec2.ZERO) ? e.fireForward : e.body.forward);
p.default.Vibrate();
}
};
t.prototype.OnPauseClick = function() {
l.default.ShowView(h.default);
};
t.prototype.OnFateCoinClick = function() {
if (!(this.curLeftFateCD > 0)) {
this.curLeftFateCD = y.FateCoinConfig.CD;
w.default.Instance.fateCoinCnt.intValue -= 1;
y.FateCoinConfig.GetFateCoinAction()();
}
};
__decorate([ M(cc.Label) ], t.prototype, "verLabel", void 0);
__decorate([ M(cc.Node) ], t.prototype, "inputNode", void 0);
__decorate([ M(cc.ProgressBar) ], t.prototype, "expBar", void 0);
__decorate([ M(cc.Node) ], t.prototype, "hpBar", void 0);
__decorate([ M(cc.Sprite) ], t.prototype, "dashCD", void 0);
__decorate([ M(cc.Sprite) ], t.prototype, "dashIcon", void 0);
__decorate([ M(cc.Label) ], t.prototype, "timeLabel", void 0);
__decorate([ M(cc.Node) ], t.prototype, "activeSkills", void 0);
__decorate([ M(cc.Node) ], t.prototype, "inactiveSkills", void 0);
__decorate([ M(cc.Node) ], t.prototype, "heroSkills", void 0);
__decorate([ M(cc.Label) ], t.prototype, "levelLabel", void 0);
__decorate([ M(cc.Label) ], t.prototype, "dashLabel", void 0);
__decorate([ M(cc.Label) ], t.prototype, "bulletLabel", void 0);
__decorate([ M(cc.Node) ], t.prototype, "lowHpWarn", void 0);
__decorate([ M(cc.ProgressBar) ], t.prototype, "crazyCoinBar", void 0);
__decorate([ M(cc.Label) ], t.prototype, "crazyCoinValue", void 0);
__decorate([ M(cc.Label) ], t.prototype, "crazyCoinTime", void 0);
__decorate([ M(cc.Sprite) ], t.prototype, "fateCoinCD", void 0);
__decorate([ M(cc.Label) ], t.prototype, "fateCoinLabel", void 0);
__decorate([ M(cc.Node) ], t.prototype, "opRoot", void 0);
__decorate([ M(cc.ProgressBar) ], t.prototype, "levelProgress", void 0);
__decorate([ M(cc.Label) ], t.prototype, "assetCntLabel", void 0);
__decorate([ M(cc.Label) ], t.prototype, "totalNodeCntLabel", void 0);
__decorate([ f.BroadcastHandler ], t.prototype, "OnLevelStart", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnLevelFinish", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnBulletReloadEnd", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnBulletNumChanged", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnPlayerFireBullet", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnBattleSkillLevelUp", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnDashReload", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnDashBegin", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnExpChanged", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnAddSkill", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnRemoveSkill", null);
__decorate([ f.BroadcastHandler ], t.prototype, "OnAddSkillSlot", null);
return __decorate([ S, r.RegisterView("BattleUI", i.ViewLayer.NormalLayer, i.ViewShowRule.HideAllView, i.ViewHideRule.SaveToStack) ], t);
}(a.default);
n.default = k;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Service/Extension/Input/TouchInput": void 0,
"../../Service/RemoteSetting": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/Util": "Util",
"../Config/Config": "Config",
"../Config/FateCoinConfig": "FateCoinConfig",
"../Config/GameModel": "GameModel",
"../Config/LevelConfig": "LevelConfig",
"../Config/SkillConfig": "SkillConfig",
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./BattlePauseUI": "BattlePauseUI"
} ],
BattleWeaponShopConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2cd9doFTG9HkY8CkPaMJ+T8", "BattleWeaponShopConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BattleWeaponShopConfig = n.BattleWeaponShopProduct = n.BattleWeaponShopPool = void 0;
var o = e("../../Service/kl"), r = function(e, t, n, o, r) {
this.coin = e;
this.diamond = t;
this.weapons = n;
this.classes = o;
this.levels = r;
};
n.BattleWeaponShopPool = r;
var i = function(e, t, n, o, r) {
this.coin = e;
this.diamond = t;
this.id = n;
this.cls = o;
this.level = r;
this.sellout = !1;
};
n.BattleWeaponShopProduct = i;
var a = function() {
function e() {}
e.Random = function(t) {
for (var n = [], r = null, a = 0; a < e.items.length; a++) {
var l = e.items[a];
if (t >= l.lv[0] && t <= l.lv[1]) {
r = l;
break;
}
}
r || (r = e.items[0]);
for (a = 0; a < r.pool.length; a++) {
var s = r.pool[a], c = s.weapons[o.default.RandomInt(0, s.weapons.length - 1)], u = s.classes[o.default.RandomInt(0, s.classes.length - 1)], p = s.levels[o.default.RandomInt(0, s.levels.length - 1)], d = new i(s.coin, s.diamond, c, u, p);
n.push(d);
}
return n;
};
e.items = [ {
lv: [ 1, 1 ],
pool: [ new r(1e3, 0, [ 2, 3, 4 ], [ 1, 1 ], [ 5, 5 ]), new r(2500, 0, [ 5, 6, 7 ], [ 1, 1 ], [ 10, 10 ]), new r(0, 40, [ 1, 3, 6 ], [ 2, 2 ], [ 15, 15 ]) ]
}, {
lv: [ 2, 5 ],
pool: [ new r(1e3, 0, [ 2, 3, 4 ], [ 1, 1 ], [ 7, 7 ]), new r(2500, 0, [ 5, 6, 7 ], [ 1, 1 ], [ 10, 10 ]), new r(0, 40, [ 1, 3, 6 ], [ 2, 2 ], [ 15, 15 ]) ]
}, {
lv: [ 6, 10 ],
pool: [ new r(2e3, 0, [ 2, 3, 4 ], [ 1, 1 ], [ 12, 12 ]), new r(3500, 0, [ 1, 5, 6 ], [ 2, 2 ], [ 15, 15 ]), new r(0, 50, [ 3, 6, 7 ], [ 2, 2 ], [ 20, 20 ]) ]
}, {
lv: [ 11, 15 ],
pool: [ new r(2e3, 0, [ 1, 2, 4, 6 ], [ 2, 2 ], [ 17, 17 ]), new r(4500, 0, [ 3, 5, 7 ], [ 2, 2 ], [ 20, 20 ]), new r(0, 60, [ 1, 2, 3, 4, 5, 6, 7 ], [ 3, 3 ], [ 25, 25 ]) ]
}, {
lv: [ 16, 20 ],
pool: [ new r(2e3, 0, [ 1, 2, 4, 6 ], [ 2, 2 ], [ 22, 22 ]), new r(4500, 0, [ 3, 5, 7 ], [ 3, 3 ], [ 25, 25 ]), new r(0, 60, [ 1, 2, 3, 4, 5, 6, 7 ], [ 3, 3 ], [ 30, 30 ]) ]
}, {
lv: [ 21, 25 ],
pool: [ new r(2e3, 0, [ 1, 2, 4, 6 ], [ 3, 3 ], [ 27, 27 ]), new r(4500, 0, [ 3, 5, 7 ], [ 3, 3 ], [ 30, 30 ]), new r(0, 60, [ 1, 2, 3, 4, 5, 6, 7 ], [ 4, 4 ], [ 35, 35 ]) ]
}, {
lv: [ 26, 30 ],
pool: [ new r(3e3, 0, [ 1, 2, 4, 6 ], [ 3, 3 ], [ 32, 32 ]), new r(6e3, 0, [ 3, 5, 7 ], [ 3, 3 ], [ 35, 35 ]), new r(0, 90, [ 1, 2, 3, 4, 5, 6, 7 ], [ 4, 4 ], [ 40, 40 ]) ]
}, {
lv: [ 31, 35 ],
pool: [ new r(3e3, 0, [ 1, 2, 4, 6 ], [ 4, 4 ], [ 37, 37 ]), new r(6e3, 0, [ 3, 5, 7 ], [ 4, 4 ], [ 40, 40 ]), new r(0, 90, [ 1, 2, 3, 4, 5, 6, 7 ], [ 5, 5 ], [ 45, 45 ]) ]
}, {
lv: [ 36, 40 ],
pool: [ new r(3e3, 0, [ 1, 2, 4, 6 ], [ 4, 4 ], [ 42, 42 ]), new r(6e3, 0, [ 3, 5, 7 ], [ 4, 4 ], [ 45, 45 ]), new r(0, 90, [ 1, 2, 3, 4, 5, 6, 7 ], [ 5, 5 ], [ 50, 50 ]) ]
}, {
lv: [ 41, 45 ],
pool: [ new r(3e3, 0, [ 1, 2, 4, 6 ], [ 4, 4 ], [ 47, 47 ]), new r(6e3, 0, [ 3, 5, 7, 9 ], [ 5, 5 ], [ 50, 50 ]), new r(0, 90, [ 1, 2, 3, 4, 5, 6, 7, 9 ], [ 5, 5 ], [ 55, 55 ]) ]
}, {
lv: [ 46, 50 ],
pool: [ new r(5e3, 0, [ 1, 2, 4, 6, 9 ], [ 5, 5 ], [ 52, 52 ]), new r(8e3, 0, [ 3, 5, 7, 8 ], [ 5, 5 ], [ 55, 55 ]), new r(0, 120, [ 1, 2, 3, 4, 5, 6, 7, 8 ], [ 5, 5 ], [ 60, 60 ]) ]
}, {
lv: [ 51, 55 ],
pool: [ new r(5e3, 0, [ 1, 2, 4, 6, 9 ], [ 5, 5 ], [ 57, 57 ]), new r(8e3, 0, [ 3, 5, 7, 8 ], [ 5, 5 ], [ 60, 60 ]), new r(0, 120, [ 1, 2, 3, 4, 5, 6, 7, 10 ], [ 5, 5 ], [ 60, 60 ]) ]
}, {
lv: [ 56, 60 ],
pool: [ new r(5e3, 0, [ 1, 2, 4, 6, 9 ], [ 5, 5 ], [ 60, 60 ]), new r(8e3, 0, [ 3, 5, 7, 8 ], [ 5, 5 ], [ 60, 60 ]), new r(0, 120, [ 1, 2, 3, 4, 5, 6, 7, 9, 10 ], [ 5, 5 ], [ 60, 60 ]) ]
} ];
return e;
}();
n.BattleWeaponShopConfig = a;
cc._RF.pop();
}, {
"../../Service/kl": void 0
} ],
BingFengBao: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "1f945KisABCu69MJjwaJ0JU", "BingFengBao");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../../Player"), a = e("../BaseSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.damageRatio = .05;
t.scale = 2;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function(o) {
switch (o.label) {
case 0:
return [ 4, e.prototype.OnInit.call(this, t) ];

case 1:
o.sent();
this.context.getDamageFunc = function(e) {
return Math.max(1, e.maxHealth * n.damageRatio);
};
return [ 2 ];
}
});
});
};
t.prototype.OnKillEnemy = function(e, t) {
var n = this;
(null == t ? void 0 : t.owner) instanceof i.Player && e.isFreeze && (this.context.PlayEffectHandler(this.fireEffect, this.fireSound, e.body.position, 0, r.LevelContext.Instance.effectLayer, function(e) {
n.context.Damage(e.node, cc.Vec2.RIGHT);
}).scale = this.scale);
};
__decorate([ c ], t.prototype, "damageRatio", void 0);
__decorate([ c ], t.prototype, "scale", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../../Player": "Player",
"../BaseSkill": "BaseSkill"
} ],
BlackBoard: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "5e5b4Up7EVM05W19kn5HaCn", "BlackBoard");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Service/Delegate"), r = function() {
function e() {
this.OnValueChanged = new o.default();
this.propertys = new Map();
}
Object.defineProperty(e, "global", {
get: function() {
e.globl_ || (e.globl_ = new e());
return e.globl_;
},
enumerable: !1,
configurable: !0
});
e.prototype.Clear = function() {
this.OnValueChanged.Clear();
this.propertys.clear();
};
e.prototype.AddProperty = function(e, t) {
this.Get(e) != t && ("function" == typeof t ? this.propertys.set(e, {
__func: t
}) : this.propertys.set(e, t));
};
e.prototype.Get = function(e) {
var t = this.propertys.get(e);
return null != t ? t.__func ? t.__func() : t : null;
};
e.prototype.Set = function(e, t) {
this.AddProperty(e, t);
this.OnValueChanged.Invoke(e, t);
};
e.prototype.SetTrigger = function(e) {
this.OnValueChanged.Invoke(e, null);
};
e.globl_ = null;
return e;
}();
n.default = r;
cc._RF.pop();
}, {
"../../../Service/Delegate": void 0
} ],
Blessing: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "23a2bA0qolCqatXtGKTwOfI", "Blessing");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../LevelContext"), i = e("./BaseTalentSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.reducePerLv = 5;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.reduceSeconds = 0;
};
t.prototype.OnStartTalent = function() {
r.LevelContext.Instance.mainPlayer.AddSkill(o.SkillConfig.xinYangShouHuID);
n.reduceSeconds = this.reducePerLv * this.context.talentData.lv;
};
var n;
t.reduceSeconds = 0;
__decorate([ s() ], t.prototype, "reducePerLv", void 0);
return n = __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../LevelContext": "LevelContext",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
BoLiDaPao: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "67a587a2GRNaqMlbQiom9QI", "BoLiDaPao");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("./BaseTalentSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletDamageUpPercent = 5;
t.bulletIntervelUpPercent = 5;
t.startHealthPercent = 50;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
r.RemoveBroadcastReceiver(this);
e.prototype.onDestroy.call(this);
};
t.prototype.OnStartTalent = function() {
var e = this.context.owner;
e.health = e.maxHealth * this.startHealthPercent * .01;
e.AddFeatureEx(o.SkillFeature.BulletDamageUpPercent, this.bulletDamageUpPercent * this.context.talentData.lv);
e.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, this.bulletIntervelUpPercent * this.context.talentData.lv);
e.ResetFeatures();
};
t.prototype.OnRelive = function() {
var e = this.context.owner;
e.Damage(e.maxHealth * this.startHealthPercent * .01);
};
__decorate([ s() ], t.prototype, "bulletDamageUpPercent", void 0);
__decorate([ s() ], t.prototype, "bulletIntervelUpPercent", void 0);
__decorate([ s() ], t.prototype, "startHealthPercent", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnRelive", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
BodyAreaLimited: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0f43az+2CxDsoU/XUHFhXT0", "BodyAreaLimited");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BodyAreaLimited = void 0;
var o = e("./Entity"), r = e("./LevelContext"), i = e("../../Framework/Core/Resource/MyComponent"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.entity = null;
t.lastPos = cc.v2();
t.enableLimit = !0;
t.isHitWall_ = !1;
t.newPos = new cc.Vec2();
t.v1 = new cc.Vec2();
t.v2 = new cc.Vec2();
t.v3 = new cc.Vec2();
t.v4 = new cc.Vec2();
return t;
}
Object.defineProperty(t.prototype, "isHitWall", {
get: function() {
return this.isHitWall_;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
this.entity = this.getComponent(o.Entity);
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.node.getPosition(this.lastPos);
};
t.prototype.start = function() {
this.node.getPosition(this.lastPos);
};
t.prototype.OnLateUpdate = function(t) {
e.prototype.OnLateUpdate.call(this, t);
if (this.enableLimit) {
this.newPos.set(this.entity.body.position);
this.isHitWall_ = !1;
for (var n = this.entity.tileMask, o = cc.Vec2.distance(this.newPos, this.lastPos), i = this.newPos.sub(this.lastPos, this.v1).normalizeSelf(), a = 0, l = this.v3.set(this.lastPos), s = this.entity.moveCollisionHalfSize, c = this.entity.moveCollisionOffset; a < o && o > 0; ) {
var u = o - a;
a += a + Math.min(u, 10);
var p = this.lastPos.add(this.v4.set(i).multiplyScalar(a + 10), this.v2), d = !1, f = !1, h = p.x > this.lastPos.x, m = p.y > this.lastPos.y;
if (s.equals(cc.Size.ZERO)) {
d = !r.LevelContext.Instance.IsWalkable(p.x, this.lastPos.y, n);
f = !r.LevelContext.Instance.IsWalkable(this.lastPos.x, p.y, n);
} else {
for (var w = h ? p.x + s.width : p.x - s.width, y = 0; y < 2 * s.height; y += 10) if (!r.LevelContext.Instance.IsWalkable(w, this.lastPos.y + s.height - y + c.y, n)) {
d = !0;
break;
}
var g = m ? p.y + s.height : p.y - s.height;
for (y = 0; y < 2 * s.width; y += 10) if (!r.LevelContext.Instance.IsWalkable(p.x - s.width + y + c.x, g, n)) {
f = !0;
break;
}
}
if (d) {
this.newPos.x = this.lastPos.x;
this.isHitWall_ = !0;
}
if (f) {
this.newPos.y = this.lastPos.y;
this.isHitWall_ = !0;
}
if (!r.LevelContext.Instance.IsWalkable(p.x, p.y, n)) {
this.newPos.set(this.lastPos);
this.isHitWall_ = !0;
}
l.set(p);
}
r.LevelContext.Instance.scrnSafeArea && !this.isHitWall_ && r.LevelContext.Instance.LimitAreaPos(this.newPos, !1) && (this.isHitWall_ = !0);
this.lastPos.set(this.newPos);
this.isHitWall && (this.entity.body.position = this.newPos);
}
};
return __decorate([ l ], t);
}(i.MyComponent));
n.BodyAreaLimited = s;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0,
"./Entity": "Entity",
"./LevelContext": "LevelContext"
} ],
BookUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "54cc3upqAJALYPTWNQa/ofw", "BookUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/SoundsManager"), r = e("../../Framework/Core/UI/WaitingUI"), i = e("../../Framework/Core/Views/RegisterView"), a = e("../../Framework/Core/Views/ViewConfig"), l = e("../../Framework/Core/Views/ViewUIComponent"), s = e("../../Framework/Core/Views/ViewUIManager"), c = e("../Battle/LevelContext"), u = e("../Battle/LevelManager"), p = e("../Battle/Util"), d = e("../Config/SkillConfig"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.skillSprite = null;
t.title = null;
t.desc = null;
t.infoNode = null;
t.changeNode = null;
t.anim = null;
t.isBusy = !1;
t.skillId = 0;
t.curIndex = 0;
t.skills = [];
return t;
}
t.prototype.onLoad = function() {};
t.prototype.onDisable = function() {
c.LevelContext.Instance && c.LevelContext.Instance.runningCnt++;
};
t.prototype.OnSetParams = function() {
this.skills = this.GetValidSelections();
this.skills.sort(function() {
return Math.random() > .5 ? 1 : -1;
});
this.curIndex = 0;
this.UpdateUI();
c.LevelContext.Instance.runningCnt--;
};
t.prototype.UpdateUI = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n;
return __generator(this, function(r) {
switch (r.label) {
case 0:
o.default.instance.PlayEffect("box1");
this.isBusy = !1;
e = this.skills[this.curIndex];
this.skillId = e.id;
p.default.SetImage(e.iconPath, this.skillSprite);
this.title.string = e.name;
this.title.node.active = !1;
this.desc.string = e.desc;
this.infoNode.active = !1;
t = this.anim.play();
n = .85;
return [ 4, this.waitForTime(n) ];

case 1:
r.sent();
o.default.instance.PlayEffect("box2");
p.default.Vibrate();
return [ 4, this.waitForTime(t.duration - n) ];

case 2:
r.sent();
this.infoNode.active = !0;
this.title.node.active = !0;
this.changeNode.active = this.skills.length > 1;
return [ 2 ];
}
});
});
};
t.prototype.Close = function() {
this.HideView();
};
t.prototype.OnConfirmClick = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function(t) {
switch (t.label) {
case 0:
if (this.isBusy) return [ 2 ];
e = c.LevelContext.Instance.mainPlayer;
this.isBusy = !0;
s.default.ShowView(r.default);
return [ 4, e.AddSkill(this.skillId) ];

case 1:
t.sent();
s.default.HideView(r.default);
this.HideView();
u.LevelManager.Instance.SaveProcessData();
return [ 2 ];
}
});
});
};
t.prototype.OnChangeSuc = function() {
this.curIndex < this.skills.length - 1 ? this.curIndex++ : this.curIndex = 0;
this.UpdateUI();
};
t.prototype.GetValidSelections = function() {
for (var e = [], t = c.LevelContext.Instance.mainPlayer, n = 0; n < d.SkillConfig.skills.length; n++) {
var o = d.SkillConfig.skills[n];
o.groupId != d.SkillConfig.bookGroupID || t.GetSkillProto(o.id) || e.push(o);
}
return e;
};
__decorate([ m(cc.Sprite) ], t.prototype, "skillSprite", void 0);
__decorate([ m(cc.Label) ], t.prototype, "title", void 0);
__decorate([ m(cc.RichText) ], t.prototype, "desc", void 0);
__decorate([ m(cc.Node) ], t.prototype, "infoNode", void 0);
__decorate([ m(cc.Node) ], t.prototype, "changeNode", void 0);
__decorate([ m(cc.Animation) ], t.prototype, "anim", void 0);
return __decorate([ h, i.RegisterView("BookUI", a.ViewLayer.NormalLayer) ], t);
}(l.default);
n.default = w;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/LevelManager": "LevelManager",
"../Battle/Util": "Util",
"../Config/SkillConfig": "SkillConfig"
} ],
BoomBullet: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "cc6abWZJ7NCpKSAyrjpllUa", "BoomBullet");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/AssetManager"), r = e("../../../Framework/Core/Resource/SoundsManager"), i = e("../../../Service/kl"), a = e("../LevelContext"), l = e("../LevelManager"), s = e("../LinearBody"), c = e("./BaseBullet"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.boomRate = 40;
t.boomEffect = null;
t.boomSound = null;
t.ignoreScale = !1;
t.destoryTime = 0;
t.groundLayer = !1;
t.delay = 0;
t.body = null;
return t;
}
t.prototype.OnDisapper = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, s, c, u, p;
return __generator(this, function(d) {
switch (d.label) {
case 0:
if (this.isDestory) return [ 2 ];
this.isDestory = !0;
this.OnHitEvent.Clear();
if (!(this.delay >= 0)) return [ 3, 2 ];
this.body && (this.body.enabled = !1);
return [ 4, l.LevelManager.Instance.waitForTime(this.delay) ];

case 1:
d.sent();
this.body && (this.body.enabled = !0);
d.label = 2;

case 2:
t = this.boomEffect;
n = this.boomSound;
s = this.groundLayer ? a.LevelContext.Instance.groundLayer : a.LevelContext.Instance.effectLayer;
c = this.isInCamera;
u = this.boomRate;
if (!(i.default.RandomInt(0, 100) < u && c)) return [ 3, 6 ];
if (!(this.destoryTime <= 0)) return [ 3, 3 ];
this.skill.PlayEffectHandler(t, n, e, 0, s, null, this.ignoreScale);
return [ 3, 6 ];

case 3:
return [ 4, o.default.Default.CreateNode(t, s, e, 0) ];

case 4:
p = d.sent();
this.skill.InitEffectHandler(p, null, this.ignoreScale);
n && r.default.instance.PlayEffectSync(n);
return [ 4, l.LevelManager.Instance.waitForTime(this.destoryTime) ];

case 5:
d.sent();
d.label = 6;

case 6:
this.skill.cache.DestroyNode(this.node);
return [ 2 ];
}
});
});
};
__decorate([ d() ], t.prototype, "boomRate", void 0);
__decorate([ d(cc.Prefab) ], t.prototype, "boomEffect", void 0);
__decorate([ d({
type: cc.AudioClip
}) ], t.prototype, "boomSound", void 0);
__decorate([ d() ], t.prototype, "ignoreScale", void 0);
__decorate([ d() ], t.prototype, "destoryTime", void 0);
__decorate([ d() ], t.prototype, "groundLayer", void 0);
__decorate([ d() ], t.prototype, "delay", void 0);
__decorate([ d(s.default) ], t.prototype, "body", void 0);
return __decorate([ p ], t);
}(c.default);
n.default = f;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/AssetManager": void 0,
"../../../Framework/Core/Resource/SoundsManager": void 0,
"../../../Service/kl": void 0,
"../LevelContext": "LevelContext",
"../LevelManager": "LevelManager",
"../LinearBody": "LinearBody",
"./BaseBullet": "BaseBullet"
} ],
Boss6BombFire: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4e0611qiVRM55WwZfbpo0ZP", "Boss6BombFire");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/MyComponent"), r = e("../EffectHandler"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.templateBomb = null;
t.effectsRoot = null;
t.colliderRoot = null;
t.interval = 0;
t.initSize = 30;
t.skill = null;
t.colliderCurLen = 0;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.Reset();
this.Fire();
};
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, o;
return __generator(this, function(i) {
switch (i.label) {
case 0:
return [ 4, this.waitForTime(.03) ];

case 1:
i.sent();
this.skill = this.node.getComponent(r.default).skill;
e = this.templateBomb.width;
t = this.skill.skillData.proto.range;
n = t / e;
this.colliderCurLen = this.initSize;
o = 0;
i.label = 2;

case 2:
if (!(o < n)) return [ 3, 5 ];
this.AddBombFire();
return [ 4, this.waitForTime(this.interval) ];

case 3:
i.sent();
i.label = 4;

case 4:
o++;
return [ 3, 2 ];

case 5:
return [ 4, this.waitForTime(.5) ];

case 6:
i.sent();
this.skill.cache.DestroyNode(this.node);
return [ 2 ];
}
});
});
};
t.prototype.AddBombFire = function() {
for (var e = 0; e < this.effectsRoot.children.length; e++) {
var t = this.effectsRoot.children[e], n = cc.instantiate(this.templateBomb);
n.active = !0;
n.setParent(t);
}
this.colliderCurLen += 2 * this.templateBomb.width;
var o = this.colliderRoot.getComponentsInChildren(cc.BoxCollider);
for (e = 0; e < o.length; e++) (t = o[e]).size.height = this.colliderCurLen;
};
t.prototype.Reset = function() {
for (var e = 0; e < this.effectsRoot.children.length; e++) this.effectsRoot.children[e].removeAllChildren();
var t = this.colliderRoot.getComponentsInChildren(cc.BoxCollider);
for (e = 0; e < t.length; e++) t[e].size.height = 0;
};
__decorate([ l(cc.Node) ], t.prototype, "templateBomb", void 0);
__decorate([ l(cc.Node) ], t.prototype, "effectsRoot", void 0);
__decorate([ l(cc.Node) ], t.prototype, "colliderRoot", void 0);
__decorate([ l() ], t.prototype, "interval", void 0);
__decorate([ l() ], t.prototype, "initSize", void 0);
return __decorate([ a ], t);
}(o.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/MyComponent": void 0,
"../EffectHandler": "EffectHandler"
} ],
BossSplitBullet: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f5613RR/TNI/aMz0MLvaFwm", "BossSplitBullet");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../LevelContext"), i = e("../../Util"), a = e("../BaseBullet"), l = e("../BulletMovement"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.splitCnt = 3;
t.splitAngle = 30;
t.splitBulletPrefab = null;
t.fireLen = 500;
return t;
}
t.prototype.Split = function(e, t, n, i, a) {
var s;
if (cc.isValid(e.owner)) for (var c = n, u = o.default.A2R(i), p = -u * (c - 1) * .5, d = e, f = null !== (s = this.splitBulletPrefab) && void 0 !== s ? s : d.bulletPrefab, h = 0; h < c; h++) {
var m = p + h * u, w = d.CreateBullet(f, r.LevelContext.Instance.effectLayer, cc.v2(a).rotate(m), t, null).getComponent(l.default);
w.fireLen = this.fireLen;
w.totalTime = this.fireLen / w.bulletVelocity;
}
};
t.prototype.OnDisapper = function(t) {
var n = this.node.angle, o = i.default.angle2Forward(n);
this.Split(this.skill, t, this.splitCnt, this.splitAngle, o);
e.prototype.OnDisapper.call(this, t);
};
__decorate([ u() ], t.prototype, "splitCnt", void 0);
__decorate([ u() ], t.prototype, "splitAngle", void 0);
__decorate([ u(cc.Prefab) ], t.prototype, "splitBulletPrefab", void 0);
__decorate([ u() ], t.prototype, "fireLen", void 0);
return __decorate([ c ], t);
}(a.default);
n.default = p;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../BaseBullet": "BaseBullet",
"../BulletMovement": "BulletMovement"
} ],
BossWall: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0991bEfWulNaZfmjSkeiWII", "BossWall");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BossWall = n.BossWallDirection = void 0;
var o, r = e("../../Service/Analys"), i = e("./LevelContext"), a = e("./MapItem"), l = e("./View/MyCameraFollow"), s = cc._decorator, c = s.ccclass, u = s.property;
(function(e) {
e[e.BOX = 0] = "BOX";
e[e.Horizonal = 1] = "Horizonal";
e[e.Vertical = 2] = "Vertical";
})(o = n.BossWallDirection || (n.BossWallDirection = {}));
var p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.directionType = o.BOX;
t.lockCamera = !1;
t.boss = null;
t.v1 = cc.v2();
return t;
}
t.prototype.OnInit = function(e) {
r.default.LogFinishLevel(i.LevelContext.Instance.levelProto.name, !0);
r.default.LogStartLevel(i.LevelContext.Instance.levelProto.name + "_Boss", null);
i.LevelContext.Instance.isFightingBoss = !0;
this.boss = e;
var t = this.getComponent(cc.BoxCollider);
if (t) {
var n = i.LevelContext.Instance.scrnSafeArea, a = i.LevelContext.Instance.camera.node.getPosition(), s = cc.v2(a), c = i.LevelContext.Instance.ToScrnArea(t.offset.add(s), t.size), u = c.Clone();
switch (this.directionType) {
case o.BOX:
c.xRange.x += 20;
c.xRange.y -= 20;
c.yRange.y -= 50;
break;

case o.Horizonal:
c.xRange.x += 20;
c.xRange.y -= 20;
c.yRange.x = n.yRange.x;
c.yRange.y = n.yRange.y;
s.y = (n.yRange.x - n.yRange.y) / 2 + n.yRange.y;
break;

case o.Vertical:
c.xRange.x = n.xRange.x;
c.xRange.y = n.xRange.y;
c.yRange.y -= 50;
s.x = (n.xRange.y - n.xRange.x) / 2 + n.xRange.x;
}
this.node.setPosition(s);
i.LevelContext.Instance.SetScrnSafeArea(c);
if (this.lockCamera) {
var p = i.LevelContext.Instance.node.width / i.LevelContext.Instance.camera.zoomRatio, d = i.LevelContext.Instance.node.height / i.LevelContext.Instance.camera.zoomRatio, f = i.LevelContext.Instance.camera.getComponent(l.default);
u.xRange.x += .5 * p;
u.xRange.y -= .5 * p;
u.yRange.x += .5 * d;
u.yRange.y -= .5 * d;
f.area = u;
}
}
};
t.prototype.OnUpdate = function() {
cc.director.getTotalFrames() % 5 == 0 && this.boss && this.boss.dead && this.Finalize();
};
t.prototype.Finalize = function() {
this.boss = null;
};
t.prototype.onCollisionEnter = function() {
if (this.isActive) {
var e = this.node, t = i.LevelContext.Instance.mainPlayer, n = cc.Vec2.subtract(cc.v2(), e.getPosition(), t.node.getPosition()).normalizeSelf();
t.Damage(1);
t.dead || t.HitFly(150, n, .5);
}
};
__decorate([ u({
type: cc.Enum(o)
}) ], t.prototype, "directionType", void 0);
__decorate([ u() ], t.prototype, "lockCamera", void 0);
return __decorate([ c ], t);
}(a.MapItem);
n.BossWall = p;
cc._RF.pop();
}, {
"../../Service/Analys": void 0,
"./LevelContext": "LevelContext",
"./MapItem": "MapItem",
"./View/MyCameraFollow": "MyCameraFollow"
} ],
Boss_Buff_Burning: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9f7fe3T1PBOm6UDc+/KsoaW", "Boss_Buff_Burning");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Boss_Buff_Burning = void 0;
var o = e("../../Buff/Buff_Burning"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnIntervel = function() {
var t = this.owner.wuDiLeftTime;
this.owner.wuDiLeftTime = 0;
e.prototype.OnIntervel.call(this);
this.owner.wuDiLeftTime = t;
};
return __decorate([ i ], t);
}(o.Buff_Burning));
n.Boss_Buff_Burning = a;
cc._RF.pop();
}, {
"../../Buff/Buff_Burning": "Buff_Burning"
} ],
BoxUI2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "46f6cbs+/ZDTYDFrb4F+Er5", "BoxUI2");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/SoundsManager"), r = e("../../Framework/Core/UI/WaitingUI"), i = e("../../Framework/Core/Views/RegisterView"), a = e("../../Framework/Core/Views/ViewConfig"), l = e("../../Framework/Core/Views/ViewUIComponent"), s = e("../../Framework/Core/Views/ViewUIManager"), c = e("../../Framework/Localize/LocalizeManager"), u = e("../../Service/Timer"), p = e("../Battle/LevelContext"), d = e("../Battle/LevelManager"), f = e("../Battle/Util"), h = e("../Config/BattleItemConfig"), m = e("../Config/GameModel"), w = e("../Config/SkillConfig"), y = e("./LvStars"), g = cc._decorator, v = g.ccclass, S = g.property, M = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.skillSprite = null;
t.skillSprite2 = null;
t.skillSprite3 = null;
t.item1Node = null;
t.item2Node = null;
t.item3Node = null;
t.title = null;
t.desc = null;
t.readyNode = null;
t.infoNode = null;
t.seniorNode = null;
t.skipBtn = null;
t.anim = null;
t.group1 = [];
t.group2 = [];
t.group3 = [];
t.totalTime = 0;
t.speed = 1;
t.sndId = null;
t.animationName = null;
t.timer = null;
t.isBusy = !1;
t.selections = [];
t.groups = [];
return t;
}
t.prototype.onLoad = function() {
this.groups.push(this.group1);
this.groups.push(this.group2);
this.groups.push(this.group3);
};
t.prototype.onDisable = function() {
p.LevelContext.Instance && p.LevelContext.Instance.runningCnt++;
};
t.prototype.OnSetParams = function() {
this.Ready();
p.LevelContext.Instance.runningCnt--;
};
t.prototype.Ready = function() {
o.default.instance.PlayEffect("box1");
this.anim.play("BoxUI2_Ready");
this.title.string = "获得宝箱";
this.desc.string = "";
this.infoNode.active = !1;
this.readyNode.active = !0;
this.title.node.active = !0;
this.seniorNode.active = p.LevelContext.seniorBoxCnt < 2;
this.speed = 1;
};
t.prototype.Close = function() {
this.HideView();
};
t.prototype.OnOpenClick = function() {
this.HandleOpen(1);
};
t.prototype.OnSeniorOpenSuc = function() {
p.LevelContext.seniorBoxCnt++;
this.HandleOpen(3);
};
t.prototype.OnSkipClick = function() {
this.speed = 1e3;
this.anim.getAnimationState(this.animationName).speed = this.speed;
o.default.instance.StopEffect(this.sndId);
o.default.instance.PlayEffect("box2");
this.skipBtn.active = !1;
this.ShowInfo();
};
t.prototype.HandleOpen = function(e) {
this.isBusy = !1;
this.infoNode.active = !1;
this.readyNode.active = !1;
this.title.node.active = !1;
this.selections = this.GetValidSelections(e);
this.UpdateUI(e);
};
t.prototype.UpdateUI = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, r, i, a, l, s = this;
return __generator(this, function(c) {
switch (c.label) {
case 0:
for (t = 0; t < this.groups.length; t++) {
n = this.groups[t];
for (r = 0; r < n.length; r++) (i = n[r]) && (i.opacity = e >= t + 1 ? i.name.startsWith("Di") ? 150 : 255 : 0);
}
this.totalTime = 6.3;
this.animationName = "BoxUI_Anim3";
this.anim.stop();
this.anim.play(this.animationName).speed = this.speed;
a = this.selections[0];
this.item1Node.data = a;
this.SetItem(this.item1Node, a, this.skillSprite);
if (e > 1) {
a = this.selections[1];
this.item2Node.data = a;
this.SetItem(this.item2Node, a, this.skillSprite2);
}
if (e > 2) {
a = this.selections[2];
this.item3Node.data = a;
this.SetItem(this.item3Node, a, this.skillSprite3);
}
this.timer && u.default.Stop(this.timer);
this.timer = u.default.DelayRun(this.totalTime, function() {
if (!s.infoNode.active) {
s.ShowInfo();
s.skipBtn.active = !1;
o.default.instance.StopEffect(s.sndId);
o.default.instance.PlayEffect("box2");
}
});
l = this;
return [ 4, o.default.instance.PlayEffect("boxLoop") ];

case 1:
l.sndId = c.sent();
return [ 4, this.waitForTime(this.totalTime + .5) ];

case 2:
c.sent();
o.default.instance.StopEffect(this.sndId);
return [ 2 ];
}
});
});
};
t.prototype.ShowInfo = function() {
this.item1Node.getComponent(cc.Toggle).check();
this.OnItemClick(null, 0);
this.infoNode.active = !0;
this.title.node.active = !0;
};
t.prototype.SetItem = function(e, t, n) {
var o = e.getChildByName("Lv").getComponent(cc.Label), r = e.findChild("LvStars");
if (t instanceof w.SkillProto) {
var i = w.SkillConfig.superSkillDepence[0].id, a = w.SkillConfig.superSkillDepence[w.SkillConfig.superSkillDepence.length - 1].id;
if (t.groupId >= i && t.groupId <= a) {
o.string = "超武";
r.getComponent(y.default).SetLv(0);
f.default.SetImage(t.iconPath, n);
} else {
var l = w.SkillConfig.GetSkillGroup(t.groupId);
o.string = "";
r.getComponent(y.default).SetLv(l.GetLv(t.id));
f.default.SetImage(l.iconPath, n);
}
} else {
o.string = "";
r.getComponent(y.default).SetLv(0);
f.default.SetImage(t.iconPath, n);
}
};
t.prototype.OnItemClick = function(e, t) {
var n = parseInt(t), o = this.selections[n];
if (o) {
var r = o.name;
if (o instanceof w.SkillProto) {
var i = w.SkillConfig.superSkillDepence[0].id, a = w.SkillConfig.superSkillDepence[w.SkillConfig.superSkillDepence.length - 1].id;
if (o.groupId >= i && o.groupId <= a) ; else {
var l = w.SkillConfig.GetSkillGroup(o.groupId);
l && (r = l.name);
}
}
this.title.string = r;
this.desc.string = c.TXT(o.desc).replace(/\n/g, "  ");
}
};
t.prototype.OnConfirmClick = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n;
return __generator(this, function(o) {
switch (o.label) {
case 0:
if (this.isBusy) return [ 2 ];
e = p.LevelContext.Instance.mainPlayer;
this.isBusy = !0;
s.default.ShowView(r.default);
t = 0;
o.label = 1;

case 1:
return t < this.selections.length ? (n = this.selections[t]) instanceof w.SkillProto ? [ 4, e.AddSkill1(n) ] : [ 3, 3 ] : [ 3, 5 ];

case 2:
o.sent();
return [ 3, 4 ];

case 3:
if (n instanceof h.BattleItemProto) switch (n.id) {
case h.BattleItemConfig.Coin100ItemId:
p.LevelContext.Instance.AddCoin(100);
}
o.label = 4;

case 4:
t++;
return [ 3, 1 ];

case 5:
s.default.HideView(r.default);
this.HideView();
d.LevelManager.Instance.SaveProcessData();
return [ 2 ];
}
});
});
};
t.prototype.GetValidSelections = function(e) {
for (var t = [], n = m.default.Instance.skillList, o = [], r = p.LevelContext.Instance.mainPlayer, i = 0; i < n.length; i++) if ((v = n[i]).isSuperSkill && !r.GetSkillProto(v.id) && (y = v.group)) {
for (var a = !0, l = 0; l < y.ids.length; l++) if (!r.GetSkillProto(y.ids[l])) {
a = !1;
break;
}
a && o.push(v.proto);
}
if (o.length > 0) {
o.sort(function() {
return Math.random() > .5 ? 1 : -1;
});
t.push(o[0]);
}
if ((e -= t.length) > 0) {
var s = [], c = [], u = [];
for (i = 0; i < r.activeSkills.length; i++) {
var d = r.activeSkills[i];
if (d && d.isNormalSkill) {
var f = (y = d.group).GetLv(d.id), w = c.indexOf(y);
if (w < 0) {
c.push(y);
u.push(f);
} else u[w] < f && (u[w] = f);
}
}
for (i = 0; i < c.length; i++) {
var y = c[i], g = u[i];
if (y && y.ids[g]) {
s.push(m.default.Instance.GetSkill(y.ids[g]));
u[i]++;
}
}
if (s.length < e) {
for (i = 0; i < c.length; i++) {
y = c[i], g = u[i];
if (y && y.ids[g]) {
s.push(m.default.Instance.GetSkill(y.ids[g]));
u[i]++;
}
}
if (s.length < e) for (i = 0; i < c.length; i++) {
y = c[i], g = u[i];
if (y && y.ids[g]) {
s.push(m.default.Instance.GetSkill(y.ids[g]));
u[i]++;
}
}
}
if (s.length > 0) {
s.sort(function() {
return Math.random() > .5 ? 1 : -1;
});
for (i = 0; i < s.length; i++) {
var v = s[i];
t.push(v.proto);
if (0 == --e) break;
}
}
}
if (e > 0) {
var S = h.BattleItemConfig.GetItem(h.BattleItemConfig.Coin100ItemId);
for (i = 0; i < e; i++) t.push(S);
}
return t;
};
__decorate([ S(cc.Sprite) ], t.prototype, "skillSprite", void 0);
__decorate([ S(cc.Sprite) ], t.prototype, "skillSprite2", void 0);
__decorate([ S(cc.Sprite) ], t.prototype, "skillSprite3", void 0);
__decorate([ S(cc.Node) ], t.prototype, "item1Node", void 0);
__decorate([ S(cc.Node) ], t.prototype, "item2Node", void 0);
__decorate([ S(cc.Node) ], t.prototype, "item3Node", void 0);
__decorate([ S(cc.Label) ], t.prototype, "title", void 0);
__decorate([ S(cc.RichText) ], t.prototype, "desc", void 0);
__decorate([ S(cc.Node) ], t.prototype, "readyNode", void 0);
__decorate([ S(cc.Node) ], t.prototype, "infoNode", void 0);
__decorate([ S(cc.Node) ], t.prototype, "seniorNode", void 0);
__decorate([ S(cc.Node) ], t.prototype, "skipBtn", void 0);
__decorate([ S(cc.Animation) ], t.prototype, "anim", void 0);
__decorate([ S(cc.Node) ], t.prototype, "group1", void 0);
__decorate([ S(cc.Node) ], t.prototype, "group2", void 0);
__decorate([ S(cc.Node) ], t.prototype, "group3", void 0);
return __decorate([ v, i.RegisterView("BoxUI2", a.ViewLayer.PopupLayer) ], t);
}(l.default);
n.default = M;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Service/Timer": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/LevelManager": "LevelManager",
"../Battle/Util": "Util",
"../Config/BattleItemConfig": "BattleItemConfig",
"../Config/GameModel": "GameModel",
"../Config/SkillConfig": "SkillConfig",
"./LvStars": "LvStars"
} ],
Buff_Burning: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b7793ajqQdNHoLC2Rk3T8so", "Buff_Burning");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Burning = void 0;
var o = e("../../Config/SkillConfig"), r = e("../Skill/SkillContext"), i = e("./Buff_Intervel"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.damage = 3;
t.damageContext = new r.default();
return t;
}
t.prototype.OnInit = function() {
e.prototype.OnInit.call(this);
this.time *= 1 + .01 * this.context.owner.GetFeature(o.SkillFeature.BurningTimeUpPercent);
this.curIntervel = Math.max(.1, this.intervel * (1 - .01 * this.context.owner.GetFeature(o.SkillFeature.BurningCDUpPercent)));
};
t.prototype.OnIntervel = function() {
var e = cc.isValid(this.context.owner) ? .01 * this.context.owner.GetFeature(o.SkillFeature.BulletBurnDamageUpPercent) : 0, t = this.damage + (cc.isValid(this.context.owner) ? this.context.owner.GetFeature(o.SkillFeature.ElementDamageUp) : 0);
t *= 1 + e;
if (this.owner.Damage(t, 100, this.context)) {
this.owner.isMainPlayer || this.owner.PlayTextEffect(-t, null);
this.broadcastMessage("OnBurnDamage", this);
}
};
t.prototype.OnActive = function() {
e.prototype.OnActive.call(this);
this.time *= 1 + .01 * this.context.owner.GetFeature(o.SkillFeature.BulletBurnTimeUpPercent);
this.broadcastMessage("OnBurn", this);
};
__decorate([ s() ], t.prototype, "damage", void 0);
return __decorate([ l ], t);
}(i.Buff_Intervel);
n.Buff_Burning = c;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"../Skill/SkillContext": "SkillContext",
"./Buff_Intervel": "Buff_Intervel"
} ],
Buff_Chaos: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "03114Zy3aZBEaiJ6n4Xp5+F", "Buff_Chaos");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Chaos = void 0;
var o = e("./Buff_Timer"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnActive = function() {
this.owner.chaosCnt++;
};
t.prototype.OnInactive = function() {
this.owner.chaosCnt--;
};
return __decorate([ i ], t);
}(o.Buff_Timer));
n.Buff_Chaos = a;
cc._RF.pop();
}, {
"./Buff_Timer": "Buff_Timer"
} ],
Buff_Ethereal: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d4fe5iVkd5F3oknCa9lvxLU", "Buff_Ethereal");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Ethereal = void 0;
var o = e("../../Config/SkillConfig"), r = e("./Buff_Timer"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnActive = function() {
this.owner.AddFeatureEx(o.SkillFeature.PlayerFreeBulletUpPercent, 100);
this.owner.ResetFeatures();
};
t.prototype.OnInactive = function() {
this.owner.AddFeatureEx(o.SkillFeature.PlayerFreeBulletUpPercent, -100);
this.owner.ResetFeatures();
};
return __decorate([ a ], t);
}(r.Buff_Timer));
n.Buff_Ethereal = l;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"./Buff_Timer": "Buff_Timer"
} ],
Buff_Freeze: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ed1b0SiIDlBfL5nAas8A4iH", "Buff_Freeze");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Freeze = void 0;
var o = e("../../../Service/kl"), r = e("../../Config/MonsterConfig"), i = e("../../Config/SkillConfig"), a = e("../Enemy"), l = e("../Skill/SkillContext"), s = e("./Buff_Timer"), c = cc._decorator, u = c.ccclass, p = (c.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.triggerInterval = 10;
return t;
}
t.prototype.OnInit = function() {
e.prototype.OnInit.call(this);
this.time += this.context.owner.GetFeature(i.SkillFeature.FreezeTimeUp);
this.owner instanceof a.Enemy && (this.time *= this.owner.proto.type != r.MonsterType.Normal ? .1 : 1);
};
t.prototype.OnReenter = function(t, n, o) {
this.owner instanceof a.Enemy && (t *= this.owner.proto.type != r.MonsterType.Normal ? .1 : 1);
e.prototype.OnReenter.call(this, t, n, o);
this.owner.Freeze(!0, this.time);
};
t.prototype.OnActive = function() {
var e;
this.owner.Freeze(!0, this.time);
var t = this.context.owner.GetSkillData(211);
if (t && o.default.RandomInt(0, 100) < 13) {
var n = this.owner, a = Date.now(), s = null !== (e = n.freezeTriggerStartTime) && void 0 !== e ? e : 0;
if (n.proto.type != r.MonsterType.Boss || a - s >= 1e3 * this.triggerInterval) {
var c = (n.proto.type != r.MonsterType.Normal ? .01 : .05) * n.maxHealth;
c += this.context.owner.GetFeature(i.SkillFeature.ElementDamageUp);
var u = new l.default();
u.skillData = t;
n.Damage(c, 100, u) && n.PlayTextEffect(-c, null);
n.freezeTriggerStartTime = a;
}
}
this.broadcastMessage("OnFreeze", this);
};
t.prototype.OnInactive = function() {};
return __decorate([ u ], t);
}(s.Buff_Timer));
n.Buff_Freeze = p;
cc._RF.pop();
}, {
"../../../Service/kl": void 0,
"../../Config/MonsterConfig": "MonsterConfig",
"../../Config/SkillConfig": "SkillConfig",
"../Enemy": "Enemy",
"../Skill/SkillContext": "SkillContext",
"./Buff_Timer": "Buff_Timer"
} ],
Buff_Intervel: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f5d91LsDn5HrbQw7Ms+QFO5", "Buff_Intervel");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Intervel = void 0;
var o = e("./Buff_Timer"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 1;
t.passedTime = 0;
t.curIntervel = 0;
return t;
}
t.prototype.OnInit = function() {
e.prototype.OnInit.call(this);
this.curIntervel = this.intervel;
};
t.prototype.OnActive = function() {
this.passedTime = 0;
};
t.prototype.OnInactive = function() {};
t.prototype.OnIntervel = function() {};
t.prototype.OnUpdate = function(t) {
this.passedTime += t;
if (this.passedTime >= this.curIntervel) {
this.passedTime -= this.curIntervel;
this.OnIntervel();
}
e.prototype.OnUpdate.call(this, t);
};
__decorate([ a() ], t.prototype, "intervel", void 0);
return __decorate([ i ], t);
}(o.Buff_Timer);
n.Buff_Intervel = l;
cc._RF.pop();
}, {
"./Buff_Timer": "Buff_Timer"
} ],
Buff_Palsy: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a508dDOmN9B3b2O54vtuAaH", "Buff_Palsy");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Palsy = void 0;
var o = e("../../Config/SkillConfig"), r = e("./Buff_Timer"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.slow = 50;
return t;
}
t.prototype.OnActive = function() {
this.owner.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, -this.slow);
this.owner.ResetFeatures();
};
t.prototype.OnInactive = function() {
this.owner.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, this.slow);
this.owner.ResetFeatures();
};
__decorate([ l() ], t.prototype, "slow", void 0);
return __decorate([ a ], t);
}(r.Buff_Timer);
n.Buff_Palsy = s;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"./Buff_Timer": "Buff_Timer"
} ],
Buff_RecoverHp: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fe0b839wM9PUo4UTjVi4I5H", "Buff_RecoverHp");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_RecoverHp = void 0;
var o = e("./Buff_Intervel"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnIntervel = function() {
this.owner.AddHealth(10);
};
t.prototype.OnInactive = function() {};
return __decorate([ i ], t);
}(o.Buff_Intervel));
n.Buff_RecoverHp = a;
cc._RF.pop();
}, {
"./Buff_Intervel": "Buff_Intervel"
} ],
Buff_ShiQiDaZhen: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "759e45zyZdOUpsn93cpIVww", "Buff_ShiQiDaZhen");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_ShiQiDaZhen = void 0;
var o = e("../../Config/SkillConfig"), r = e("./Buff_Timer"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.param = null;
return t;
}
t.prototype.OnSetParam = function(e) {
this.param = e;
};
t.prototype.OnActive = function() {
var e = this.context.owner;
e.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, this.param.bulletIntervelUpPercent);
e.ResetFeatures();
};
t.prototype.OnInactive = function() {
var e = this.context.owner;
e.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, -this.param.bulletIntervelUpPercent);
e.ResetFeatures();
};
return __decorate([ a ], t);
}(r.Buff_Timer));
n.Buff_ShiQiDaZhen = l;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"./Buff_Timer": "Buff_Timer"
} ],
Buff_Silent: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e29a4eNHJRE9L1XeBduYTz8", "Buff_Silent");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Silent = void 0;
var o = e("./Buff_Timer"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnActive = function() {
this.owner.silentCnt++;
};
t.prototype.OnInactive = function() {
this.owner.silentCnt--;
};
return __decorate([ i ], t);
}(o.Buff_Timer));
n.Buff_Silent = a;
cc._RF.pop();
}, {
"./Buff_Timer": "Buff_Timer"
} ],
Buff_Speed: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "72f19+N5T9M7an58bgOKPmK", "Buff_Speed");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Speed = void 0;
var o = e("./Buff_Timer"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ratio = .8;
t.speedOffset = 0;
return t;
}
t.prototype.OnSetParam = function(e) {
if (e) if (this.running) {
this.OnInactive();
this.speedOffset = this.owner.speed * e;
this.OnActive();
} else this.speedOffset = this.owner.speed * e; else this.speedOffset = this.owner.speed * this.ratio;
};
t.prototype.OnActive = function() {
this.owner.speed += this.speedOffset;
};
t.prototype.OnInactive = function() {
this.owner.speed -= this.speedOffset;
};
__decorate([ a({
tooltip: "正数为加速，负数为减速"
}) ], t.prototype, "ratio", void 0);
return __decorate([ i ], t);
}(o.Buff_Timer);
n.Buff_Speed = l;
cc._RF.pop();
}, {
"./Buff_Timer": "Buff_Timer"
} ],
Buff_Timer: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8117e/7I1RNtbrqoccjghC1", "Buff_Timer");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Timer = void 0;
var o = e("../../../Framework/Core/Resource/SoundsManager"), r = e("../../Config/GameModel"), i = e("../LevelContext"), a = e("./Buff"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.audio = null;
t.effectPrefab = null;
t.footEffect = !1;
t.startTime = 0;
t.effectIns = null;
return t;
}
t.prototype.OnReenter = function(t, n, o) {
e.prototype.OnReenter.call(this, t, n, o);
this.startTime = .001 * Date.now();
};
t.prototype.OnActive = function() {};
t.prototype.OnInactive = function() {};
t.prototype.OnEnter = function() {
this.startTime = .001 * Date.now();
if (!this.running) {
this.DeseoryEffect();
if (this.effectPrefab && r.default.Instance.enableFxEffect) {
this.effectIns = i.LevelContext.buffCache.CreateNodeSync(this.effectPrefab, this.footEffect ? this.owner.node : this.owner.aimPnt, cc.Vec2.ZERO);
var e = Math.min(this.effectIns.width, this.effectIns.height), t = this.owner.bodySize > 0 ? this.owner.bodySize : Math.min(this.owner.node.width, this.owner.node.height);
this.effectIns.scale = Math.clamp(.7 * t / e, 1, 2);
}
this.audio && o.default.instance.PlayEffectSync(this.audio);
this.OnActive();
}
};
t.prototype.OnExit = function() {
this.OnInactive();
this.DeseoryEffect();
};
t.prototype.OnUpdate = function() {
(.001 * Date.now() - this.startTime >= this.time || 1 == this.owner.dead) && this.Stop();
};
t.prototype.DeseoryEffect = function() {
this.effectIns && i.LevelContext.buffCache.DestroyNode(this.effectIns);
this.effectIns = null;
};
__decorate([ c(cc.AudioClip) ], t.prototype, "audio", void 0);
__decorate([ c(cc.Prefab) ], t.prototype, "effectPrefab", void 0);
__decorate([ c() ], t.prototype, "footEffect", void 0);
return __decorate([ s ], t);
}(a.default);
n.Buff_Timer = u;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/SoundsManager": void 0,
"../../Config/GameModel": "GameModel",
"../LevelContext": "LevelContext",
"./Buff": "Buff"
} ],
Buff_Twine: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e72dc82RV1GNa8c/Sa7fN4Y", "Buff_Twine");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_Twine = void 0;
var o = e("./Buff_Timer"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnActive = function() {
this.owner.controlableCnt--;
this.owner.twineCnt++;
this.owner.body.velocity = cc.Vec2.ZERO;
};
t.prototype.OnInactive = function() {
this.owner.controlableCnt++;
this.owner.twineCnt--;
};
return __decorate([ i ], t);
}(o.Buff_Timer));
n.Buff_Twine = a;
cc._RF.pop();
}, {
"./Buff_Timer": "Buff_Timer"
} ],
Buff_WuDi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "22fb4rS6JdD17ByX5gs3cQW", "Buff_WuDi");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_WuDi = void 0;
var o = e("./Buff_Timer"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnActive = function() {
this.owner.wuDiLeftTime += this.time;
};
t.prototype.OnInactive = function() {};
return __decorate([ i ], t);
}(o.Buff_Timer));
n.Buff_WuDi = a;
cc._RF.pop();
}, {
"./Buff_Timer": "Buff_Timer"
} ],
Buff_YuanSuSheJi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fd2e86urExL1J3ezhdhP6mU", "Buff_YuanSuSheJi");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_YuanSuSheJi = void 0;
var o = e("../../Config/SkillConfig"), r = e("./Buff_Timer"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.param = null;
return t;
}
t.prototype.OnSetParam = function(e) {
this.param = e;
};
t.prototype.OnActive = function() {
var e = this.context.owner;
e.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, this.param.bulletIntervelUpPercent);
e.AddFeatureEx(o.SkillFeature.BulletCDUpPercent, this.param.bulletCDUpPercent);
e.ResetFeatures();
};
t.prototype.OnInactive = function() {
var e = this.context.owner;
e.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, -this.param.bulletIntervelUpPercent);
e.AddFeatureEx(o.SkillFeature.BulletCDUpPercent, -this.param.bulletCDUpPercent);
e.ResetFeatures();
};
return __decorate([ a ], t);
}(r.Buff_Timer));
n.Buff_YuanSuSheJi = l;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"./Buff_Timer": "Buff_Timer"
} ],
Buff_ZuZhou: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9528a6zrulJFrZlm1ijHnO5", "Buff_ZuZhou");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Buff_ZuZhou = void 0;
var o = e("../../../Framework/Core/Resource/SoundsManager"), r = e("../LevelContext"), i = e("../Skill/XieDao/DiaoLing"), a = e("../Skill/XieDao/EYun"), l = e("./Buff_Timer"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.damageEffectPrefab = null;
t.damageAudio = null;
t.damageRatio = 2;
t.damage = 0;
return t;
}
t.prototype.OnReenter = function() {};
t.prototype.OnInactive = function() {
if ((!this.owner || !this.owner.dead) && cc.isValid(this.context.owner) && !this.context.owner.dead) {
var e = this.context.owner.weaponSkill.context.GetDamage(this.owner), t = e * this.damageRatio;
t += a.default.IsActive ? e * a.default.DamageRatio / 100 : 0;
t *= i.default.IsActive ? 1 + i.default.DamageRatio / 100 : 1;
if (this.owner.Damage(t, 100, this.context)) {
this.damageEffectPrefab && this.context.PlayEffectHandler(this.damageEffectPrefab, this.damageAudio, this.owner.aimPos, 0, r.LevelContext.Instance.effectLayer, null);
this.audio && o.default.instance.PlayEffectSync(this.damageAudio);
this.owner.PlayTextEffect(-t, null);
this.broadcastMessage("OnZuZhouDamage", this);
}
}
};
t.prototype.OnActive = function() {
e.prototype.OnActive.call(this);
this.time += a.default.IsActive ? a.default.Delay : 0;
this.broadcastMessage("OnZuZhou", this);
};
__decorate([ u(cc.Prefab) ], t.prototype, "damageEffectPrefab", void 0);
__decorate([ u(cc.AudioClip) ], t.prototype, "damageAudio", void 0);
__decorate([ u() ], t.prototype, "damageRatio", void 0);
return __decorate([ c ], t);
}(l.Buff_Timer);
n.Buff_ZuZhou = p;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/SoundsManager": void 0,
"../LevelContext": "LevelContext",
"../Skill/XieDao/DiaoLing": "DiaoLing",
"../Skill/XieDao/EYun": "EYun",
"./Buff_Timer": "Buff_Timer"
} ],
Buff: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0122bD1HRhJ+YRjt2Cwpm75", "Buff");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.icon = null;
t.running = !1;
t.owner = null;
t.context = null;
t.time = 0;
t.buffNode = null;
t.prefab = null;
return t;
}
n = t;
t.Start = function(e, t, o, r, i) {
if (o && 1 != o.dead) {
var a = cc.instantiate(e);
a.setParent(o.node);
var l = a.getComponent(n);
l.buffNode = a;
l.prefab = e;
l.Start_(t, o, r, i);
return l;
}
};
t.prototype.Start_ = function(e, t, n, o) {
if (t) {
this.time = this.running ? Math.max(this.time, e) : e;
this.context = n;
this.owner = t;
this.OnInit();
this.OnSetParam(o);
this.OnEnter();
this.running = !0;
this.enabled = !0;
}
};
t.prototype.Stop = function() {
if (this.running) {
this.running = !1;
this.enabled = !1;
cc.isValid(this.buffNode) && this.buffNode.destroy();
this.buffNode = null;
this.OnExit();
}
};
t.prototype.OnReenter = function(e, t, n) {
this.time = this.running ? Math.max(this.time, e) : e;
this.context = t;
this.OnSetParam(n);
};
t.prototype.OnInit = function() {};
t.prototype.OnEnter = function() {};
t.prototype.OnExit = function() {};
t.prototype.OnSetParam = function() {};
t.prototype.SetTime = function(e) {
this.time = e;
};
t.prototype.onDestroy = function() {
this.Stop();
this.owner = null;
this.context = null;
this.buffNode = null;
this.prefab = null;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
this.Stop();
};
var n;
__decorate([ a(cc.SpriteFrame) ], t.prototype, "icon", void 0);
return n = __decorate([ i ], t);
}(o.MyComponent);
n.default = l;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
BulletMovement_Accel: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "61a46An7t9DZbnu7vb3OVHv", "BulletMovement_Accel");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BulletDirType = void 0;
var o, r = e("../../Config/SkillConfig"), i = e("../../RVO2/IBody"), a = e("../LinearBody"), l = e("../Util"), s = e("./BaseBullet"), c = e("./TriggerHandler"), u = cc._decorator, p = u.ccclass, d = u.property;
(function(e) {
e[e.Vec2 = 0] = "Vec2";
e[e.PlayerFace = 1] = "PlayerFace";
e[e.Skill = 2] = "Skill";
})(o = n.BulletDirType || (n.BulletDirType = {}));
var f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.body = null;
t.bulletVelocity = 500;
t.totalTime = 3;
t.dir = cc.v2(cc.Vec2.UP);
t.dirType = o.Vec2;
t.accel = -100;
t.force = cc.v2();
t.bornPnt = cc.v2();
t.bullet = null;
t.passedTime = 0;
t.time = 0;
t.v1 = cc.v2();
return t;
}
t.prototype.onDestroy = function() {
this.bullet = null;
this.body = null;
};
t.prototype.OnInit = function() {
this.bullet = this.getComponent(s.default);
this.node.getPosition(this.bornPnt);
this.passedTime = 0;
switch (this.dirType) {
case o.PlayerFace:
var e = this.bullet.skill.owner.faceRight;
this.dir = this.bullet.skill.owner.faceDir;
this.node.angle = e ? 0 : 180;
this.accel *= this.dir.x;
break;

case o.Skill:
this.dir = l.default.angle2Forward(this.node.angle);
var t = this.force.len();
this.force.set(this.dir).mulSelf(t);
}
var n = this.bulletVelocity, a = this.bullet.skill.skillData.proto.opt;
a && null != a.speed && (n = a.speed);
var c = 1 + (this.bullet.skill.isBulletSkill ? .01 * this.bullet.skill.GetFeature(r.SkillFeature.BulletSpeedUpPercent) : 0);
n *= c;
this.body.velocity.x = this.dir.x * n;
this.body.velocity.y = this.dir.y * n;
this.time = this.totalTime * (1 + .01 * this.bullet.skill.GetFeature(r.SkillFeature.BulletLastTimeUpPercent));
var u = new i.AccelForce(this.force.x, this.force.y, this.time, this.accel * c);
this.body.AddForce1(u);
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
this.passedTime / this.time >= 1 && this.bullet.OnDisapper(this.node.getPosition(this.v1));
};
__decorate([ d(a.default) ], t.prototype, "body", void 0);
__decorate([ d() ], t.prototype, "bulletVelocity", void 0);
__decorate([ d() ], t.prototype, "totalTime", void 0);
__decorate([ d() ], t.prototype, "dir", void 0);
__decorate([ d({
type: cc.Enum(o)
}) ], t.prototype, "dirType", void 0);
__decorate([ d() ], t.prototype, "accel", void 0);
__decorate([ d() ], t.prototype, "force", void 0);
return __decorate([ p ], t);
}(c.default);
n.default = f;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"../../RVO2/IBody": "IBody",
"../LinearBody": "LinearBody",
"../Util": "Util",
"./BaseBullet": "BaseBullet",
"./TriggerHandler": "TriggerHandler"
} ],
BulletMovement_Bezier: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "07ad0YFHMhBdZvJj8QCi6RN", "BulletMovement_Bezier");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Service/kl"), r = e("../../Config/SkillConfig"), i = e("../Util"), a = e("./BaseBullet"), l = e("./TriggerHandler"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.speed = 5;
t.bullet = null;
t.s = cc.v2();
t.e = cc.v2();
t.c = cc.v2();
t.pos = cc.v2();
t.passedTime = 0;
t.startOwnerPos = cc.v2();
t.lastPos = cc.v2();
t.context = null;
t.curSpeed = 0;
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
return t;
}
t.prototype.onDestroy = function() {
this.bullet = null;
};
t.prototype.OnInit = function(e) {
this.bullet = this.getComponent(a.default);
this.context = this.bullet.skill;
this.s.set(this.bullet.skill.owner.firePos.add(e.clone().multiplyScalar(-30)));
this.e.set(this.s.add(e.clone().multiplyScalar(this.context.skillData.proto.range)));
var t = cc.misc.degreesToRadians(o.default.RandomInt(25, 90)), n = o.default.RandomInt(-300, -600), i = o.default.RandomInt(-100, -200), l = cc.v2(e).rotate((Math.random() > .5 ? 1 : -1) * t).multiplyScalar(n).add(this.s.add(e.clone().multiplyScalar(i)));
this.c.set(l);
this.passedTime = 0;
this.startOwnerPos.set(this.context.owner.body.position);
var s = 1 + (this.bullet.skill.isBulletSkill ? .01 * this.bullet.skill.GetFeature(r.SkillFeature.BulletSpeedUpPercent) : 0);
this.curSpeed = this.speed * s;
};
t.prototype.OnUpdate = function(e) {
if (!this.bullet.isDestory) {
this.passedTime += e * this.curSpeed;
if (this.passedTime >= 1) this.bullet.OnDisapper(this.node.getPosition(this.v2)); else {
i.default.CalcBezierPoint(this.s, this.e, this.c, this.passedTime, this.pos);
this.node.setPosition(this.pos);
this.node.angle = i.default.forward2Angle(this.pos.sub(this.lastPos, this.v3).normalizeSelf());
}
this.node.getPosition(this.lastPos);
}
};
__decorate([ u() ], t.prototype, "speed", void 0);
return __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../../Service/kl": void 0,
"../../Config/SkillConfig": "SkillConfig",
"../Util": "Util",
"./BaseBullet": "BaseBullet",
"./TriggerHandler": "TriggerHandler"
} ],
BulletMovement_Circle: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "decb3e+1V1PmLV4Qx4bG/iA", "BulletMovement_Circle");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Config/SkillConfig"), r = e("../Util"), i = e("./BaseBullet"), a = e("./TriggerHandler"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.angleVelocity = 120;
t.raduis = 200;
t.radiusVelocity = 1;
t.relateOwner = !1;
t.rotateBullet = !1;
t.time = 10;
t.bullet = null;
t.passedTime = 0;
t.totalTime = 0;
t.totalVel = 0;
t.initAngle = 0;
t.startPos = cc.v2();
t.offsetRadius = 0;
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
return t;
}
t.prototype.onDestroy = function() {
this.bullet = null;
};
t.prototype.OnInit = function() {
this.bullet = this.getComponent(i.default);
this.passedTime = 0;
var e = 1 + (this.bullet.skill.isBulletSkill ? .01 * this.bullet.skill.GetFeature(o.SkillFeature.BulletSpeedUpPercent) : 0);
this.totalVel = this.angleVelocity * e;
this.totalTime = this.time * (1 + .01 * this.bullet.skill.GetFeature(o.SkillFeature.BulletLastTimeUpPercent));
this.initAngle = this.bullet.node.angle;
this.bullet.node.angle = 0;
this.relateOwner || this.startPos.set(this.bullet.skill.owner.firePos);
this.offsetRadius = 0;
this.OnUpdate(0);
};
t.prototype.OnUpdate = function(e) {
if (this.bullet.skill.isOwnerDead) this.bullet.OnDisapper(this.node.getPosition(this.v2)); else {
this.passedTime += e;
this.offsetRadius += this.radiusVelocity * e;
var t = this.passedTime * this.angleVelocity + this.initAngle, n = r.default.angle2Forward(t, this.v3).mulSelf(this.raduis + this.offsetRadius), o = this.relateOwner ? this.bullet.skill.owner.firePos : this.startPos;
this.node.setPosition(o.add(n, this.v1));
this.rotateBullet && (this.node.angle = t + 90);
var i = this.totalTime - this.passedTime;
this.node.scale = Math.clamp(i, 0, .5) / .5;
i <= 0 && this.bullet.OnDisapper(this.node.getPosition(this.v2));
}
};
__decorate([ c() ], t.prototype, "angleVelocity", void 0);
__decorate([ c() ], t.prototype, "raduis", void 0);
__decorate([ c() ], t.prototype, "radiusVelocity", void 0);
__decorate([ c() ], t.prototype, "relateOwner", void 0);
__decorate([ c() ], t.prototype, "rotateBullet", void 0);
__decorate([ c() ], t.prototype, "time", void 0);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"../Util": "Util",
"./BaseBullet": "BaseBullet",
"./TriggerHandler": "TriggerHandler"
} ],
BulletMovement_Curve: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "dc2d3GtUQJCjYAjJHjXAhgJ", "BulletMovement_Curve");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./BulletMovement"), r = e("./BaseBullet"), i = e("../Util"), a = e("../LevelContext"), l = e("../../Config/SkillConfig"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.warn = null;
t.explodeEffect = null;
t.explodeSound = null;
t.g = -100;
t.bodyRoot = null;
t.passedTime = 0;
t.totalTime = 0;
t.v0 = 0;
t.dotForward = 0;
t.dir = cc.Vec2.ZERO;
t.vel = 0;
t.v2 = cc.v2();
return t;
}
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
this.warn.parent = this.node;
this.warn.active = !1;
};
t.prototype.OnInit = function() {
this.bullet = this.getComponent(r.default);
var e = this.bullet.skill.owner;
this.bornPnt = e.firePos;
var t = this.bullet.skill.GetFireInfo().target;
this.fireLen = t ? cc.Vec2.distance(t.body.position, this.bornPnt) : this.bullet.skill.skillData.proto.range;
this.fireLenSqr = this.fireLen * this.fireLen;
this.vel = this.bulletVelocity;
this.totalTime = this.fireLen / this.vel * (1 + .01 * this.bullet.skill.GetFeature(l.SkillFeature.BulletLastTimeUpPercent));
this.passedTime = 0;
if (t) {
this.dir = t.body.position.sub(this.bornPnt).normalizeSelf();
this.warn.active = !0;
this.warn.parent = a.LevelContext.Instance.groundLayer;
this.warn.setPosition(t.body.position);
} else this.dir = i.default.angle2Forward(this.node.angle);
this.v0 = -.5 * this.g * this.totalTime;
this.dotForward = this.dir.dot(cc.Vec2.RIGHT);
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
this.passedTime = Math.min(this.passedTime, this.totalTime);
var t = this.v0 * this.passedTime + .5 * this.g * this.passedTime * this.passedTime;
this.bodyRoot.y = t * this.dotForward;
this.node.setPosition(this.bornPnt.add(this.dir.mul(this.passedTime * this.vel, this.v2), this.v1));
if (this.passedTime >= this.totalTime) {
this.bullet.skill.PlayEffectHandler(this.explodeEffect, this.explodeSound, this.body.position, 0, a.LevelContext.Instance.effectLayer, null);
this.warn.active = !1;
this.warn.parent = this.node;
this.bullet.OnDisapper(this.body.position);
}
};
__decorate([ u(cc.Node) ], t.prototype, "warn", void 0);
__decorate([ u(cc.Prefab) ], t.prototype, "explodeEffect", void 0);
__decorate([ u({
type: cc.AudioClip
}) ], t.prototype, "explodeSound", void 0);
__decorate([ u() ], t.prototype, "g", void 0);
__decorate([ u(cc.Node) ], t.prototype, "bodyRoot", void 0);
return __decorate([ c ], t);
}(o.default);
n.default = p;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"../LevelContext": "LevelContext",
"../Util": "Util",
"./BaseBullet": "BaseBullet",
"./BulletMovement": "BulletMovement"
} ],
BulletMovement_Follow: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "904c6m4MWhAgJSZUPFKVX6n", "BulletMovement_Follow");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../LevelContext"), r = e("../../../Framework/Core/Resource/MyComponent"), i = e("../View/FollowMovement"), a = e("./BaseBullet"), l = cc._decorator, s = l.ccclass, c = l.property, u = l.requireComponent, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.follow = null;
t.timeout = 999999;
t.delayFollow = .5;
t.passedTime = 0;
t.totalTime = 0;
t.target = null;
t.bullet = null;
t.v1 = cc.v2();
return t;
}
t.prototype.OnInit = function(e) {
this.bullet = this.getComponent(a.default);
this.target = null;
this.totalTime = 0;
this.passedTime = -this.delayFollow;
this.follow.enabled = !1;
this.follow.body.enabled = !0;
this.follow.body.velocity = e.mul(this.follow.speed, this.v1);
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
if (this.passedTime >= .1) {
this.passedTime = 0;
if (!cc.isValid(this.target) || this.target.dead) {
this.target = o.LevelContext.Instance.GetRandomEnemy();
this.target ? this.follow.Start(this.target.node, this.follow.body.forward, null) : this.follow.enabled = !1;
}
}
this.totalTime += e;
this.totalTime >= this.timeout && this.bullet.OnDisapper(cc.Vec2.RIGHT);
};
__decorate([ c(i.default) ], t.prototype, "follow", void 0);
__decorate([ c() ], t.prototype, "timeout", void 0);
return __decorate([ s, u(i.default) ], t);
}(r.MyComponent);
n.default = p;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../LevelContext": "LevelContext",
"../View/FollowMovement": "FollowMovement",
"./BaseBullet": "BaseBullet"
} ],
BulletMovement_HV: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "71e5fKmITNIL4DopvS593d0", "BulletMovement_HV");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../RVO2/IBody"), r = e("../LinearBody"), i = e("./BaseBullet"), a = e("./TriggerHandler"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.body = null;
t.bulletVelocity = 500;
t.totalTime = 3;
t.dir = cc.v2(cc.Vec2.UP);
t.accel = -100;
t.force = cc.v2();
t.interval = 1;
t.randomInterval = 1.5;
t.bornPnt = cc.v2();
t.bullet = null;
t.passedTime = 0;
t.time = 0;
t.isH = !1;
t.tween = null;
t.v1 = cc.v2();
return t;
}
t.prototype.onDestroy = function() {
this.bullet = null;
this.body = null;
};
t.prototype.OnInit = function() {
this.bullet = this.getComponent(i.default);
this.bullet.body.ClearForce();
if (this.tween) {
this.tween.stop();
this.tween = null;
}
this.node.getPosition(this.bornPnt);
this.passedTime = 0;
this.isH = Math.randomBoolean();
this.RandomDirMove();
var e = Math.ceil(this.totalTime / this.randomInterval), t = cc.sequence(cc.delayTime(this.randomInterval), cc.callFunc(this.RandomDirMove.bind(this)));
this.tween = cc.tween(this.node).repeat(e, t).start();
};
t.prototype.RandomDirMove = function() {
this.isH = !this.isH;
this.dir.x = this.isH ? Math.randomSign() : 0;
this.dir.y = this.isH ? 0 : Math.randomSign();
var e = this.bulletVelocity, t = this.bullet.skill.skillData.proto.opt;
t && null != t.speed && (e = t.speed);
this.body.velocity.x = this.dir.x * e;
this.body.velocity.y = this.dir.y * e;
this.time = this.totalTime;
this.force.set(this.dir);
var n = new o.AccelForce(this.force.x, this.force.y, this.interval, this.accel);
this.bullet.body.ClearForce();
this.body.AddForce1(n);
if (this.isH) {
var r = Math.abs(this.node.scale) * this.dir.x;
this.node.setScale(r, this.node.scaleY);
}
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
this.passedTime / this.time >= 1 && this.bullet.OnDisapper(this.node.getPosition(this.v1));
};
__decorate([ c(r.default) ], t.prototype, "body", void 0);
__decorate([ c() ], t.prototype, "bulletVelocity", void 0);
__decorate([ c() ], t.prototype, "totalTime", void 0);
__decorate([ c() ], t.prototype, "dir", void 0);
__decorate([ c() ], t.prototype, "accel", void 0);
__decorate([ c() ], t.prototype, "force", void 0);
__decorate([ c() ], t.prototype, "interval", void 0);
__decorate([ c() ], t.prototype, "randomInterval", void 0);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../RVO2/IBody": "IBody",
"../LinearBody": "LinearBody",
"./BaseBullet": "BaseBullet",
"./TriggerHandler": "TriggerHandler"
} ],
BulletMovement_Weapon8_Effect: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "af5880PdMZPgo2byg+FLJRu", "BulletMovement_Weapon8_Effect");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("../../../../Framework/Core/Resource/MyComponent"), i = e("../../View/FollowMovement"), a = e("../BaseBullet"), l = cc._decorator, s = l.ccclass, c = l.property, u = l.requireComponent, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.follow = null;
t.minLen = 20;
t.target = null;
t.bullet = null;
t.lastPos = cc.v2();
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
t.prototype.OnInit = function() {
this.bullet = this.getComponent(a.default);
this.target = o.LevelContext.Instance.mainPlayer;
this.follow.body.velocity = cc.Vec2.subtract(this.v1, this.target.body.position, this.follow.body.position).normalizeSelf().mul(this.follow.speed, this.v2);
this.follow.Start(this.target.node, this.follow.body.forward, null);
this.lastPos.set(this.follow.body.position);
};
t.prototype.OnUpdate = function() {
var e = cc.Vec2.squaredDistance(this.lastPos, this.follow.body.position), t = cc.Vec2.squaredDistance(this.target.body.position, this.follow.body.position);
(t <= this.minLen * this.minLen || e >= t) && this.bullet.OnDisapper(cc.Vec2.RIGHT);
this.lastPos.set(this.follow.body.position);
};
__decorate([ c(i.default) ], t.prototype, "follow", void 0);
__decorate([ c() ], t.prototype, "minLen", void 0);
return __decorate([ s, u(i.default) ], t);
}(r.MyComponent);
n.default = p;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/MyComponent": void 0,
"../../LevelContext": "LevelContext",
"../../View/FollowMovement": "FollowMovement",
"../BaseBullet": "BaseBullet"
} ],
BulletMovement: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "29fa18ez9VDprCOfREbKWL4", "BulletMovement");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Config/SkillConfig"), r = e("../LinearBody"), i = e("../Util"), a = e("./BaseBullet"), l = e("./TriggerHandler"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.body = null;
t.bulletVelocity = 500;
t.bornPnt = null;
t.bullet = null;
t.fireLen = 0;
t.fireLenSqr = 0;
t.passedTime = 0;
t.totalTime = 0;
t.v1 = cc.v2();
return t;
}
t.prototype.onDestroy = function() {
this.bullet = null;
this.body = null;
};
t.prototype.OnInit = function() {
this.bullet = this.getComponent(a.default);
this.bornPnt = this.node.getPosition();
this.fireLen = this.bullet.skill.skillData.proto.range;
this.fireLenSqr = this.fireLen * this.fireLen;
this.passedTime = 0;
var e = this.bulletVelocity, t = this.bullet.skill.skillData.proto.opt;
t && null != t.speed && (e = t.speed);
e *= 1 + (this.bullet.skill.isBulletSkill ? .01 * this.bullet.skill.GetFeature(o.SkillFeature.BulletSpeedUpPercent) : 0);
this.totalTime = this.fireLen / e * (1 + .01 * this.bullet.skill.GetFeature(o.SkillFeature.BulletLastTimeUpPercent));
this.body.velocity = i.default.angle2Forward(this.node.angle, this.v1).multiplyScalar(e);
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
this.passedTime / this.totalTime >= 1 && this.bullet.OnDisapper(this.node.getPosition(this.v1));
};
__decorate([ u(r.default) ], t.prototype, "body", void 0);
__decorate([ u() ], t.prototype, "bulletVelocity", void 0);
return __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"../LinearBody": "LinearBody",
"../Util": "Util",
"./BaseBullet": "BaseBullet",
"./TriggerHandler": "TriggerHandler"
} ],
BulletSkill_Multi_FirePnts: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0939bChJrdDYoPXF7w8y6DI", "BulletSkill_Multi_FirePnts");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Service/kl"), r = e("../../Config/GameModel"), i = e("../../Config/SkillConfig"), a = e("../LevelContext"), l = e("../Util"), s = e("./BulletSkill"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletAngle = 0;
return t;
}
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n;
return __generator(this, function() {
t = this.context.fireCount;
n = this.context.owner.firePos;
this.CreateBullets(t, e, n);
this.FireBack(e, n);
return [ 2 ];
});
});
};
t.prototype.CreateBullets = function(e, t, n) {
var s = r.default.Instance.enableFxEffect ? this.context.fireEffect : null;
if (e > 1) for (var c = this.context.owner.weapon, u = o.default.A2R(this.bulletAngle + this.context.GetFeature(i.SkillFeature.BulletAngleUp)), p = -u * (e - 1) * .5, d = 0; d < e; d++) {
n = c.GetFirePos(d % c.firePnts.length);
this.CalcOffset(n, t, d);
var f = p + d * u, h = cc.v2(t).rotate(f);
this.CreateBullet(h, n);
l.default.PlayerEffect(this.context.cache, this.context.fireSound, s, n, l.default.forward2Angle(h), a.LevelContext.Instance.effectLayer);
} else {
this.CreateBullet(t, n);
l.default.PlayerEffect(this.context.cache, this.context.fireSound, s, n, l.default.forward2Angle(t), a.LevelContext.Instance.effectLayer);
}
};
__decorate([ p() ], t.prototype, "bulletAngle", void 0);
return __decorate([ u ], t);
}(s.default);
n.default = d;
cc._RF.pop();
}, {
"../../../Service/kl": void 0,
"../../Config/GameModel": "GameModel",
"../../Config/SkillConfig": "SkillConfig",
"../LevelContext": "LevelContext",
"../Util": "Util",
"./BulletSkill": "BulletSkill"
} ],
BulletSkill_Multi_Random: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f52d4oW6ElI46Iqh0axF/yh", "BulletSkill_Multi_Random");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../LevelContext"), i = e("../../Util"), a = e("../BulletSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.speedFactorRange = cc.v2(.7, 1.3);
t.angleRange = cc.v2(-15, 15);
t.fireTimeRange = cc.v2(0, 2);
t.stopWalkTime = 0;
return t;
}
t.prototype.DoFire = function(e) {
var t = this, n = r.LevelContext.Instance.mainPlayer, a = 100;
e.x += o.default.RandomInt(-a, a);
e.y += o.default.RandomInt(-a, a);
var l = this.speedFactorRange, s = this.angleRange, c = o.default.Random(this.fireTimeRange.x, this.fireTimeRange.y);
cc.tween(this.node).delay(c).call(function() {
if (cc.isValid(t.context.owner) && cc.isValid(n)) {
var a = cc.Vec2.subtract(cc.v2(), n.aimPos, t.context.owner.firePos).normalizeSelf().rotate(o.default.A2R(o.default.Random(s.x, s.y)));
i.default.PlayerEffect(t.context.cache, t.context.fireSound, t.context.fireEffect, e, 0, r.LevelContext.Instance.effectLayer);
var c = t.CreateBullet(cc.Vec2.ZERO, e), u = c.body.velocity.len() * o.default.Random(l.x, l.y);
c.body.position = t.context.owner.firePos;
c.body.velocity = a.multiplyScalar(u);
c.node.active = !0;
}
}).start();
if (this.stopWalkTime > 0) {
this.context.owner.walkableCnt--;
cc.tween(this.node).delay(this.stopWalkTime).call(function() {
cc.isValid(t.context.owner) && t.context.owner.walkableCnt++;
}).start();
}
return null;
};
__decorate([ c() ], t.prototype, "speedFactorRange", void 0);
__decorate([ c() ], t.prototype, "angleRange", void 0);
__decorate([ c() ], t.prototype, "fireTimeRange", void 0);
__decorate([ c() ], t.prototype, "stopWalkTime", void 0);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../BulletSkill": "BulletSkill"
} ],
BulletSkill_Multi_X: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "12f93cQtg5FrapW6H0d8ku2", "BulletSkill_Multi_X");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../LevelContext"), i = e("../../Util"), a = e("../BulletSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.xAngle = 90;
t.fireInterval = .3;
t.dirCount = 2;
return t;
}
t.prototype.DoFire = function(e, t, n) {
var a = this;
cc.tween(this.node).delay(n * this.fireInterval).call(function() {
var l = 0;
if (a.randomOffset) l = o.default.Random(-a.offsetY, a.offsetY); else {
var s = a.context.fireCount;
l = -(s - 1) * a.offsetY / 2 + (s - n - 1) * a.offsetY;
}
Math.abs(t.x) > .1 ? e.y += l : e.x += l;
for (var c = null, u = 0; u < a.dirCount; u++) c = a.CreateBullet(t.rotate(i.default.A2R(u * a.xAngle)), e);
i.default.PlayerEffect(a.context.cache, a.context.fireSound, a.context.fireEffect, c.node.getPosition(), a.rotateFireEffect ? c.node.angle : 0, r.LevelContext.Instance.effectLayer);
}).start();
return null;
};
__decorate([ c() ], t.prototype, "xAngle", void 0);
__decorate([ c() ], t.prototype, "fireInterval", void 0);
__decorate([ c() ], t.prototype, "dirCount", void 0);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../BulletSkill": "BulletSkill"
} ],
BulletSkill_Multi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e4996ISh9tLJbSbRGJnzg+C", "BulletSkill_Multi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Service/kl"), r = e("../../Config/GameModel"), i = e("../../Config/SkillConfig"), a = e("../LevelContext"), l = e("../Util"), s = e("./BulletSkill"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.delayTime = 0;
t.bulletAngle = 0;
t.stopWalkTime = 0;
t.angleOffsetRange = cc.v2(0, 0);
t.numberBasedBulletAngle = !1;
return t;
}
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, o = this;
return __generator(this, function(i) {
switch (i.label) {
case 0:
t = this.context.fireCount;
n = this.context.owner.firePos;
l.default.PlayerEffect(this.context.cache, this.context.fireSound, r.default.Instance.enableFxEffect ? this.context.fireEffect : null, n, l.default.forward2Angle(e), a.LevelContext.Instance.effectLayer);
return this.delayTime > 0 ? [ 4, this.waitForTime(this.delayTime) ] : [ 3, 2 ];

case 1:
i.sent();
i.label = 2;

case 2:
this.CreateBullets(t, e, n);
this.FireBack(e, n);
if (this.stopWalkTime > 0) {
this.context.owner.walkableCnt--;
cc.tween(this.node).delay(this.stopWalkTime).call(function() {
cc.isValid(o.context.owner) && o.context.owner.walkableCnt++;
}).start();
}
return [ 2 ];
}
});
});
};
t.prototype.CreateBullets = function(e, t, n) {
this.numberBasedBulletAngle && (this.bulletAngle = 360 / e);
if (e > 1) for (var r = o.default.A2R(this.bulletAngle + this.context.GetFeature(i.SkillFeature.BulletAngleUp)), a = -r * (e - 1) * .5 + o.default.A2R(o.default.Random(this.angleOffsetRange.x, this.angleOffsetRange.y)), l = 0; l < e; l++) {
var s = a + l * r;
this.CreateBullet(cc.v2(t).rotate(s), n);
} else this.CreateBullet(t, n);
};
__decorate([ p() ], t.prototype, "delayTime", void 0);
__decorate([ p() ], t.prototype, "bulletAngle", void 0);
__decorate([ p() ], t.prototype, "stopWalkTime", void 0);
__decorate([ p() ], t.prototype, "angleOffsetRange", void 0);
__decorate([ p() ], t.prototype, "numberBasedBulletAngle", void 0);
return __decorate([ u ], t);
}(s.default);
n.default = d;
cc._RF.pop();
}, {
"../../../Service/kl": void 0,
"../../Config/GameModel": "GameModel",
"../../Config/SkillConfig": "SkillConfig",
"../LevelContext": "LevelContext",
"../Util": "Util",
"./BulletSkill": "BulletSkill"
} ],
BulletSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "eff91sz1TtFp5dDq+2O1vBd", "BulletSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BulletSkillContext = void 0;
var o = e("../../../Service/kl"), r = e("../../Config/GameModel"), i = e("../../Config/SkillConfig"), a = e("../LevelContext"), l = e("../Util"), s = e("./BaseSkill"), c = e("./SkillContext"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletPrefab = null;
return t;
}
return t;
}(c.default);
n.BulletSkillContext = f;
var h = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletPrefab = null;
t.offsetY = 0;
t.randomOffset = !1;
t.ignoreScale = !1;
t.ignoreRotation = !1;
t.rotateFireEffect = !0;
t.context = new f();
return t;
}
t.prototype.InitContext = function() {
e.prototype.InitContext.call(this);
this.context.bulletPrefab = this.bulletPrefab;
};
t.prototype.DoCreateBullet = function(e, t) {
return this.context.DoCreateBullet(this.bulletPrefab, a.LevelContext.Instance.effectLayer, e, t, this.ignoreScale, this.ignoreRotation);
};
t.prototype.CreateBullet = function(e, t) {
var n = this.DoCreateBullet(e, t);
this.context.DoInitBullet(n, e);
return n;
};
t.prototype.CalcOffset = function(e, t, n) {
var r = 0;
if (this.randomOffset) r = o.default.Random(-this.offsetY, this.offsetY); else {
var i = this.context.fireCount;
r = -(i - 1) * this.offsetY / 2 + (i - n - 1) * this.offsetY;
}
Math.abs(t.x) > .1 ? e.y += r : e.x += r;
};
t.prototype.DoFire = function(e, t, n) {
this.CalcOffset(e, t, n);
return this.CreateBullet(t, e);
};
t.prototype.FireBack = function(e, t) {
var n = this.context.GetFeature(i.SkillFeature.BulletBackNumUp);
if (!(n <= 0)) {
e = e.mul(-1, cc.v2());
for (var o = 0; o < n; o++) this.DoFire(t, e, o);
}
};
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, o;
return __generator(this, function() {
t = this.context.fireCount;
n = this.context.owner.firePos;
for (o = 0; o < t; o++) this.DoFire(n, e, o);
this.FireBack(e, n);
l.default.PlayerEffect(this.context.cache, this.context.fireSound, r.default.Instance.enableFxEffect ? this.context.fireEffect : null, n, this.rotateFireEffect ? l.default.forward2Angle(e) : 0, a.LevelContext.Instance.effectLayer);
return [ 2 ];
});
});
};
__decorate([ d(cc.Prefab) ], t.prototype, "bulletPrefab", void 0);
__decorate([ d() ], t.prototype, "offsetY", void 0);
__decorate([ d() ], t.prototype, "randomOffset", void 0);
__decorate([ d() ], t.prototype, "ignoreScale", void 0);
__decorate([ d() ], t.prototype, "ignoreRotation", void 0);
__decorate([ d() ], t.prototype, "rotateFireEffect", void 0);
return __decorate([ p ], t);
}(s.default);
n.default = h;
cc._RF.pop();
}, {
"../../../Service/kl": void 0,
"../../Config/GameModel": "GameModel",
"../../Config/SkillConfig": "SkillConfig",
"../LevelContext": "LevelContext",
"../Util": "Util",
"./BaseSkill": "BaseSkill",
"./SkillContext": "SkillContext"
} ],
Cadence: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "148aeohpB5FAoVYvR8xK5kY", "Cadence");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../BulletSkill"), a = e("./BaseTalentSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletDamageUpPercent = 20;
t.bulletScaleUpPercent = 50;
t.everyBullet = 3;
t.bulletCnt = 0;
return t;
}
Object.defineProperty(t.prototype, "damageRatio", {
get: function() {
return this.bulletDamageUpPercent / 100 * this.context.talentData.lv + 1;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return t.weaponSkill.context.getDamageFunc() * n.damageRatio;
};
return [ 2 ];
});
});
};
t.prototype.OnStartTalent = function() {
this.bulletCnt = 0;
};
t.prototype.OnPlayerPreFireBullet = function(e, t) {
if (e.weaponSkill instanceof i.default) {
this.bulletCnt++;
if (this.bulletCnt % this.everyBullet == 0) {
var n = e.weaponSkill, o = this.context.CreateBullet(n.bulletPrefab, r.LevelContext.Instance.effectLayer, e.fireForward, e.firePos, n.ignoreScale, n.ignoreRotation);
o.damage = n.context.GetDamage() * this.damageRatio;
o.node.scale *= 1 + this.bulletScaleUpPercent / 100;
o.throughPlayer = !0;
o.critable = !1;
t.skipFire = !0;
}
}
};
__decorate([ c() ], t.prototype, "bulletDamageUpPercent", void 0);
__decorate([ c() ], t.prototype, "bulletScaleUpPercent", void 0);
__decorate([ c() ], t.prototype, "everyBullet", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnPlayerPreFireBullet", null);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BulletSkill": "BulletSkill",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
CameraWall: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bf4fauAFxpGV51IlmAuVAMG", "CameraWall");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.CameraWall = void 0;
var o = cc._decorator, r = o.ccclass, i = o.property, a = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.camera = null;
t.myWiget = null;
return t;
}
t.prototype.onLoad = function() {
this.myWiget = this.getComponent(cc.Widget);
};
t.prototype.update = function() {
var e = this.node.parent.getContentSize(), t = this.camera.zoomRatio;
this.myWiget.left = this.myWiget.right = .5 * (e.width - e.width / t);
this.myWiget.top = this.myWiget.bottom = .5 * (e.height - e.height / t);
this.node.setPosition(this.camera.node.getPosition());
};
__decorate([ i(cc.Camera) ], t.prototype, "camera", void 0);
return __decorate([ r ], t);
}(cc.Component);
n.CameraWall = a;
cc._RF.pop();
}, {} ],
CameraWorldRect: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e14aaE9vXZBC6HCOo4dFzr/", "CameraWorldRect");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, r = o.ccclass, i = o.property, a = o.requireComponent, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.debugSprite = null;
t.camera = null;
t.localRect_ = new cc.Rect(0, 0, 0, 0);
t.isRectDirty = !0;
t.dirtyFrame = Number.MAX_VALUE;
return t;
}
n = t;
Object.defineProperty(t.prototype, "localRect", {
get: function() {
if (!this.isRectDirty) return this.localRect_;
var e = this.node.position, t = cc.view.getVisibleSize(), n = .5 * t.width, o = .5 * t.height, r = e.x, i = e.y, a = this.camera.zoomRatio;
n /= a;
o /= a;
this.localRect_.xMin = r - n;
this.localRect_.yMin = i - o;
this.localRect_.xMax = this.localRect_.xMin + 2 * n;
this.localRect_.yMax = this.localRect_.yMin + 2 * o;
this.isRectDirty = !1;
return this.localRect_;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
n.instance = this;
this.camera = this.getComponent(cc.Camera);
this.dirtyFrame = cc.director.getTotalFrames() + 1;
this.node.on(cc.Node.EventType.POSITION_CHANGED, this.onPositionChanged.bind(this));
};
t.prototype.onPositionChanged = function() {
this.isRectDirty = !0;
this.dirtyFrame = cc.director.getTotalFrames() + 1;
};
t.prototype.IsVisible = function(e) {
return this.localRect.intersects(e);
};
var n;
t.instance = null;
__decorate([ i(cc.Sprite) ], t.prototype, "debugSprite", void 0);
return n = __decorate([ r, a(cc.Camera) ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
CenterGridLayout: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "434edRnXMdBPJr4o5y3upSn", "CenterGridLayout");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, r = o.ccclass, i = o.property, a = o.executeInEditMode, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.numPerCol = 4;
t.xspace = 0;
t.yspace = 0;
t.affectByScale = !1;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.onEnable = function() {
this.LayoutRewardContainer();
};
t.prototype.update = function() {
this.LayoutRewardContainer();
};
t.prototype.GetActiveChild = function(e) {
for (var t = -1, n = 0; n < this.node.children.length; n++) {
var o = this.node.children[n];
if (o.active && ++t == e) return o;
}
return null;
};
t.prototype.LayoutRewardContainer = function() {
var e = 0;
this.node.children.forEach(function(t) {
t.active && e++;
});
if (!(e <= 0)) {
for (var t = this.xspace, n = this.yspace, o = this.numPerCol, r = e, i = Math.ceil(r / o), a = Math.ceil(Math.min(o, r)), l = 0, s = null, c = 0; c < i; c++) {
for (var u = 0, p = 0; p < a; p++) if (!((v = c * o + p) >= r)) {
var d = this.GetActiveChild(v);
0 == p && 0 == c && (s = d);
u = Math.max(d.height * (this.affectByScale ? d.scaleX : 1) + n, u);
}
l += u;
}
this.node.setContentSize(this.node.width, l);
var f = l / 2 - (s.height * (this.affectByScale ? s.scaleX : 1) + n) / 2;
for (c = 0; c < i; c++) {
var h = 0, m = 0, w = null;
for (p = 0; p < a; p++) if (!((v = c * o + p) >= r)) {
d = this.GetActiveChild(v);
0 == p && (w = d);
h += d.width * (this.affectByScale ? d.scaleX : 1) + t;
m = Math.max(d.height * (this.affectByScale ? d.scaleX : 1) + n, m);
}
var y = cc.v2(-h / 2 + (w.width * (this.affectByScale ? w.scaleX : 1) + t) / 2, f);
f -= m;
var g = y.x;
for (p = 0; p < a; p++) {
var v = c * o + p;
d = this.GetActiveChild(v);
if (!(v >= r)) {
d.setPosition(g, y.y, 0);
g += d.width * (this.affectByScale ? w.scaleX : 1) + t;
}
}
}
}
};
__decorate([ i ], t.prototype, "numPerCol", void 0);
__decorate([ i ], t.prototype, "xspace", void 0);
__decorate([ i ], t.prototype, "yspace", void 0);
__decorate([ i ], t.prototype, "affectByScale", void 0);
return __decorate([ r, a ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
ChaoZai: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "19355lu27NFLKelMZl9Sidl", "ChaoZai");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../Buff/Buff_Burning"), i = e("../../LevelContext"), a = e("../BaseSkill"), l = cc._decorator, s = l.ccclass, c = (l.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnHitEntity = function(e) {
if (e.context.isLightningSkill) {
var t = e.target;
if (t.HasBuff(r.Buff_Burning)) {
this.PlayRecoilEffect(cc.Vec2.RIGHT);
this.context.PlayEffectHandler(this.fireEffect, this.fireSound, t.body.position, 0, i.LevelContext.Instance.effectLayer, null);
}
}
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ s ], t);
}(a.default));
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../Buff/Buff_Burning": "Buff_Burning",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill"
} ],
ChapterPackUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "107446VcMNHGKkL81g+7NzM", "ChapterPackUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/UI/WaitingUI"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Service/Analys"), c = e("../../Service/PlatformService"), u = e("../Battle/Util"), p = e("../Config/ArchivementConfig"), d = e("../Config/ChestConfig"), f = e("../Config/GameModel"), h = e("../Config/GiftConfig"), m = e("../Config/ShopConfig"), w = e("./HallUI"), y = e("./MyPayButton"), g = e("./RewardsUI"), v = cc._decorator, S = v.ccclass, M = v.property, k = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.scrollViewNode = null;
t.content = null;
t.gapNode = null;
t.tips = null;
t.statementNode = null;
t.blueprintStatement = null;
t.pieceStatement = null;
return t;
}
t.prototype.onLoad = function() {
for (var e = 0, t = 0; t < m.ShopConfig.ChapterPackRewards.length; t++) {
var n = u.default.GetOrCreateChild(t + 1, this.content, 1);
n.findChild("title").getComponent(cc.Label).string = "" + (t + 1);
for (var o = n.findChild("bg"), r = 0; r < o.children.length; r++) o.children[r].active = r == e % o.children.length;
e++;
var i = m.ShopConfig.ChapterPackRewards[t], a = n.findChild("Button").getComponent(y.default);
a.productName = "章节礼包" + (t + 1);
a.payId = i.id;
var l = n.findChild("Item");
l.findChild("num1").getComponent(cc.Label).string = "x" + i.blueprintNum;
l.findChild("num2").getComponent(cc.Label).string = "x" + i.weaponNum;
l.findChild("num3").getComponent(cc.Label).string = "x" + i.gold;
l.findChild("num4").getComponent(cc.Label).string = "x" + i.diamond;
}
};
t.prototype.OnSetParams = function() {
this.tips.active = c.default.payable;
this.UpdateUI();
this.statementNode.active = !1;
};
t.prototype.UpdateUI = function() {
for (var e = 0; e < m.ShopConfig.ChapterPackRewards.length; e++) {
var t = u.default.GetOrCreateChild(e + 1, this.content, 1), n = e + 1, o = f.default.Instance.chapterPackStates.indexOf(n) < 0, r = f.default.Instance.IsChapterPassed(n) && o;
t.findChild("Lock").active = o && !r;
t.findChild("Buy").active = !o;
if (t.active) {
t.setScale(0, 0, 0);
cc.tween(t).delay(.05 * e).to(.05, {
scale: 1.1
}, {
easing: "sineInOut"
}).to(.05, {
scale: 1
}).start();
}
}
this.CheckScrollView();
};
t.prototype.CheckScrollView = function() {
var e = this;
this.scheduleOnce(function() {
var t = e.scrollViewNode.width, n = e.content.width - e.gapNode.width;
e.gapNode.active = n < t;
n < t && (e.gapNode.width = .5 * (t - n));
}, .01);
};
t.prototype.OnBuyClick = function() {};
t.prototype.OnStatementClick = function(e, t) {
var n = parseInt(t);
this.statementNode.active = !0;
this.blueprintStatement.active = 0 == n;
this.pieceStatement.active = 1 == n;
};
t.prototype.OnStatementClose = function() {
this.statementNode.active = !1;
};
__decorate([ M(cc.Node) ], t.prototype, "scrollViewNode", void 0);
__decorate([ M(cc.Node) ], t.prototype, "content", void 0);
__decorate([ M(cc.Node) ], t.prototype, "gapNode", void 0);
__decorate([ M(cc.Node) ], t.prototype, "tips", void 0);
__decorate([ M(cc.Node) ], t.prototype, "statementNode", void 0);
__decorate([ M(cc.Node) ], t.prototype, "blueprintStatement", void 0);
__decorate([ M(cc.Node) ], t.prototype, "pieceStatement", void 0);
return __decorate([ S, r.RegisterView("ChapterPackUI", i.ViewLayer.NormalLayer) ], t);
}(a.default);
n.default = k;
c.default.OnPay.AddEvent(function(e, t, n) {
if (e.name.startsWith("章节礼包")) {
var r = parseInt(e.name.substring(4));
if (n) {
f.default.Instance.chapterPackStates.push(r);
for (var i = m.ShopConfig.GetChapterData("5" + r), a = [], c = d.ChestConfig.GetBlueprintRewards(d.ChestConfig.shopWeaponStuffParam, i.blueprintNum, [ i.blueprintRang, i.blueprintRang ]), u = d.ChestConfig.GetWeaponRewards(d.ChestConfig.shopWeaponPieceParam, 0, i.weaponNum, [ i.weaponRange, i.weaponRange ]), y = 0; y < c.length; y++) a.push(c[y]);
for (y = 0; y < u.length; y++) a.push(u[y]);
a.push(new h.RewardProto(p.UnlockType.Coin, i.gold));
a.push(new h.RewardProto(p.UnlockType.Diamond, i.diamond));
g.default.ShowView("购买章节礼包", a, function() {
var t = l.default.GetView(k);
if (t) {
t.UpdateUI();
if (f.default.Instance.validChapterPackCnt <= 0) {
t.HideView();
var n = l.default.GetView(w.default);
n && n.UpdateUI();
}
}
s.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
});
}
l.default.HideView(o.default);
}
});
cc._RF.pop();
}, {
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Service/Analys": void 0,
"../../Service/PlatformService": void 0,
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/ChestConfig": "ChestConfig",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"../Config/ShopConfig": "ShopConfig",
"./HallUI": "HallUI",
"./MyPayButton": "MyPayButton",
"./RewardsUI": "RewardsUI"
} ],
ChasePlayerAI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fbd01b8FzlFx67JhGf0NwMx", "ChasePlayerAI");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ChasePlayerAI = void 0;
var o = e("./AI"), r = e("./AIComponent"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
return t;
}
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
this.frame++;
if (!(this.owner.isJumping || this.owner.walkableCnt <= 0)) if (this.owner.followPlayer) {
if (this.frame % 20 == 0) {
var n = this.owner.target;
if (n) {
cc.Vec2.subtract(this.v1, n.node.getPosition(this.v2), this.node.getPosition(this.v3));
if (this.owner.proto.fireRange > 0) {
var o = this.v1.lengthSqr();
if (this.owner.inCameraTotalTime > 0 && o <= this.owner.proto.fireRange * this.owner.proto.fireRange) {
this.SetVelocity(cc.Vec2.ZERO);
this.owner.anim && (this.owner.anim.enabled = this.owner.hasIdleAnim);
return;
}
this.owner.anim && (this.owner.anim.enabled = !0);
} else this.owner.anim && !this.owner.anim.enabled && (this.owner.anim.enabled = !0);
this.v1.normalizeSelf();
this.v1.mulSelf(this.owner.speed);
this.SetVelocity(this.v1);
}
}
} else this.SetVelocity(this.owner.body.velocity);
};
t.prototype.SetVelocity = function(e) {
this.owner.body.velocity = e;
};
return __decorate([ a ], t);
}(o.AI));
n.ChasePlayerAI = l;
r.AIComponent.createDefaultAI = function(e) {
return e.addComponent(l);
};
cc._RF.pop();
}, {
"./AI": "AI",
"./AIComponent": "AIComponent"
} ],
ChestConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bf4a8+eVo1EZ5vj2dGFYnOl", "ChestConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ChestConfig = n.ChestType = void 0;
var o = e("../Battle/Util"), r = e("./ArchivementConfig"), i = e("./GameModel"), a = e("./GiftConfig"), l = e("./SafeInt");
(function(e) {
e[e.blueprint = 0] = "blueprint";
e[e.weapon = 1] = "weapon";
e[e.equipment = 2] = "equipment";
})(n.ChestType || (n.ChestType = {}));
var s = function() {
function e() {}
e.Random = function(e, t) {
if (1 == e.length) return e[0];
for (var n = [], r = 0; r < e.length; r++) for (var i = e[r], a = 0; a < Math.ceil(t[r]); a++) n.push(i);
n.sort(function() {
return o.default.RandomInt(-1, 1);
});
return n[o.default.RandomInt(0, n.length - 1)];
};
e.GetBlueprintRewards = function(t, n, l, s) {
void 0 === n && (n = 0);
void 0 === s && (s = 6e3);
for (var c = [], u = i.default.Instance, p = [], d = [], f = 0; f < u.weaponList.length; f++) {
var h = u.weaponList[f], m = h.proto.type;
if (h.unlock.boolValue && !p.contains(m) && h.level.intValue < 12 * h.proto.classProps.length) {
var w = m < t.weights.length ? t.weights[m] : t.defaultWeight;
if (w > 0) {
p.push(m);
d.push(w);
}
}
}
console.log("找出已解锁武器类型", p, d, p.length);
if (0 == p.length) {
if (s > 0) {
c.push(new a.RewardProto(r.UnlockType.Coin, s));
console.log("检测到所有(已拥有)的武器均满级，则开出金币" + s);
}
return c;
}
var y = null != l ? o.default.RandomInt(l[0], l[1]) : o.default.RandomInt(t.kindRange[0], t.kindRange[1]);
y = y > p.length ? p.length : y;
0 == n && (n = o.default.RandomInt(t.totalNumRange[0], t.totalNumRange[1]));
y = y < n ? y : n;
console.log("类型数量:", y, "总数:", n);
var g = [];
for (f = 0; f < y; f++) g.push(1);
n -= y;
for (f = 0; f < n; f++) g[o.default.RandomInt(0, g.length - 1)]++;
console.log("数量数组:", g);
for (f = 0; f < y; f++) {
var v = e.Random(p, d), S = p.indexOf(v);
p.splice(S, 1);
d.splice(S, 1);
c.push(new a.RewardProto(r.UnlockType.BluePrint, g[f], v));
console.log("开出图纸:", v, "数量:", g[f]);
}
var M = o.default.RandomInt(t.goldRange[0], t.goldRange[1]);
if (M > 0) {
c.push(new a.RewardProto(r.UnlockType.Coin, M));
console.log("开出金币:", M);
}
return c;
};
e.GetWeaponRewards = function(t, n, l, s, c, u, p) {
void 0 === l && (l = 0);
void 0 === c && (c = !0);
void 0 === u && (u = 1);
void 0 === p && (p = !1);
var d = [], f = 0;
if (p) {
var h = 10 * Math.floor(n / 10);
if ((h = 0 == h ? 10 : h) % 30 == 0) {
t = e.weaponChestParamPer30;
f = 3;
} else if (h % 10 == 0) {
t = e.weaponChestParamPer10;
f = 1;
}
} else if (n > 0 && 10 != u) if (n % 30 == 0) {
t = e.weaponChestParamPer30;
f = 3;
} else if (n % 10 == 0) {
t = e.weaponChestParamPer10;
f = 1;
}
console.log("开武器宝箱----------", n, "开箱类型：", f, l);
for (var m = i.default.Instance, w = [], y = [], g = [], v = [], S = 0; S < m.weaponList.length; S++) {
var M = m.weaponList[S];
if (M.unlock.boolValue) {
if (M.classLevel.intValue < M.proto.classProps.length && (C = (k = M.id - 1) < t.weights.length ? t.weights[k] : t.defaultWeight) > 0) {
w.push(M.id);
y.push(C);
}
} else {
var k, C;
if ((C = (k = M.id - 1) < t.weights.length ? t.weights[k] : t.defaultWeight) > 0) {
g.push(M.id);
v.push(C);
}
}
}
console.log("找出已解锁武器", w, y);
console.log("找出未解锁武器", g, v);
if (0 != f && (w.length > 0 || g.length > 0)) {
var P;
P = 0 == w.length || 0 != g.length && o.default.RandomInt(0, 100) < t.lockWeight;
console.log("--------------------------------openWhite:", P);
if (P) {
var _ = e.Random(g, v);
d.push(new a.RewardProto(r.UnlockType.Weapon, 1, _, "", 1));
console.log("开出白色武器", _);
} else {
_ = e.Random(w, y);
var O = 3 == f ? 3 : 2;
d.push(new a.RewardProto(r.UnlockType.Weapon, 1, _, null, O));
console.log("直接开出武器：", _, O);
}
}
if (0 == w.length) {
if (c) {
d.push(new a.RewardProto(r.UnlockType.Coin, 1e4));
console.log("检测到所有(已拥有)的武器均满阶(红色)，则开出金币10000");
}
return d;
}
var b = null != s ? o.default.RandomInt(s[0], s[1]) : o.default.RandomInt(t.kindRange[0], t.kindRange[1]);
b = b > w.length ? w.length : b;
0 == l && (l = o.default.RandomInt(t.totalNumRange[0], t.totalNumRange[1]));
b = b < l ? b : l;
console.log("类型数量:", b, "总数:", l);
var F = [];
for (S = 0; S < b; S++) F.push(1);
l -= b;
for (S = 0; S < l; S++) F[o.default.RandomInt(0, F.length - 1)]++;
console.log("数量数组:", F);
for (S = 0; S < b; S++) {
_ = e.Random(w, y);
var I = w.indexOf(_), E = F[S];
w.splice(I, 1);
y.splice(I, 1);
d.push(new a.RewardProto(r.UnlockType.Piece, E, _));
console.log("开出武器碎片:", _, "数量:", E, " ID:", _);
}
var D = o.default.RandomInt(t.goldRange[0], t.goldRange[1]);
if (D > 0) {
d.push(new a.RewardProto(r.UnlockType.Coin, D));
console.log("开出金币:", D);
}
return d;
};
e.GetEquipmentRewards = function(t, n, l, s, c, u) {
void 0 === l && (l = !1);
void 0 === s && (s = 0);
void 0 === u && (u = 0);
for (var p = [], d = [], f = [], h = [], m = 0, w = 0; w < i.default.Instance.equipmentList.length; w++) {
var y = i.default.Instance.equipmentList[w];
if (y.proto.type == n) {
if (!y.unlock.boolValue) {
var g = m < t.weights.length ? t.weights[m] : t.defaultWeight;
if (g > 0 && y.piece.intValue < y.proto.unlockPieces) {
d.push(y.id);
f.push(g);
h.push(y.proto.unlockPieces - y.piece.intValue);
}
}
m++;
}
}
if (0 == d.length) {
u > 0 && p.push(new a.RewardProto(r.UnlockType.Coin, u));
l && t.blurprint && (F = o.default.RandomInt(t.blurprint[0], t.blurprint[1])) > 0 && p.push(new a.RewardProto(r.UnlockType.EquipmentBluePrint, F));
return p;
}
var v = null != c ? o.default.RandomInt(c[0], c[1]) : o.default.RandomInt(t.kindRange[0], t.kindRange[1]);
v = v > d.length ? d.length : v;
0 == s && (s = o.default.RandomInt(t.totalNumRange[0], t.totalNumRange[1]));
v = v < s ? v : s;
var S = [];
for (w = 0; w < v; w++) S.push(1);
s -= v;
for (w = 0; w < s; w++) S[o.default.RandomInt(0, S.length - 1)]++;
var M = 0, k = [], C = [], P = [];
for (w = 0; w < v; w++) {
var _ = e.Random(d, f), O = d.indexOf(_), b = S[w];
if (b > h[O]) {
M += b - h[O];
b = h[O];
}
k.push(_);
C.push(b);
P.push(h[O]);
d.splice(O, 1);
f.splice(O, 1);
h.splice(O, 1);
}
if (M > 0) for (w = 0; w < k.length; w++) if (C[w] < P[w]) {
if (P[w] - C[w] > M) {
C[w] += M;
M = 0;
break;
}
M -= P[w] - C[w];
C[w] = P[w];
}
if (M > 0) for (w = 0; w < M; w++) C[o.default.RandomInt(0, C.length - 1)]++;
for (w = 0; w < k.length; w++) p.push(new a.RewardProto(r.UnlockType.EquipmentPiece, C[w], k[w]));
if (l && t.blurprint) {
var F;
(F = o.default.RandomInt(t.blurprint[0], t.blurprint[1])) > 0 && p.push(new a.RewardProto(r.UnlockType.EquipmentBluePrint, F));
}
var I = o.default.RandomInt(t.goldRange[0], t.goldRange[1]);
if (I > 0) {
p.push(new a.RewardProto(r.UnlockType.Coin, I));
console.log("开出金币:", I);
}
return p;
};
e.blueprintChestParam = {
free: 1,
needDiamond: new l.default(60),
kindRange: [ 3, 4 ],
totalNumRange: [ 8, 10 ],
weights: [ 10, 10, 10, 10, 10, 10 ],
defaultWeight: 10,
goldRange: [ 500, 620 ]
};
e.blueprintChestParam10 = {
free: 0,
needDiamond: new l.default(540),
kindRange: [ 4, 5 ],
totalNumRange: [ 80, 92 ],
weights: [ 10, 10, 10, 10, 10, 10 ],
defaultWeight: 10,
goldRange: [ 5e3, 5120 ]
};
e.weaponChestParam = {
free: 0,
needDiamond: new l.default(160),
kindRange: [ 3, 4 ],
totalNumRange: [ 10, 12 ],
weights: [ 10, 10, 10, 10, 10, 10, 7, 7, 7, 7, 3 ],
defaultWeight: 10,
goldRange: [ 1500, 1550 ],
lockWeight: 0,
weapon2Piece: 0
};
e.weaponChestParam10 = {
free: 0,
needDiamond: new l.default(1440),
kindRange: [ 3, 4 ],
totalNumRange: [ 90, 95 ],
weights: [ 10, 10, 10, 10, 10, 10, 7, 3, 7, 7, 3 ],
defaultWeight: 10,
goldRange: [ 13500, 13700 ],
lockWeight: 0,
weapon2Piece: 0
};
e.weaponChestParamPer10 = {
free: 0,
needDiamond: new l.default(160),
kindRange: [ 3, 4 ],
totalNumRange: [ 8, 10 ],
weights: [ 10, 10, 10, 10, 10, 10, 7, 3, 7, 7, 3 ],
defaultWeight: 10,
goldRange: [ 1500, 1580 ],
lockWeight: 8,
weapon2Piece: 8
};
e.weaponChestParamPer30 = {
free: 0,
needDiamond: new l.default(160),
kindRange: [ 3, 4 ],
totalNumRange: [ 8, 10 ],
weights: [ 10, 10, 10, 10, 10, 10, 10, 3, 10, 7, 3 ],
defaultWeight: 10,
goldRange: [ 1500, 1580 ],
lockWeight: 20,
weapon2Piece: 12
};
e.shopWeaponStuffParam = {
free: 0,
needDiamond: new l.default(0),
kindRange: [ 3, 3 ],
totalNumRange: [ 50, 50 ],
weights: [ 10, 10, 10, 10, 10, 10 ],
defaultWeight: 10,
goldRange: [ 0, 0 ]
};
e.shopWeaponPieceParam = {
free: 0,
needDiamond: new l.default(0),
kindRange: [ 3, 3 ],
totalNumRange: [ 30, 30 ],
weights: [ 10, 10, 10, 10, 10, 10, 7, 3, 7, 7, 3 ],
defaultWeight: 10,
goldRange: [ 0, 0 ],
lockWeight: 0,
weapon2Piece: 0
};
e.maskChestParam = {
free: 0,
needDiamond: new l.default(120),
kindRange: [ 1, 2 ],
totalNumRange: [ 3, 4 ],
weights: [ 8, 40, 15, 5, 3, 0 ],
defaultWeight: 10,
goldRange: [ 0, 0 ],
blurprint: [ 5, 7 ]
};
e.wingChestParam = {
free: 0,
needDiamond: new l.default(120),
kindRange: [ 1, 2 ],
totalNumRange: [ 3, 4 ],
weights: [ 40, 30, 15, 10, 3, 0 ],
defaultWeight: 10,
goldRange: [ 0, 0 ],
blurprint: [ 5, 7 ]
};
e.maskChestParam10 = {
free: 0,
needDiamond: new l.default(1080),
kindRange: [ 2, 2 ],
totalNumRange: [ 15, 20 ],
weights: [ 8, 40, 15, 5, 3, 0 ],
defaultWeight: 10,
goldRange: [ 0, 0 ],
blurprint: [ 50, 65 ]
};
e.wingChestParam10 = {
free: 0,
needDiamond: new l.default(1080),
kindRange: [ 2, 2 ],
totalNumRange: [ 15, 17 ],
weights: [ 50, 20, 15, 10, 3, 0 ],
defaultWeight: 10,
goldRange: [ 0, 0 ],
blurprint: [ 0, 0 ]
};
e.shopMaskParam = {
free: 0,
needDiamond: new l.default(0),
kindRange: [ 1, 2 ],
totalNumRange: [ 8, 8 ],
weights: [ 8, 40, 15, 5, 3, 0 ],
defaultWeight: 10,
goldRange: [ 0, 0 ],
blurprint: [ 0, 0 ]
};
e.shopWingParam = {
free: 0,
needDiamond: new l.default(0),
kindRange: [ 1, 2 ],
totalNumRange: [ 8, 8 ],
weights: [ 50, 20, 15, 10, 3, 0 ],
defaultWeight: 10,
goldRange: [ 0, 0 ],
blurprint: [ 15, 15 ]
};
return e;
}();
n.ChestConfig = s;
cc._RF.pop();
}, {
"../Battle/Util": "Util",
"./ArchivementConfig": "ArchivementConfig",
"./GameModel": "GameModel",
"./GiftConfig": "GiftConfig",
"./SafeInt": "SafeInt"
} ],
ChestUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d8898lJAWNDi6BUFMBrNsea", "ChestUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/SoundsManager"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Localize/LocalizeManager"), s = e("../Battle/Util"), c = e("../Config/ArchivementConfig"), u = e("../Config/ChestConfig"), p = e("../Config/EquipmentConfig"), d = e("../Config/GameModel"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.animationA = null;
t.animationB = null;
t.animationC = null;
t.content = null;
t.btn = null;
t.rewards = [];
t.chestType = 0;
return t;
}
n = t;
t.prototype.OnSetParams = function(e, t) {
var n = this;
this.chestType = e;
this.animationA.node.active = e == u.ChestType.blueprint;
this.animationB.node.active = e == u.ChestType.weapon;
this.animationC.node.active = e == u.ChestType.equipment;
this.content.active = !1;
this.btn.active = !1;
if (e == u.ChestType.weapon) {
this.animationB.stop();
this.animationB.play();
var o = 10 == t ? u.ChestConfig.weaponChestParam10 : u.ChestConfig.weaponChestParam;
this.rewards = u.ChestConfig.GetWeaponRewards(o, d.default.Instance.weaponOpenCount.intValue, 0, null, !0, t, !1);
if (10 == t) {
for (var r = u.ChestConfig.GetWeaponRewards(o, d.default.Instance.weaponOpenCount.intValue, 0, null, !0, t, !0), i = [], a = 0; a < r.length; a++) {
var l = r[a];
if (l.unlockType != c.UnlockType.Weapon) {
for (var f = !1, h = 0; h < this.rewards.length; h++) {
var m = this.rewards[h];
if (l.unlockType == m.unlockType && (l.unlockType == c.UnlockType.Coin || l.unlockId == m.unlockId)) {
m.count += l.count;
f = !0;
break;
}
}
f || i.push(l);
} else i.push(l);
}
i.length > 0 && i.forEach(function(e) {
n.rewards.insert(0, e);
});
}
} else if (e == u.ChestType.blueprint) {
this.animationA.stop();
this.animationA.play();
this.rewards = u.ChestConfig.GetBlueprintRewards(10 == t ? u.ChestConfig.blueprintChestParam10 : u.ChestConfig.blueprintChestParam);
} else if (e == u.ChestType.equipment) {
this.animationC.stop();
this.animationC.play();
if (1 == t) {
var w = 0, y = 0;
for (a = 0; a < d.default.Instance.equipmentList.length; a++) {
var g = d.default.Instance.equipmentList[a];
!g.unlock.boolValue && g.piece.intValue < g.proto.unlockPieces && (g.proto.type == p.EquipmentType.Mask ? u.ChestConfig.maskChestParam.weights[g.proto.quality] > 0 && w++ : u.ChestConfig.wingChestParam.weights[g.proto.quality] > 0 && y++);
}
var v;
v = 0 == w || 0 == y ? 0 == w ? p.EquipmentType.Wing : p.EquipmentType.Mask : s.default.RandomInt(0, 100) < 50 ? p.EquipmentType.Mask : p.EquipmentType.Wing;
this.rewards = u.ChestConfig.GetEquipmentRewards(v == p.EquipmentType.Mask ? u.ChestConfig.maskChestParam : u.ChestConfig.wingChestParam, v, !0);
} else {
this.rewards = u.ChestConfig.GetEquipmentRewards(u.ChestConfig.maskChestParam10, p.EquipmentType.Mask, !0);
(r = u.ChestConfig.GetEquipmentRewards(u.ChestConfig.wingChestParam10, p.EquipmentType.Wing, !0)).forEach(function(e) {
n.rewards.push(e);
});
}
}
this.content.enabledAllChild(!1);
this.scheduleOnce(function() {
n.content.active = !0;
n.RefreshUI();
n.btn.active = !0;
n.GetReward();
}, 2.2);
};
t.prototype.RefreshUI = function() {
for (var e = 0; e < this.rewards.length; e++) {
var t = this.content.getOrCreateAndActiveChild(e), n = this.rewards[e], r = n.name, i = n.iconPath;
t.findChild("bg2").active = n.unlockType == c.UnlockType.Weapon;
s.default.SetImage(n.pieceIconPath, t.findChild("piece").getComponent(cc.Sprite));
t.findChild("Label").getComponent(cc.Label).string = r;
t.findChild("Number").getComponent(cc.Label).string = n.unlockType == c.UnlockType.Weapon ? l.LFTXT("{0}阶", n.level) : "+" + n.count;
var a = "";
if (n.unlockType == c.UnlockType.Weapon) {
var p = d.default.Instance.GetWeapon(n.unlockId);
p.unlock.boolValue && null != n.level && p.classLevel.intValue >= n.level && (a = l.TXT("已拥有,换成碎片：") + (2 == n.level ? u.ChestConfig.weaponChestParamPer10.weapon2Piece : u.ChestConfig.weaponChestParamPer30.weapon2Piece));
} else if (n.unlockType == c.UnlockType.EquipmentPiece) {
var f = d.default.Instance.GetEquipment(n.unlockId);
f && (a = l.TXT("解锁数量：") + (f.piece.intValue + n.count) + "/" + f.proto.unlockPieces);
}
t.findChild("Tips").getComponent(cc.Label).string = a;
var h = t.findChild("Icon");
s.default.SetImage(i, h.getComponent(cc.Sprite));
h.scale = n.unlockType == c.UnlockType.EquipmentPiece ? 1.2 : 2;
t.setScale(0, 0, 0);
cc.tween(t).delay(.15 * e).to(.15, {
scale: 1.1
}, {
easing: "sineInOut"
}).to(.03, {
scale: 1
}).start();
}
o.default.instance.PlayEffect("box2");
};
t.prototype.GetReward = function() {
for (var e = 0; e < this.rewards.length; e++) this.rewards[e].GetReward(n.ChestName[this.chestType], !0);
d.default.Save();
};
t.prototype.Close = function() {
this.HideView();
};
var n;
t.ChestName = [ "材料宝箱", "武器宝箱", "时装宝箱" ];
__decorate([ m(cc.Animation) ], t.prototype, "animationA", void 0);
__decorate([ m(cc.Animation) ], t.prototype, "animationB", void 0);
__decorate([ m(cc.Animation) ], t.prototype, "animationC", void 0);
__decorate([ m(cc.Node) ], t.prototype, "content", void 0);
__decorate([ m(cc.Node) ], t.prototype, "btn", void 0);
return n = __decorate([ h, r.RegisterView("ChestUI", i.ViewLayer.PopupLayer) ], t);
}(a.default);
n.default = w;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/ChestConfig": "ChestConfig",
"../Config/EquipmentConfig": "EquipmentConfig",
"../Config/GameModel": "GameModel"
} ],
ChiLieZhiYan: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "096cfPb1KJErpLEOhjL71v0", "ChiLieZhiYan");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../EffectSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 3;
t.passedTime = 0;
return t;
}
Object.defineProperty(t.prototype, "curIntervel", {
get: function() {
var e = this.context.owner, t = e.heroData.proto.speed / e.speed;
return this.intervel * t;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
if (!this.context.owner.body.velocity.equals(cc.Vec2.ZERO)) {
this.passedTime += t;
if (this.passedTime >= this.curIntervel) {
this.passedTime = 0;
this.Fire(cc.Vec2.ZERO);
}
}
};
__decorate([ a() ], t.prototype, "intervel", void 0);
return __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../EffectSkill": "EffectSkill"
} ],
ChongJiShouWei_Summon: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a6554yiVDpCF7Qjeoq8yPSM", "ChongJiShouWei_Summon");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("../../Util"), i = e("../../View/FollowEntityFirePnt"), a = e("../BaseSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.radius = 200;
t.passedTime = 0;
return t;
}
t.prototype.OnUpdate = function(e) {
this.passedTime += e * this.context.owner.timeScale;
var t = this.context.owner.ownerSkill.context.talentData, n = this.context.skillData.cd - 1 * t.lv;
n = Math.max(.1, n);
if (this.passedTime >= n) {
this.passedTime = 0;
this.FireOnUpdate();
}
};
t.prototype.FireOnUpdate = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function() {
this.context.isCleared = !1;
if (this.context.isCleared) return [ 2 ];
e = this.context.GetFireInfo();
this.Fire(e.dir);
return [ 2 ];
});
});
};
t.prototype.Fire = function() {
return __awaiter(this, void 0, Promise, function() {
var e, t, n, a, l, s, c, u, p;
return __generator(this, function(d) {
switch (d.label) {
case 0:
e = this.context.owner.owner;
r.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, this.context.owner.body.position, 0, o.LevelContext.Instance.effectLayer).getOrAddComponent(i.default).target = this.context.owner;
return [ 4, this.waitForTime(.3) ];

case 1:
d.sent();
if (!this.context.owner) return [ 2 ];
t = o.LevelContext.Instance.GetEnemysInRadius(this.context.owner, this.radius);
n = cc.v2();
for (a = 0; a < t.length; a++) {
l = t[a];
if (this.hitbackForce > 0 && this.hitbackTime > 0 && !l.staitcCollision && l.hitFlyAble) {
s = l.proto.mass;
c = this.hitbackForce;
if ((u = c - s) > 0) {
cc.Vec2.subtract(n, l.body.position, e.body.position).normalizeSelf();
p = n.multiplyScalar(u);
l.body.AddForce(p.x, p.y, this.hitbackTime);
}
}
}
return [ 2 ];
}
});
});
};
__decorate([ c() ], t.prototype, "radius", void 0);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../../View/FollowEntityFirePnt": "FollowEntityFirePnt",
"../BaseSkill": "BaseSkill"
} ],
ChongJiShouWei: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "08865JNEUBPfZdEtbnMmCDn", "ChongJiShouWei");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/AssetManager"), r = e("../../../../Service/kl"), i = e("../../../Config/SummonConfig"), a = e("../../LevelContext"), l = e("../../Summon/Summon"), s = e("./BaseTalentSkill"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.summonId = 0;
t.count = 1;
t.radirs = 150;
t.summons = [];
return t;
}
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(n) {
switch (n.label) {
case 0:
e.prototype.OnInit.call(this, t);
return [ 4, this.Fire(cc.Vec2.ZERO) ];

case 1:
n.sent();
return [ 2 ];
}
});
});
};
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, s, c, u, p, d;
return __generator(this, function(f) {
switch (f.label) {
case 0:
e = this.context.owner;
t = r.default.A2R(360 / this.count);
n = cc.v2(0, 1);
s = 0;
f.label = 1;

case 1:
if (!(s < this.count)) return [ 3, 5 ];
c = e.body.position.add(n.rotate(s * t).mul(this.radirs));
u = i.SummonConfig.GetSummon(this.summonId);
return [ 4, o.default.Default.CreateNode(u.resPath, a.LevelContext.Instance.effectLayer, c) ];

case 2:
p = f.sent();
return [ 4, (d = p.getComponent(l.Summon)).OnInitEx(u, e, this) ];

case 3:
f.sent();
this.summons.push(d);
f.label = 4;

case 4:
s++;
return [ 3, 1 ];

case 5:
this.broadcastMessage("OnSkillSummon", this.context.skillData.id, this.summonId, this.count);
return [ 2 ];
}
});
});
};
__decorate([ p({
tooltip: "召唤物id"
}) ], t.prototype, "summonId", void 0);
__decorate([ p({
tooltip: "召唤物数量"
}) ], t.prototype, "count", void 0);
__decorate([ p({
tooltip: "出生距离"
}) ], t.prototype, "radirs", void 0);
return __decorate([ u ], t);
}(s.default);
n.default = d;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/AssetManager": void 0,
"../../../../Service/kl": void 0,
"../../../Config/SummonConfig": "SummonConfig",
"../../LevelContext": "LevelContext",
"../../Summon/Summon": "Summon",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
CollectionUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c6312Jhm2VFopH0LkbkG+VD", "CollectionUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Core/Views/ViewUIManager"), l = e("../../Framework/Localize/LocalizeManager"), s = e("../Battle/Util"), c = e("../Config/BattleItemData"), u = e("../Config/GameModel"), p = e("../Config/SkillConfig"), d = e("../Config/SkillData"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.curSprite = null;
t.curWenHao = null;
t.curName = null;
t.curDesc = null;
t.curDescList = null;
t.curItem = null;
t.skills = [];
t.items = [];
return t;
}
n = t;
t.prototype.onLoad = function() {
for (var e = [], t = 0; t < u.default.Instance.skillList.length; t++) {
var n = u.default.Instance.skillList[t], o = n.proto.groupId;
if (n.isNormalSkill) {
if (e.indexOf(o) < 0) {
e.push(o);
this.skills.push(n);
}
} else this.skills.push(n);
}
for (t = 0; t < u.default.Instance.battleItemList.length; t++) {
var r = u.default.Instance.battleItemList[t];
r.proto.order >= 0 && this.items.push(r);
}
this.items.sort(function(e, t) {
return e.proto.order - t.proto.order;
});
};
t.prototype.start = function() {
this.content.children[0].getComponent(cc.Toggle).isChecked = !0;
this.curItem = this.skills[0];
this.UpdateCurItem();
};
t.prototype.OnSetParams = function() {
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
this.InitList();
};
t.prototype.OnItemClick = function(e) {
var t = e.target.data;
if (t) {
this.curItem = t;
this.UpdateCurItem();
}
};
t.prototype.OnCloseClick = function() {
a.default.DestoryView(n);
};
t.prototype.InitList = function() {
for (var e = u.default.Instance, t = 0, n = 0; n < this.skills.length; n++) {
var o = this.skills[n];
(p = s.default.GetOrCreateChild(t++, this.content)).data = o;
var r = p.findChild("Icon"), i = p.findChild("WenHao"), a = !0, l = "";
if (o.isNormalSkill) {
var c = e.GetSkillGroup(o.proto.groupId);
c && !c.unlock.boolValue && (a = !1);
l = c.proto.iconPath;
} else l = o.proto.iconPath;
r.scale = 1.2;
r.active = a;
i.active = !a;
a && s.default.SetImage(l, r.getComponent(cc.Sprite));
}
for (n = 0; n < this.items.length; n++) {
var p, d = this.items[n];
(p = s.default.GetOrCreateChild(t++, this.content)).data = d;
r = p.findChild("Icon"), i = p.findChild("WenHao");
r.scale = 1.6;
r.active = !0;
i.active = !1;
s.default.SetImage(d.proto.iconPath, r.getComponent(cc.Sprite));
}
};
t.prototype.UpdateCurItem = function() {
var e = !0, t = "", n = "", o = "", r = !1;
if (this.curItem instanceof d.SkillData) if (this.curItem.isNormalSkill) {
r = !0;
var i = u.default.Instance.GetSkillGroup(this.curItem.proto.groupId);
e = i.unlock.boolValue;
t = i.proto.iconPath;
n = i.proto.name;
if (e) {
this.curDescList.enabledAllChild(!1);
for (var a = 0; a < i.proto.ids.length; a++) {
var f = i.proto.ids[a], h = p.SkillConfig.GetSkill(f), m = this.curDescList.getOrCreateAndActiveChild(a);
m.children[0].getComponent(cc.Label).string = "Lv" + (a + 1) + ":";
m.getComponent(cc.RichText).string = l.TXT(h.desc).replace(/\n/g, "； ");
}
}
} else {
t = this.curItem.proto.iconPath;
n = this.curItem.proto.name;
o = this.curItem.proto.desc;
} else {
t = this.curItem.proto.iconPath;
n = this.curItem.proto.name;
o = this.curItem.proto.desc;
}
this.curWenHao.active = !e;
this.curSprite.node.active = e;
e && s.default.SetImage(t, this.curSprite);
this.curName.string = e ? n : "??";
if (r && e) {
this.curDescList.active = !0;
this.curDesc.node.active = !1;
} else {
this.curDescList.active = !1;
this.curDesc.node.active = !0;
this.curDesc.string = e ? o : l.TXT("尚未找到");
}
this.curSprite.node.scale = this.curItem instanceof c.BattleItemData ? 1.6 : 1.2;
};
var n;
__decorate([ m(cc.Node) ], t.prototype, "content", void 0);
__decorate([ m(cc.Sprite) ], t.prototype, "curSprite", void 0);
__decorate([ m(cc.Node) ], t.prototype, "curWenHao", void 0);
__decorate([ m(cc.Label) ], t.prototype, "curName", void 0);
__decorate([ m(cc.RichText) ], t.prototype, "curDesc", void 0);
__decorate([ m(cc.Node) ], t.prototype, "curDescList", void 0);
return n = __decorate([ h, o.RegisterView("CollectionUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = w;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../Battle/Util": "Util",
"../Config/BattleItemData": "BattleItemData",
"../Config/GameModel": "GameModel",
"../Config/SkillConfig": "SkillConfig",
"../Config/SkillData": "SkillData"
} ],
CollisionItem: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "462c4GdwcJNfIStzU37wEJ5", "CollisionItem");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.CollisionItem = void 0;
var o = e("../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.staitcCollision = !1;
t.colliders = [];
return t;
}
t.prototype.onLoad = function() {
this.colliders = this.getComponentsInChildren(cc.Collider);
this.node.on(cc.Node.EventType.POSITION_CHANGED, this.onPositionChanged.bind(this));
};
t.prototype.OnPoolEnable = function() {
e.prototype.OnPoolEnable.call(this);
};
t.prototype.OnPoolDisable = function() {
e.prototype.OnPoolDisable.call(this);
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.ResetCollisionState();
this.onPositionChanged();
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
for (var t = 0; t < this.colliders.length; t++) this.colliders[t].__is_disable__ = !0;
};
t.prototype.onDestroy = function() {
this.colliders = null;
};
t.prototype.ResetCollisionState = function() {
for (var e = 0; e < this.colliders.length; e++) this.colliders[e].__is_disable__ = !1;
};
t.prototype.onPositionChanged = function() {};
__decorate([ a() ], t.prototype, "staitcCollision", void 0);
return __decorate([ i ], t);
}(o.MyComponent);
n.CollisionItem = l;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0
} ],
Condition: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "50cc040dfBInKoJFKI1+Xzi", "Condition");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Random = n.Delay = n.Trigger = n.Greater = n.GreaterEqual = n.Less = n.LessEqual = n.NotEqual = n.Equal = n.GlobalCondition = n.BaseCondition = void 0;
var o = function() {
function e(e, t) {
this.key = e;
this.value = t;
}
Object.defineProperty(e.prototype, "isGlobal", {
get: function() {
return !1;
},
enumerable: !1,
configurable: !0
});
e.prototype.OnInit = function() {};
e.prototype.IsOk = function() {
return !1;
};
return e;
}();
n.BaseCondition = o;
var r = function() {
function e(e) {
this.cond = null;
this.cond = e;
}
Object.defineProperty(e.prototype, "isGlobal", {
get: function() {
return !0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "value", {
get: function() {
return this.cond.value;
},
set: function(e) {
this.cond.value = e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "key", {
get: function() {
return this.cond.key;
},
set: function(e) {
this.cond.key = e;
},
enumerable: !1,
configurable: !0
});
e.prototype.OnInit = function(e, t) {
this.cond.OnInit(e, t);
};
e.prototype.IsOk = function(e) {
return this.cond.IsOk(e);
};
return e;
}();
n.GlobalCondition = r;
var i = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.IsOk = function(e) {
return e == this.value;
};
return t;
}(o);
n.Equal = i;
var a = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.IsOk = function(e) {
return e != this.value;
};
return t;
}(o);
n.NotEqual = a;
var l = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.IsOk = function(e) {
return e <= this.value;
};
return t;
}(o);
n.LessEqual = l;
var s = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.IsOk = function(e) {
return e < this.value;
};
return t;
}(o);
n.Less = s;
var c = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.IsOk = function(e) {
return e >= this.value;
};
return t;
}(o);
n.GreaterEqual = c;
var u = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.IsOk = function(e) {
return e > this.value;
};
return t;
}(o);
n.Greater = u;
var p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.trigger = !1;
t.triggerFrame = 0;
return t;
}
t.prototype.OnInit = function(e) {
var t = this;
e.owner.blackboard.OnValueChanged.Add(function(e) {
if (t.key == e) {
t.trigger = !0;
t.triggerFrame = cc.director.getTotalFrames();
}
});
};
t.prototype.IsOk = function() {
var e = this.trigger && cc.director.getTotalFrames() == this.triggerFrame;
this.trigger = !1;
return e;
};
return t;
}(o);
n.Trigger = p;
var d = function(e) {
__extends(t, e);
function t(t) {
var n = e.call(this, "", t) || this;
n.lastTime = Number.MIN_VALUE;
return n;
}
t.prototype.IsOk = function() {
var e = Date.now();
if (e - this.lastTime >= this.value) {
this.lastTime = e;
return !0;
}
return !1;
};
return t;
}(o);
n.Delay = d;
var f = function(e) {
__extends(t, e);
function t(t, n) {
var o = e.call(this, "", t) || this;
o.duration = 0;
o.lastTime = Number.MIN_VALUE;
o.duration = 1e3 * n;
return o;
}
t.prototype.IsOk = function() {
var e = Date.now();
if (e - this.lastTime >= this.duration) {
this.lastTime = e;
return 100 * Math.random() <= this.value;
}
return !1;
};
return t;
}(o);
n.Random = f;
cc._RF.pop();
}, {} ],
Config: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f8a768oT+pH254C1FnFe2Kh", "Config");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Config = n.BattleMode = void 0;
var o = e("../../Service/Leaderboard"), r = e("../../Service/RemoteSetting");
(function(e) {
e[e.Level = 0] = "Level";
e[e.Endless = 1] = "Endless";
e[e.Fragment1 = 2] = "Fragment1";
e[e.Fragment2 = 3] = "Fragment2";
e[e.Fragment3 = 4] = "Fragment3";
})(n.BattleMode || (n.BattleMode = {}));
var i = function() {
function e() {}
Object.defineProperty(e, "EnableRankUI", {
get: function() {
return r.default.Get("EnableRankUI", !0);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "EnableEndless", {
get: function() {
return r.default.Get("EnableEndless", !0);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "GameLiveRewardCoins", {
get: function() {
return r.default.Get("GameLiveRewardCoins", 1e3);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "DailyAdFreeCoinsCnt", {
get: function() {
return r.default.Get("DailyAdFreeCoinsCnt", 5);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "GetAllLevelupRate", {
get: function() {
return r.default.Get("GetAllLevelupRate", 30);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "GetAllLevelupCnt", {
get: function() {
return r.default.Get("GetAllLevelupCnt", 1);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "MaxChangeSkillCnt", {
get: function() {
return r.default.Get("MaxChangeSkillCnt", 8);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "BoxAdPerBattleCnt", {
get: function() {
return r.default.Get("BoxAdPerBattleCnt", 2);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "BoxAdAppearRate", {
get: function() {
return r.default.Get("BoxAdAppearRate", 30);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e, "GeCaoCnt", {
get: function() {
return r.default.Get("GeCaoCnt", 3);
},
enumerable: !1,
configurable: !0
});
e.GetInitUnlockHeroes = function() {
return [ 1 ];
};
Object.defineProperty(e, "enableLevelStatistics", {
get: function() {
return r.default.Get("EnableLevelStatistics", !0);
},
enumerable: !1,
configurable: !0
});
e.RankKill = "RankKill";
e.RankLevel = "RankLevel";
e.RankEndless = "RankEndless";
e.RVOLayer_Player = 14;
e.RVOLayer_Enemy = 2;
e.RVOLayer_Obstacle = 4;
e.RVOLayer_Tower = 16;
e.DefaultDamageColor = cc.color(229.5, 153, 76.5);
e.LeaderboardType = o.LeaderboardType.Weekly;
e.CrazyCoinTime = 15;
e.CrazyCoinAddTime = .005;
e.OutCameraDestoryTime = 5;
e.OutCameraDestoryMonsterDistance = cc.v2(1500, 450);
e.OutCameraDestoryItemDistance = cc.v2(2e3, 1e3);
e.MaxItemCount = 150;
e.MaxEquipBpItemCountPerLevel = 3;
e.MaxEquipBpItemCountPerDay = 11;
e.MaxEnemyCount = 120;
e.MaxGoldCloverCount = 4;
e.MaxVehicleCount = 3;
e.DashCD = 5;
e.BasePickRange = 110;
e.BaseVisionRange = 150;
e.ItemRespawnIntervel = 10;
e.ItemRespawnDistance = 900;
e.ItemDestoryTime = 60;
e.ChickenHp = 30;
e.AdFreeCoins = 300;
e.AdFreeCoins_Pay = 200;
e.AwemeRewardCoins = 500;
e.RewardCoinsIconPath = "UI/coin";
e.Box5AdRate = 10;
e.FirstSceneId = 1;
e.MoneyBoxCost = 100;
e.MoneyBoxCost_Pay = 200;
e.MoneyBoxFragmentRange = [ {
num: 2,
rate: 50
}, {
num: 3,
rate: 35
}, {
num: 4,
rate: 15
} ];
e.SubscribeRweardCoins = 500;
e.primaryOpenSkillLv = 4;
e.primaryOpenSkilGroups = [ 2, 3, 6, 7, 8, 10, 12, 14 ];
e.InitUnlockBattleItems = [ 0, 1, 3, 7 ];
e.InitUnlockWeapons = [ 1 ];
e.InitUnlockPets = [ 0 ];
e.InitUnlockSkillGroups = [ 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 18 ];
e.HeroSkillTime = [ [ 180, 300 ], [ 410, 560 ], [ 840, 1040 ] ];
e.HeroSkillTimeEndless = [ [ 300, 420 ], [ 580, 750 ], [ 1e3, 1500 ] ];
e.HeroSkillRate = 10;
e.BossTestKills = {
skills: [ 130, 131, 132, 133, 180, 181, 182, 200, 201, 202, 203, 204, 205, 170, 171, 171, 172, 173, 174, 140, 141, 142, 143, 144, 145, 160, 161, 162, 210, 211, 212, 213, 214, 230, 231, 232, 233, 120, 121, 122, 123, 124, 501, 502, 506, 505, 630, 631, 632, 801, 310, 311, 312, 313, 314, 110, 111, 112, 113, 100 ],
pets: [],
talents: []
};
return e;
}();
n.Config = i;
cc._RF.pop();
}, {
"../../Service/Leaderboard": void 0,
"../../Service/RemoteSetting": void 0
} ],
CopyLevelUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "51cb0ALMcdALZoqZV6P0BOp", "CopyLevelUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Core/Views/ViewUIManager"), l = e("../../Framework/Localize/LocalizeManager"), s = e("../../Framework/UI/PromptUI"), c = e("../../Service/RemoteSetting"), u = e("../Battle/Util"), p = e("../Config/ChestConfig"), d = e("../Config/Config"), f = e("../Config/GameModel"), h = e("../Config/LevelConfig"), m = e("./HeroUI"), w = e("./RewardsUI"), y = cc._decorator, g = y.ccclass, v = y.property, S = function(e, t, n, o, r) {
this.id = e;
this.battleMode = t;
this.name = n;
this.desc = o;
this.icon = r;
}, M = [ [ new S(h.LevelConfig.EndlessLevelId, d.BattleMode.Endless, "无尽挑战", "噩梦难度，看谁生存更久!", "Unpack/Level/3") ], [ new S(h.LevelConfig.FragmentLevelId[0], d.BattleMode.Fragment1, "初级试炼", "产出大量碎片资源", "Unpack/Level/1"), new S(h.LevelConfig.FragmentLevelId[1], d.BattleMode.Fragment2, "中级试炼", "产出大量碎片资源", "Unpack/Level/2"), new S(h.LevelConfig.FragmentLevelId[2], d.BattleMode.Fragment3, "高级试炼", "产出大量碎片资源", "Unpack/Level/4") ] ], k = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.scrollView = null;
t.content = null;
t.tipsLabel = null;
t.startBtn = null;
t.saodangBtn = null;
t.saodangNumLabel = null;
t.curLevel = null;
t.isLoading = !1;
t.fragmentMax = 3;
t.targetMode = null;
return t;
}
t.prototype.onDisable = function() {
this.targetMode = null;
};
t.prototype.OnSetParams = function(e) {
this.fragmentMax = c.default.Get("fragmentLevelCount", 3);
this.isLoading = !1;
this.targetMode = e;
this.UpdateList();
this.UpdateSaodang();
};
t.prototype.IsUnlock = function(e) {
switch (e.battleMode) {
case d.BattleMode.Endless:
case d.BattleMode.Fragment1:
return f.default.Instance.GetLevel(3).unlock;

case d.BattleMode.Fragment2:
return f.default.Instance.shiLianLevel >= 2;

case d.BattleMode.Fragment3:
return f.default.Instance.shiLianLevel >= 3;
}
};
t.prototype.IsPass = function(e) {
switch (e.battleMode) {
case d.BattleMode.Fragment1:
return f.default.Instance.shiLianLevel >= 2;

case d.BattleMode.Fragment2:
return f.default.Instance.shiLianLevel >= 3;

case d.BattleMode.Fragment3:
return f.default.Instance.shiLianLevel >= 4;
}
};
t.prototype.GetUnlockDesc = function(e) {
switch (e.battleMode) {
case d.BattleMode.Endless:
case d.BattleMode.Fragment1:
return '通关"1-2"';

case d.BattleMode.Fragment2:
return '通关"初级试炼"';

case d.BattleMode.Fragment3:
return '通关"中级试炼"';
}
};
t.prototype.UpdateList = function() {
for (var e = this, t = null, n = 0; n < M.length; n++) for (var o = M[n], r = u.default.GetOrCreateChild(n, this.content), i = 0; i < o.length; i++) {
var a = o[i], l = u.default.GetOrCreateChild(i, r);
l.data = a;
var s = l.findChild("pic");
l.findChild("NameLabel").getComponent(cc.Label).string = a.name;
u.default.SetImage(a.icon, s.getComponent(cc.Sprite));
if (null != this.targetMode) {
if (this.targetMode == a.battleMode) {
t = l;
this.curLevel = a;
this.UpdateCount();
}
} else if (this.curLevel == a || null == this.curLevel && 0 == n) {
t = l;
this.curLevel = a;
this.UpdateCount();
}
var c = l.findChild("Lock");
u.default.SetImage(a.icon, c.findChild("pic").getComponent(cc.Sprite));
c.findChild("DescLabel").getComponent(cc.Label).string = this.GetUnlockDesc(a);
c && (c.active = !this.IsUnlock(a));
var p = l.findChild("Rewards");
p.active = a.battleMode != d.BattleMode.Endless;
switch (a.battleMode) {
case d.BattleMode.Fragment1:
case d.BattleMode.Fragment2:
case d.BattleMode.Fragment3:
var f = h.LevelConfig.GetLevel(a.id);
p.findChild("Number").getComponent(cc.Label).string = "x" + (f.pieceReward ? f.pieceReward.count : 0);
}
l.findChild("EndlessRewards").active = a.battleMode == d.BattleMode.Endless;
l.findChild("Selected").opacity = this.IsUnlock(a) ? 255 : 0;
}
t && this.scheduleOnce(function() {
t.getComponent(cc.Toggle).check();
e.startBtn.active = e.IsUnlock(e.curLevel);
}, .1);
};
t.prototype.OnItemClick = function(e) {
this.curLevel = e.node.data;
this.UpdateCount();
};
t.prototype.OnConfirmClick = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t;
return __generator(this, function() {
e = this.IsUnlock(this.curLevel);
t = this.GetUnlockDesc(this.curLevel);
this.curLevel.battleMode == d.BattleMode.Endless ? e ? a.default.ShowView(m.default, this.curLevel.battleMode) : s.default.Show(t) : this.curLevel.battleMode >= d.BattleMode.Fragment1 && this.curLevel.battleMode <= d.BattleMode.Fragment3 && (e ? f.default.Instance.fragmentLevelCount.value < this.fragmentMax ? a.default.ShowView(m.default, this.curLevel.battleMode) : s.default.Show("今天的试炼次数已用完，请明天再来") : s.default.Show(t));
return [ 2 ];
});
});
};
t.prototype.UpdateCount = function() {
if (this.curLevel.battleMode >= d.BattleMode.Fragment1 && this.curLevel.battleMode <= d.BattleMode.Fragment3) {
this.tipsLabel.node.active = !0;
var e = this.fragmentMax - f.default.Instance.fragmentLevelCount.value;
this.tipsLabel.string = l.LFTXT("今天剩余：{0}/{1}次", e, this.fragmentMax);
} else this.tipsLabel.node.active = !1;
this.saodangBtn.active = this.IsPass(this.curLevel) && this.curLevel.battleMode >= d.BattleMode.Fragment1 && this.curLevel.battleMode <= d.BattleMode.Fragment3;
};
t.prototype.UpdateSaodang = function() {
this.saodangNumLabel.string = "x" + f.default.Instance.saodang.intValue;
};
t.prototype.OnSaodangClick = function() {
if (f.default.Instance.saodang.intValue > 0) if (f.default.Instance.fragmentLevelCount.value < this.fragmentMax) {
f.default.Instance.fragmentLevelCount.value++;
f.default.Instance.saodang.intValue--;
this.UpdateSaodang();
this.UpdateCount();
var e = h.LevelConfig.GetLevel(h.LevelConfig.FragmentLevelId[this.curLevel.battleMode - d.BattleMode.Fragment1]).pieceReward, t = p.ChestConfig.GetWeaponRewards(p.ChestConfig.shopWeaponPieceParam, 0, e.count, e.types, !1);
w.default.ShowView("试炼扫荡", t);
} else s.default.Show("今天的试炼次数已用完，请明天再来"); else s.default.Show("扫荡卡数量不足，请到每日任务那里领取");
};
__decorate([ v(cc.ScrollView) ], t.prototype, "scrollView", void 0);
__decorate([ v(cc.Node) ], t.prototype, "content", void 0);
__decorate([ v(cc.Label) ], t.prototype, "tipsLabel", void 0);
__decorate([ v(cc.Node) ], t.prototype, "startBtn", void 0);
__decorate([ v(cc.Node) ], t.prototype, "saodangBtn", void 0);
__decorate([ v(cc.Label) ], t.prototype, "saodangNumLabel", void 0);
return __decorate([ g, o.RegisterView("CopyLevelUI", r.ViewLayer.NormalLayer, r.ViewShowRule.HideSameLayerView) ], t);
}(i.default);
n.default = k;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/RemoteSetting": void 0,
"../Battle/Util": "Util",
"../Config/ChestConfig": "ChestConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/LevelConfig": "LevelConfig",
"./HeroUI": "HeroUI",
"./RewardsUI": "RewardsUI"
} ],
CrossMovementAI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f4086utWXxJ4r/DoGATcjyo", "CrossMovementAI");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.CrossMovementAI = void 0;
var o = e("./AI"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
t.prototype.OnInit = function() {
var e = this.owner.target;
cc.Vec2.subtract(this.v1, e.body.position, this.node.getPosition(this.v2));
this.v1.normalizeSelf();
this.v1.mulSelf(this.owner.speed);
this.owner.body.velocity = this.v1;
};
return __decorate([ i ], t);
}(o.AI));
n.CrossMovementAI = a;
cc._RF.pop();
}, {
"./AI": "AI"
} ],
DailyMissionConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "821d61dhbBDmbKv2YFlLb34", "DailyMissionConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.DailyMissionConfig = n.DailyMissionProto = n.DailyMissionBoxProto = n.DailyMissionType = void 0;
var o, r = e("../../Framework/Localize/LocalizeManager"), i = e("./ArchivementConfig"), a = e("./EquipmentConfig");
(function(e) {
e[e.LoginGame = 0] = "LoginGame";
e[e.ShopBuy = 1] = "ShopBuy";
e[e.EnterLevel = 2] = "EnterLevel";
e[e.PassTrain = 3] = "PassTrain";
e[e.UpgradeWeapon = 4] = "UpgradeWeapon";
e[e.UseCoin = 5] = "UseCoin";
e[e.KillEliteEnemyCnt = 6] = "KillEliteEnemyCnt";
e[e.KillEnemyCnt = 7] = "KillEnemyCnt";
e[e.KillBossCnt = 8] = "KillBossCnt";
e[e.UseDiamond = 9] = "UseDiamond";
e[e.OnlineMinute = 10] = "OnlineMinute";
e[e.ChargeMoney = 11] = "ChargeMoney";
})(o = n.DailyMissionType || (n.DailyMissionType = {}));
var l = function(e, t, n, o, r, i, a) {
this.id = e;
this.progress = t;
this.unlockType = n;
this.unlockNum = o;
this.kindNum = r;
this.convertCoin = i;
this.equipmentType = a;
};
n.DailyMissionBoxProto = l;
var s = function() {
function e(e, t, n, o, r, i, a, l) {
void 0 === l && (l = -1);
this.id = e;
this.type = t;
this.x = n;
this.y = o;
this.unlockType = r;
this.unlockId = i;
this.iconPath = a;
this.unlockLevel = l;
}
Object.defineProperty(e.prototype, "desc", {
get: function() {
var e = [], t = "";
switch (this.type) {
case o.LoginGame:
t = "每日登陆游戏";
break;

case o.ShopBuy:
e.push(this.y);
t = "商城购买{0}次物品";
break;

case o.EnterLevel:
e.push(this.y);
t = "挑战关卡{0}次";
break;

case o.PassTrain:
e.push(this.y);
t = "通关{0}次试炼";
break;

case o.UpgradeWeapon:
e.push(this.y);
t = "升级任意武器{0}次";
break;

case o.UseCoin:
e.push(this.y);
t = "消耗{0}金币";
break;

case o.KillEliteEnemyCnt:
e.push(this.y);
t = "击败{0}个精英怪";
break;

case o.KillEnemyCnt:
e.push(this.y);
t = "击败{0}个怪物";
break;

case o.KillBossCnt:
e.push(this.y);
t = "击败{0}个BOSS";
break;

case o.UseDiamond:
e.push(this.y);
t = "消耗{0}钻石";
break;

case o.OnlineMinute:
e.push(this.y);
t = "每日累计在线{0}分钟";
break;

case o.ChargeMoney:
t = "充值任意金额";
}
return r.LFTXT.apply(void 0, __spreadArrays([ t ], e));
},
enumerable: !1,
configurable: !0
});
return e;
}();
n.DailyMissionProto = s;
var c = function() {
function e() {}
e.GetItems = function() {
return e.items;
};
e.GetDailyMission = function(t) {
return e.items.find(function(e) {
return e.id == t;
});
};
e.items = [ new s(1, o.LoginGame, -1, 1, [ i.UnlockType.ActiveValue ], [ 10 ], "UI/NewUI/activeIcon"), new s(2, o.ShopBuy, -1, 1, [ i.UnlockType.ActiveValue, i.UnlockType.Coin ], [ 5, 100 ], "UI/NewUI/activeIcon"), new s(3, o.EnterLevel, -1, 1, [ i.UnlockType.ActiveValue, i.UnlockType.Coin ], [ 10, 100 ], "UI/NewUI/activeIcon"), new s(4, o.PassTrain, -1, 1, [ i.UnlockType.ActiveValue, i.UnlockType.Coin ], [ 10, 100 ], "UI/NewUI/activeIcon"), new s(5, o.UpgradeWeapon, -1, 1, [ i.UnlockType.ActiveValue, i.UnlockType.Coin ], [ 10, 100 ], "UI/NewUI/activeIcon"), new s(6, o.UseCoin, -1, 5e3, [ i.UnlockType.ActiveValue, i.UnlockType.Coin ], [ 10, 100 ], "UI/NewUI/activeIcon"), new s(7, o.KillEliteEnemyCnt, -1, 3, [ i.UnlockType.ActiveValue, i.UnlockType.Coin ], [ 10, 100 ], "UI/NewUI/activeIcon"), new s(8, o.KillEnemyCnt, -1, 5e3, [ i.UnlockType.ActiveValue, i.UnlockType.Coin ], [ 10, 100 ], "UI/NewUI/activeIcon"), new s(9, o.KillBossCnt, -1, 1, [ i.UnlockType.ActiveValue, i.UnlockType.Diamond ], [ 10, 20 ], "UI/NewUI/activeIcon"), new s(10, o.UseDiamond, -1, 50, [ i.UnlockType.ActiveValue, i.UnlockType.Coin ], [ 10, 100 ], "UI/NewUI/activeIcon"), new s(11, o.OnlineMinute, -1, 30, [ i.UnlockType.ActiveValue, i.UnlockType.Diamond ], [ 20, 10 ], "UI/NewUI/activeIcon"), new s(12, o.ChargeMoney, -1, 1, [ i.UnlockType.ActiveValue, i.UnlockType.Coin ], [ 20, 200 ], "UI/NewUI/activeIcon") ];
e.boxItems = [ new l(1, 20, [ i.UnlockType.BluePrint ], [ 2 ], null, 2e3), new l(2, 40, [ i.UnlockType.EquipmentBluePrint ], [ 3 ], null, 2e3), new l(3, 60, [ i.UnlockType.Saodang, i.UnlockType.Diamond ], [ 1, 10 ]), new l(4, 80, [ i.UnlockType.EquipmentPiece ], [ 2 ], [ 1, 2 ], 3e3, a.EquipmentType.Mask), new l(5, 100, [ i.UnlockType.EquipmentPiece ], [ 2 ], [ 1, 2 ], 3e3, a.EquipmentType.Wing) ];
return e;
}();
n.DailyMissionConfig = c;
cc._RF.pop();
}, {
"../../Framework/Localize/LocalizeManager": void 0,
"./ArchivementConfig": "ArchivementConfig",
"./EquipmentConfig": "EquipmentConfig"
} ],
DailyMissionData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a5d6dMQGMtA/qHdvgn+olOt", "DailyMissionData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.DailyMissionData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../Messaging/MessageBroadcastReceiver"), i = e("./DailyMissionConfig"), a = e("./GameModel"), l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.value_ = 0;
t.unlock_ = !1;
t.isGetReward = !1;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "value", {
get: function() {
return this.value_;
},
set: function(e) {
if (!this.unlock) {
this.value_ = e;
this.value >= this.proto.y && (this.unlock = !0);
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "visible", {
get: function() {
if (!this.proto) return !1;
if (this.proto.unlockLevel < 0) return !0;
var e = a.default.Instance.GetLevel(this.proto.unlockLevel);
return !(e && !e.unlock);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "unlock", {
get: function() {
return this.unlock_;
},
set: function(e) {
var t = this.unlock_;
this.unlock_ = e;
t != e && e && r.BroadcastMessage(null, "OnUnlockDailyMission", this);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = i.DailyMissionConfig.GetDailyMission(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "value_", void 0);
__decorate([ o.SerializeField("c") ], t.prototype, "unlock_", void 0);
__decorate([ o.SerializeField("d") ], t.prototype, "isGetReward", void 0);
return t;
}(o.default);
n.DailyMissionData = l;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./DailyMissionConfig": "DailyMissionConfig",
"./GameModel": "GameModel"
} ],
DailyMissionRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bc70aHPdSxJYIlkqoiaKuLz", "DailyMissionRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/ArchivementModel"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cntLable = null;
t.timeCounter = 0;
return t;
}
n = t;
t.prototype.update = function(e) {
this.timeCounter -= e;
if (this.timeCounter <= 0) {
var t = n.redCnt;
this.node.opacity = t > 0 ? 255 : 0;
this.cntLable.string = t.toFixed(0);
this.timeCounter = 1;
}
};
Object.defineProperty(t, "redCnt", {
get: function() {
for (var e = 0, t = o.default.Instance, n = t.dailyMissionList, r = 0; r < n.length; r++) {
var i = n[r];
i.unlock && !i.isGetReward && e++;
}
var a = t.activeValue.intValue / 100;
for (r = 0; r < t.activeBoxOpen.length; r++) 0 == t.activeBoxOpen[r] && a >= .2 * (r + 1) && e++;
return e;
},
enumerable: !1,
configurable: !0
});
var n;
__decorate([ a(cc.Label) ], t.prototype, "cntLable", void 0);
return n = __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../Config/ArchivementModel": "ArchivementModel"
} ],
DashSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9c978/BnRlEFbfx68Eq79yo", "DashSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.DashSkill = void 0;
var o = e("../../../Framework/Core/Resource/EffectManager"), r = e("../../../Framework/Core/Resource/SoundsManager"), i = e("../../Config/Config"), a = e("../../Config/SkillConfig"), l = e("../Util"), s = e("../View/TailRenderer"), c = e("./BaseSkill"), u = cc._decorator, p = u.ccclass, d = (u.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.oldSpawnInvertal = 0;
t.oldFadeTime = 0;
t.dashingCnt = 0;
t.dashCdTime = 0;
t.maxDashCnt = 1;
t.leftDashCnt = t.maxDashCnt;
t.lastDashTime = 0;
return t;
}
Object.defineProperty(t.prototype, "curCD", {
get: function() {
return Math.max(.1, (1 - .01 * this.context.owner.GetFeature(a.SkillFeature.DashCDUpPercent)) * i.Config.DashCD);
},
enumerable: !1,
configurable: !0
});
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, i, c, u, p;
return __generator(this, function(d) {
switch (d.label) {
case 0:
t = this.context.owner;
this.leftDashCnt = Math.max(0, this.leftDashCnt - 1);
this.dashingCnt++;
t.controlableCnt--;
(n = t.getComponent(s.default)).enabled = !0;
if (1 == this.dashingCnt) {
this.oldSpawnInvertal = n.spawnInvertal;
this.oldFadeTime = n.fadeTime;
}
return [ 4, o.EffectManager.PlayEffect(null, "Prefabs/NewSkill/DashTail", t.aimPnt, cc.Vec2.ZERO, l.default.forward2Angle(e)) ];

case 1:
d.sent();
r.default.instance.PlayEffect("dash");
t.isMainPlayer && t.isDashing && this.broadcastMessage("OnDashEnd");
t.isDashing = !0;
i = .1 * (1 + .01 * t.GetFeature(a.SkillFeature.DashTimeUpPercent));
t.body.velocity = e.multiplyScalar(2e3);
t.anim.enabled = !1;
t.wuDiLeftTime += i + .15;
n.spawnInvertal = .01;
n.fadeTime = .1;
n.carePosition = !1;
t.isMainPlayer && this.broadcastMessage("OnDashBegin");
return [ 4, this.waitForTime(i) ];

case 2:
d.sent();
this.dashingCnt--;
t.controlableCnt++;
if (0 == this.dashingCnt) {
t.body.velocity = cc.Vec2.ZERO;
t.anim.enabled = !0;
t.isDashing = !1;
n.spawnInvertal = this.oldSpawnInvertal;
n.fadeTime = this.oldFadeTime;
n.carePosition = !0;
n.enabled = !1;
c = t.GetFeature(a.SkillFeature.DashWuDiTimeUp);
u = l.default.time;
p = u - this.lastDashTime;
p = Math.min(c, p);
this.lastDashTime = u;
p > 0 && this.context.owner.AddBuff(this.context.buff, p, this.context);
t.isMainPlayer && this.broadcastMessage("OnDashEnd");
}
return [ 2 ];
}
});
});
};
t.prototype.OnUpdate = function(e) {
if (this.leftDashCnt < this.maxDashCnt) {
this.dashCdTime += e;
if (this.dashCdTime >= this.curCD) {
this.dashCdTime = 0;
this.leftDashCnt++;
this.context.owner.isMainPlayer && this.broadcastMessage("OnDashReload");
}
}
};
return __decorate([ p ], t);
}(c.default));
n.DashSkill = d;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/EffectManager": void 0,
"../../../Framework/Core/Resource/SoundsManager": void 0,
"../../Config/Config": "Config",
"../../Config/SkillConfig": "SkillConfig",
"../Util": "Util",
"../View/TailRenderer": "TailRenderer",
"./BaseSkill": "BaseSkill"
} ],
Dedication: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7c87cZdk0RL+IE2okMUgt1v", "Dedication");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("./BaseTalentSkill"), i = e("../../../Config/SkillConfig"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.summonDamageUpPercent = 10;
t.summonCDUpPercent = 10;
t.isAdded = !1;
t.summonId = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnStartTalent = function() {
this.isAdded = !1;
this.summonId = 0;
};
t.prototype.OnSummonChange = function(e) {
if (cc.isValid(e)) if (1 == e.summons.length) {
if (!this.isAdded) {
this.isAdded = !0;
var t = e.summons[0];
this.summonId = t.proto.id;
t.AddFeatureEx(i.SkillFeature.SummonDamageUpPercent, this.summonDamageUpPercent * this.context.talentData.lv);
t.AddFeatureEx(i.SkillFeature.SummonCDUpPercent, this.summonCDUpPercent * this.context.talentData.lv);
}
} else if (this.isAdded) {
this.isAdded = !1;
if (t = e.GetSummon(this.summonId)) {
t.AddFeatureEx(i.SkillFeature.SummonDamageUpPercent, -this.summonDamageUpPercent * this.context.talentData.lv);
t.AddFeatureEx(i.SkillFeature.SummonCDUpPercent, -this.summonCDUpPercent * this.context.talentData.lv);
}
}
};
__decorate([ s() ], t.prototype, "summonDamageUpPercent", void 0);
__decorate([ s() ], t.prototype, "summonCDUpPercent", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnSummonChange", null);
return __decorate([ l ], t);
}(r.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
DelayActive: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e7e53PND1hEta3dDDHkk8Iz", "DelayActive");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, r = o.ccclass, i = o.property, a = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.target = null;
t.active = !0;
t.delay = 1;
return t;
}
t.prototype.onEnable = function() {
var e = this;
this.target.active = !this.active;
this.scheduleOnce(function() {
e.target.active = e.active;
}, this.delay);
};
__decorate([ i(cc.Node) ], t.prototype, "target", void 0);
__decorate([ i() ], t.prototype, "active", void 0);
__decorate([ i ], t.prototype, "delay", void 0);
return __decorate([ r ], t);
}(cc.Component);
n.default = a;
cc._RF.pop();
}, {} ],
DianLiChongNeng: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e5130BK4sRMb5WuyOWHFLgy", "DianLiChongNeng");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ratio = 20;
t.bulletNum = 3;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnHitEntity = function(e) {
o.default.RandomInt(0, 100) < this.ratio && e.target && e.context.owner == this.context.owner && e.context.isLightningSkill && this.context.owner.AddBulletNumber(this.bulletNum);
};
__decorate([ s() ], t.prototype, "ratio", void 0);
__decorate([ s() ], t.prototype, "bulletNum", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill"
} ],
DiaoLing2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ee6b1pDUEVAGpl2LjAZD4ob", "DiaoLing2");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.buffTriggerRatio = 5;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IsActive = !0;
n.TriggerBuffRatio = this.buffTriggerRatio;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IsActive = !1;
};
var n;
t.IsActive = !1;
t.TriggerBuffRatio = 0;
__decorate([ a() ], t.prototype, "buffTriggerRatio", void 0);
return n = __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
DiaoLing: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b1decDHIJBK/L0a/c942XIP", "DiaoLing");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.exDamageRatio = 30;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IsActive = !0;
n.DamageRatio = this.exDamageRatio;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IsActive = !1;
};
var n;
t.IsActive = !1;
t.DamageRatio = 0;
__decorate([ a() ], t.prototype, "exDamageRatio", void 0);
return n = __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
DissolveEffect: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b6638j6MgBOxZP/u/n7Rqn2", "DissolveEffect");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.target = null;
t.speed = .5;
t.passedTime = 0;
t.time = 0;
t.accel = 5;
t.mat = null;
return t;
}
t.prototype.Init = function(e, t) {
this.target.spriteFrame && this.target.spriteFrame.decRef();
this.target.spriteFrame = e;
this.passedTime = 0;
this.target.spriteFrame && this.target.spriteFrame.addRef();
var n = this.target.spriteFrame.getRect(), o = this.target.spriteFrame.getTexture(), r = n.x / o.width, i = n.y / o.height, a = (n.x + n.width) / o.width, l = (n.y + n.height) / o.height;
this.mat.setProperty("_TexRect", new cc.Vec4(r, i, a - r, l - i));
this.mat.setProperty("_edgeColor", t);
};
t.prototype.onDestroy = function() {
this.target.spriteFrame && this.target.spriteFrame.decRef();
this.target.spriteFrame = null;
};
t.prototype.onLoad = function() {
this.mat = this.target.getMaterial(0);
this.target.spriteFrame = null;
};
t.prototype.cubicOut = function(e) {
return --e * e * e + 1;
};
t.prototype.lateUpdate = function(e) {
this.passedTime += e * this.speed;
this.time = this.cubicOut(this.passedTime);
this.mat.setProperty("_Time", this.time, 0);
};
__decorate([ a(cc.Sprite) ], t.prototype, "target", void 0);
return __decorate([ i ], t);
}(o.MyComponent);
n.default = l;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
DongLiZhuanHuan: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ed8b2LZ9o1FYpVuoAapLNkr", "DongLiZhuanHuan");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("./BaseTalentSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.seconds = 1;
t.ratio = 7;
t.rate = 0;
t.speedOffset = 0;
t.isTrick = !1;
t.player = null;
t.passedTime = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnStartTalent = function() {
this.player = r.LevelContext.Instance.mainPlayer;
this.isTrick = !1;
this.rate = this.ratio * this.context.talentData.lv * .01;
};
t.prototype.OnExpChanged = function() {
this.AddTime();
};
t.prototype.OnUpdate = function(e) {
if (this.passedTime > 0) {
this.passedTime -= e;
if (this.passedTime <= 0) {
this.passedTime = 0;
this.OnTimeOut();
}
}
};
t.prototype.AddTime = function() {
this.isTrick && this.ReduceSpeed();
this.speedOffset = this.player.speed * this.rate;
this.AddSpeed();
this.isTrick = !0;
this.passedTime = this.seconds;
};
t.prototype.OnTimeOut = function() {
if (this.isTrick) {
this.ReduceSpeed();
this.isTrick = !1;
}
};
t.prototype.AddSpeed = function() {
this.player.speed += this.speedOffset;
};
t.prototype.ReduceSpeed = function() {
this.player.speed -= this.speedOffset;
};
__decorate([ s() ], t.prototype, "seconds", void 0);
__decorate([ s() ], t.prototype, "ratio", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnExpChanged", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
DropItemConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "85009xZbmpNF4iihnyJoFxz", "DropItemConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.DropItemConfig = n.DropItemProto = void 0;
var o = e("../../Service/kl"), r = e("../../Service/PlatformService"), i = e("../Battle/LevelContext"), a = e("../Config/BattleItemConfig"), l = e("./SkillConfig"), s = function(e, t, n) {
this.itemId = e;
this.weight = t;
this.time = n;
};
n.DropItemProto = s;
var c = function() {
function e() {}
e.GetDropItemId = function(t) {
if (r.default.isInWhiteList) {
e.items[0].weight = 10;
e.items[1].weight = 20;
e.items[1].time = 0;
e.items[2].weight = 70;
e.items[2].time = 0;
}
e.ids = [];
for (var n = i.LevelContext.Instance.mainPlayer.GetFeature(l.SkillFeature.LuckUp) / 1 * .01, a = 0; a < e.items.length; a++) {
var s = e.items[a];
if (!(t < s.time)) {
var c = s.weight;
c = Math.floor(c * (1 + n));
for (var u = 0; u < c; u++) e.ids.push(s.itemId);
}
}
e.ids.sort(function() {
return Math.random() > .5 ? 1 : -1;
});
var p = e.ids;
return p[o.default.RandomInt(0, p.length - 1)];
};
e.items = [ new s(-1, 90, 0), new s(a.BattleItemConfig.GoldCloverItemId, 5, 180), new s(a.BattleItemConfig.VehicleItemId, 5, 240) ];
e.ids = null;
return e;
}();
n.DropItemConfig = c;
cc._RF.pop();
}, {
"../../Service/PlatformService": void 0,
"../../Service/kl": void 0,
"../Battle/LevelContext": "LevelContext",
"../Config/BattleItemConfig": "BattleItemConfig",
"./SkillConfig": "SkillConfig"
} ],
EYun: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "5e411GUXI1IwKvJ3hY8cNjl", "EYun");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.delayTime = 1;
t.exDamageRatio = 100;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IsActive = !0;
n.Delay = this.delayTime;
n.DamageRatio = this.exDamageRatio;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IsActive = !1;
};
var n;
t.IsActive = !1;
t.Delay = 0;
t.DamageRatio = 0;
__decorate([ a() ], t.prototype, "delayTime", void 0);
__decorate([ a() ], t.prototype, "exDamageRatio", void 0);
return n = __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
EffectHandler_Buff: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d90c5TKB4dNcoDfD55W802P", "EffectHandler_Buff");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Service/kl"), r = e("../Entity"), i = e("./EffectHandler"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.buff = null;
t.buffRatio = 100;
t.buffTime = 3;
return t;
}
t.prototype.onCollisionEnter = function(e) {
if (this.isActive) {
var t = e.node.parent.getComponent(r.Entity);
t && t.damagable && this.TryBuff(t);
}
};
t.prototype.TryBuff = function(e) {
return this.buff && o.default.RandomInt(0, 100) < this.buffRatio ? e.AddBuff(this.buff, this.buffTime, this.skill) : null;
};
__decorate([ s(cc.Prefab) ], t.prototype, "buff", void 0);
__decorate([ s() ], t.prototype, "buffRatio", void 0);
__decorate([ s() ], t.prototype, "buffTime", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Service/kl": void 0,
"../Entity": "Entity",
"./EffectHandler": "EffectHandler"
} ],
EffectHandler_ContinuousDamage: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "27cecSmszdN6r/1EtYeQmty", "EffectHandler_ContinuousDamage");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./EffectHandler"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.hitOnFirstTouch = !1;
t.hitColliders = [];
t.passedTime = 0;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.hitColliders = [];
};
t.prototype.onCollisionEnter = function(e) {
if (this.isActive) {
this.hitColliders.push(e);
this.hitOnFirstTouch && this.skill.Damage(e.node, cc.Vec2.ZERO, this.curDamage);
}
};
t.prototype.onCollisionExit = function(e) {
var t = this.hitColliders.indexOf(e);
t < 0 || this.hitColliders.splice(t, 1);
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
var t = this.skill.skillData.proto.damageIntervel;
if (this.passedTime >= t) {
this.passedTime = 0;
for (var n = 0; n < this.hitColliders.length; n++) {
var o = this.hitColliders[n];
cc.isValid(o) && this.skill.Damage(o.node, cc.Vec2.ZERO, this.curDamage);
}
}
};
__decorate([ a() ], t.prototype, "hitOnFirstTouch", void 0);
return __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"./EffectHandler": "EffectHandler"
} ],
EffectHandler_Damage: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e41ac29dddLI7Qu++8ZcW+a", "EffectHandler_Damage");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./EffectHandler"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
return t;
}
t.prototype.onCollisionEnter = function(e) {
if (this.isActive) {
var t = e.node.parent.convertToWorldSpaceAR(cc.Vec2.ZERO, this.v1), n = this.node.convertToWorldSpaceAR(cc.Vec2.ZERO, this.v2);
this.skill.Damage(e.node, cc.Vec2.subtract(this.v3, t, n).normalizeSelf(), this.curDamage);
}
};
return __decorate([ i ], t);
}(o.default));
n.default = a;
cc._RF.pop();
}, {
"./EffectHandler": "EffectHandler"
} ],
EffectHandler_EnemyDamage: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "16d4bVfR3lPP4BK0Sqk24l1", "EffectHandler_EnemyDamage");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../LevelContext"), r = e("./EffectHandler"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.playerDamage = 1;
return t;
}
t.prototype.onCollisionEnter = function(e) {
if (this.isActive) {
var t = e.node.parent, n = o.LevelContext.Instance.mainPlayer, r = t == n.node || n.vehicle && n.vehicle.node == t, i = cc.Vec2.subtract(cc.v2(), t.getPosition(), this.node.getPosition()).normalizeSelf();
this.skill.Damage(e.node, i, r ? this.playerDamage : this.curDamage);
}
};
__decorate([ l() ], t.prototype, "playerDamage", void 0);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../LevelContext": "LevelContext",
"./EffectHandler": "EffectHandler"
} ],
EffectHandler_Slowdown: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "75fa88a+y1LB5abA7OczWnk", "EffectHandler_Slowdown");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Config/SkillConfig"), r = e("../Entity"), i = e("../Skill/EffectHandler"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.slowdown = -80;
t.realSlowdown = 0;
return t;
}
n = t;
t.AddCnt = function(e, t, n) {
var r = e.slowdownCnt;
e.slowdownCnt += t;
var i = e.slowdownCnt;
if (0 == r && 1 == i) {
e.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, n);
e.ResetFeatures();
}
if (1 == r && 0 == i) {
e.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, -n);
e.ResetFeatures();
}
};
t.prototype.onCollisionEnter = function(e) {
if (this.isActive) {
var t = e.node.parent.getComponent(r.Entity);
if (t) {
this.realSlowdown = this.slowdown * (1 - .01 * t.GetFeature(o.SkillFeature.AntiSlowdownUpPercent));
n.AddCnt(t, 1, this.realSlowdown);
}
}
};
t.prototype.onCollisionExit = function(e) {
var t = e.node.parent.getComponent(r.Entity);
t && n.AddCnt(t, -1, this.realSlowdown);
};
var n;
__decorate([ s() ], t.prototype, "slowdown", void 0);
return n = __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"../Entity": "Entity",
"../Skill/EffectHandler": "EffectHandler"
} ],
EffectHandler: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3bc8bszFDlDdo8S89IyqOaH", "EffectHandler");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./TriggerHandler"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.finishOnEnable = !0;
t.damage = 0;
t.curDamage = 0;
t.skill_ = null;
return t;
}
Object.defineProperty(t.prototype, "skill", {
get: function() {
return this.skill_;
},
set: function(e) {
this.skill_ = e;
},
enumerable: !1,
configurable: !0
});
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.curDamage = this.damage;
};
t.prototype.onDestroy = function() {
this.skill_ = null;
this.onHit = null;
};
t.prototype.onCollisionEnter = function(e, t) {
this.onHit && this.onHit(e, t);
};
__decorate([ a() ], t.prototype, "damage", void 0);
return __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"./TriggerHandler": "TriggerHandler"
} ],
EffectLayer: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "84bcb4ueq9PCq/I5FQbJpz8", "EffectLayer");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.EffectLayer = void 0;
(function(e) {
e[e.Ground = 0] = "Ground";
e[e.Player = 1] = "Player";
e[e.Effect = 2] = "Effect";
})(n.EffectLayer || (n.EffectLayer = {}));
cc._RF.pop();
}, {} ],
EffectSkill_Boom_Raser_Arc: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "479070OS3pBFocHPGacd9te", "EffectSkill_Boom_Raser_Arc");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../Util"), i = e("../EffectSkill_Boom"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.count = 5;
t.bulletAngle = 0;
t.rasers_h = [];
return t;
}
t.prototype.DoFire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, i, a, l, s, c, u, p, d, f, h, m, w;
return __generator(this, function(y) {
switch (y.label) {
case 0:
this.OnBegin();
t = this.context.owner.firePos;
n = o.default.A2R(this.bulletAngle);
i = e.firePos.sub(t).normalizeSelf();
a = n * (this.count - 1);
l = .5 * -a;
if (this.context.isCleared) return [ 2 ];
this.rasers_h = [];
s = 0;
this.context.owner.walkableCnt--;
for (w = 0; w < this.count; w++) {
c = l + w * n;
u = i.rotate(c);
p = u.mul(60);
d = t.add(p);
h = this.context.CreateEffectHandler(this.context.fireEffect, this.context.fireSound, d, r.default.forward2Angle(u), this.GetEffectLayer(), !0, null);
m = h.getComponent(cc.Animation);
s = m.play("BulletJiGuang1_Ready").duration;
this.rasers_h.push(m);
}
return [ 4, this.waitForTime(s) ];

case 1:
y.sent();
if (!cc.isValid(this.context)) {
console.warn("EffectSkill_Boom_Raser_Arc DoFire not vaild context, 1");
return [ 2 ];
}
f = 0;
for (w = 0; w < this.count; w++) {
if (h = this.rasers_h[w]) {
m = h.getComponent(cc.Animation);
f = m.play("BulletJiGuang1_Fire").duration;
}
if (!cc.isValid(this.context)) {
console.warn("EffectSkill_Boom_Raser_Arc DoFire not vaild context, 2");
return [ 2 ];
}
}
return [ 4, this.waitForTime(f) ];

case 2:
y.sent();
for (w = 0; w < this.rasers_h.length; w++) this.context.cache.DestroyNode(this.rasers_h[w].node);
if (!cc.isValid(this.context)) {
console.warn("EffectSkill_Boom_Raser_Arc DoFire not vaild context, 3");
return [ 2 ];
}
this.context.owner.walkableCnt++;
this.OnEnd();
return [ 2 ];
}
});
});
};
t.prototype.OnBegin = function() {
this.context.owner.ai.enableTimeSkill = !1;
};
t.prototype.OnEnd = function() {
this.context.owner.ai.enableTimeSkill = !0;
};
__decorate([ s() ], t.prototype, "count", void 0);
__decorate([ s() ], t.prototype, "bulletAngle", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../Util": "Util",
"../EffectSkill_Boom": "EffectSkill_Boom"
} ],
EffectSkill_Boom_Raser_Grid: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9bf441hY6tOPow8bOXJDohj", "EffectSkill_Boom_Raser_Grid");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("../../Util"), i = e("../EffectSkill_Boom"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.column = 10;
t.row = 8;
t.width = 140;
t.height = 140;
t.angle = 45;
t.stopWalkTime = 5;
return t;
}
t.prototype.GetPos = function() {
return o.LevelContext.Instance.camera.node.getPosition();
};
t.prototype.DoFire = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
var n, o, i, a, l = this;
return __generator(this, function() {
n = this.GetPos(e, t);
if (this.context.isCleared) return [ 2 ];
for (o = 0; o < this.column; o++) {
i = o % 2 == 0 ? 1 : -1;
a = cc.v2(this.width * (.5 + Math.trunc(o / 2)) * i, 0).rotate(r.default.A2R(this.angle));
this.context.PlayEffectHandler(this.context.fireEffect, this.context.fireSound, n.add(a), 90 + this.angle, this.GetEffectLayer(), null);
}
for (o = 0; o < this.row; o++) {
i = o % 2 == 0 ? 1 : -1;
a = cc.v2(0, this.height * (.5 + Math.trunc(o / 2)) * i).rotate(r.default.A2R(this.angle));
this.context.PlayEffectHandler(this.context.fireEffect, this.context.fireSound, n.add(a), 0 + this.angle, this.GetEffectLayer(), null);
}
if (this.stopWalkTime > 0) {
this.context.owner.walkableCnt--;
cc.tween(this.node).delay(this.stopWalkTime).call(function() {
cc.isValid(l.context.owner) && l.context.owner.walkableCnt++;
}).start();
}
return [ 2 ];
});
});
};
__decorate([ s() ], t.prototype, "column", void 0);
__decorate([ s() ], t.prototype, "row", void 0);
__decorate([ s() ], t.prototype, "width", void 0);
__decorate([ s() ], t.prototype, "height", void 0);
__decorate([ s() ], t.prototype, "angle", void 0);
__decorate([ s() ], t.prototype, "stopWalkTime", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../EffectSkill_Boom": "EffectSkill_Boom"
} ],
EffectSkill_Boom_Raser_Horizonal: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a3eadSaXDNPuLDW/KpVkQhh", "EffectSkill_Boom_Raser_Horizonal");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Util"), r = e("../EffectSkill_Boom"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.delay = .1;
t.count = 5;
t.fireOffsetLen = 70;
t.spaceRow = 40;
t.rasers_h = [];
return t;
}
t.prototype.DoFire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, r, i, a, l, s, c, u, p;
return __generator(this, function(d) {
switch (d.label) {
case 0:
this.OnBegin();
t = this.context.owner.firePos;
n = e.firePos.sub(t).normalizeSelf();
r = n.mul(this.fireOffsetLen);
i = t.add(r);
a = i.add(n.rotate(o.default.A2R(90)).mul((this.count - 1) / 2 * this.spaceRow));
if (this.context.isCleared) return [ 2 ];
this.rasers_h = [];
p = 0;
d.label = 1;

case 1:
if (!(p < this.count)) return [ 3, 4 ];
l = a.add(n.rotate(o.default.A2R(-90)).mul(p * this.spaceRow));
c = this.context.CreateEffectHandler(this.context.fireEffect, this.context.fireSound, l, o.default.forward2Angle(n), this.GetEffectLayer(), !0, null);
(u = c.getComponent(cc.Animation)).play("BulletJiGuang1_Ready");
this.rasers_h.push(u);
return [ 4, this.waitForTime(this.delay) ];

case 2:
d.sent();
d.label = 3;

case 3:
p++;
return [ 3, 1 ];

case 4:
if (!cc.isValid(this.context)) {
console.warn("EffectSkill_Boom_Raser_Horizonal DoFire not vaild context, 1");
return [ 2 ];
}
s = 0;
p = 0;
d.label = 5;

case 5:
if (!(p < this.count)) return [ 3, 8 ];
c = this.rasers_h[p];
u = c.getComponent(cc.Animation);
s = u.play("BulletJiGuang1_Fire").duration;
if (!cc.isValid(this.context)) {
console.warn("EffectSkill_Boom_Raser_Horizonal DoFire not vaild context, 2");
return [ 2 ];
}
return [ 4, this.waitForTime(this.delay) ];

case 6:
d.sent();
d.label = 7;

case 7:
p++;
return [ 3, 5 ];

case 8:
return [ 4, this.waitForTime(s) ];

case 9:
d.sent();
for (p = 0; p < this.rasers_h.length; p++) this.context.cache.DestroyNode(this.rasers_h[p].node);
if (!cc.isValid(this.context)) {
console.warn("EffectSkill_Boom_Raser_Horizonal DoFire not vaild context, 3");
return [ 2 ];
}
this.OnEnd();
return [ 2 ];
}
});
});
};
__decorate([ l() ], t.prototype, "delay", void 0);
__decorate([ l() ], t.prototype, "count", void 0);
__decorate([ l() ], t.prototype, "fireOffsetLen", void 0);
__decorate([ l() ], t.prototype, "spaceRow", void 0);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../Util": "Util",
"../EffectSkill_Boom": "EffectSkill_Boom"
} ],
EffectSkill_Boom_Raser_Rotate: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7a2e8XLWTRHopoDpHXQrRwH", "EffectSkill_Boom_Raser_Rotate");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../EffectSkill_Boom"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.count = 5;
t.interval = 1;
t.rotateTime = 3;
t.raserPrefabs = [];
t.rasers = [];
t.pt = 0;
return t;
}
t.prototype.DoFire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n;
return __generator(this, function(o) {
switch (o.label) {
case 0:
this.OnBegin();
e = this.context.owner.firePos;
this.pt = 0;
if (this.context.isCleared) return [ 2 ];
t = 0;
o.label = 1;

case 1:
if (!(t < this.count)) return [ 3, 4 ];
n = this.context.CreateEffectHandler(this.raserPrefabs[t % this.raserPrefabs.length], this.context.fireSound, e, .01, this.GetEffectLayer(), !0, null);
this.rasers.push(n);
return [ 4, this.waitForTime(this.interval) ];

case 2:
o.sent();
o.label = 3;

case 3:
t++;
return [ 3, 1 ];

case 4:
this.OnEnd();
return [ 2 ];
}
});
});
};
t.prototype.OnBegin = function() {
this.context.owner.body.enabled = !1;
};
t.prototype.OnEnd = function() {
cc.isValid(this.context) && (this.context.owner.body.enabled = !0);
};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
this.pt += t;
for (var n = this.rasers.length - 1; n >= 0; n--) {
var o = this.rasers[n];
o.angle -= 360 * t / this.rotateTime;
if (this.pt > this.rotateTime) {
this.rasers.splice(n, 1);
this.context.cache.DestroyNode(o);
}
}
};
__decorate([ a() ], t.prototype, "count", void 0);
__decorate([ a() ], t.prototype, "interval", void 0);
__decorate([ a() ], t.prototype, "rotateTime", void 0);
__decorate([ a(cc.Prefab) ], t.prototype, "raserPrefabs", void 0);
return __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../EffectSkill_Boom": "EffectSkill_Boom"
} ],
EffectSkill_Boom_Raser: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "04987XufeFLRJiJbkCTO007", "EffectSkill_Boom_Raser");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/EffectManager"), r = e("../../LevelContext"), i = e("../../LevelManager"), a = e("../EffectSkill_Boom"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.animationName = "";
return t;
}
t.prototype.GetPos = function() {
return r.LevelContext.Instance.camera.node.getPosition();
};
t.prototype.DoFire = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
var n, r, a, l, s, c;
return __generator(this, function(u) {
switch (u.label) {
case 0:
this.OnBegin();
n = this.GetPos(e, t);
if (!this.readyEft) return [ 3, 2 ];
(r = o.EffectManager.PlayEffectSync(this.context.cache, this.readyEft, this.GetGroundLayer(), n)).scaleX = Math.random() > .5 ? 1 : -1;
a = r.getComponent(cc.Animation);
return [ 4, this.waitForTime(a.defaultClip.duration) ];

case 1:
u.sent();
u.label = 2;

case 2:
if (this.context.isCleared) return [ 2 ];
l = this.context.CreateEffectHandler(this.context.fireEffect, this.context.fireSound, n, 0, this.GetEffectLayer(), !0, null);
s = l.getComponent(cc.Animation).play(this.animationName);
l.opacity = 255;
return [ 4, i.LevelManager.Instance.waitForTime(s.duration) ];

case 3:
u.sent();
c = this.context;
if (!cc.isValid(c)) {
console.warn("EffectSkill_Boom_Raser DoFire not vaild context, 1");
return [ 2 ];
}
cc.tween(l).to(.3, {
opacity: 0
}).call(function() {
c.cache.DestroyNode(l);
}).start();
this.OnEnd();
return [ 2 ];
}
});
});
};
t.prototype.OnBegin = function() {
var e = this.context.owner;
e && e.ai && (e.ai.enableTimeSkill = !1);
};
t.prototype.OnEnd = function() {
var e = this.context.owner;
e && e.ai && (e.ai.enableTimeSkill = !0);
};
__decorate([ c() ], t.prototype, "animationName", void 0);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/EffectManager": void 0,
"../../LevelContext": "LevelContext",
"../../LevelManager": "LevelManager",
"../EffectSkill_Boom": "EffectSkill_Boom"
} ],
EffectSkill_Boom: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "66c3f0v7EVDWKGGw6NWYXwe", "EffectSkill_Boom");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/AssetManager"), r = e("../../../Service/kl"), i = e("../../Config/SkillConfig"), a = e("../LevelContext"), l = e("./BaseSkill"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.readyEft = null;
t.readyGround = !0;
t.ground = !0;
t.playerLayer = !1;
t.timeRange = cc.Vec2.ZERO;
t.offsetRange = cc.v2(300, 200);
return t;
}
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n;
return __generator(this, function(o) {
switch (o.label) {
case 0:
this.context.isCleared = !1;
e = this.context.skillData.proto.bulletNumber + this.context.GetFeature(i.SkillFeature.BulletNumUp);
t = 0;
o.label = 1;

case 1:
if (!(t < e)) return [ 3, 4 ];
(n = this.context.GetFireEnemy()) ? this.DoFire(n, t) : this.DoFire(null, t);
return [ 4, this.waitForTime(r.default.Random(this.timeRange.x, this.timeRange.y)) ];

case 2:
o.sent();
o.label = 3;

case 3:
t++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.GetPos = function(e) {
var t = null;
if (e) {
(t = e.node.getPosition()).x += r.default.RandomInt(-this.offsetRange.x, this.offsetRange.x);
t.y += r.default.RandomInt(-this.offsetRange.y, this.offsetRange.y);
} else {
(t = this.context.owner.node.getPosition()).x += r.default.RandomInt(-this.offsetRange.x, this.offsetRange.x);
t.y += r.default.RandomInt(-this.offsetRange.y, this.offsetRange.y);
}
return t;
};
t.prototype.GetEffectLayer = function() {
return this.ground ? a.LevelContext.Instance.groundLayer : this.playerLayer ? a.LevelContext.Instance.playerLayer : a.LevelContext.Instance.effectLayer;
};
t.prototype.GetGroundLayer = function() {
return this.readyGround ? a.LevelContext.Instance.groundLayer : a.LevelContext.Instance.effectLayer;
};
t.prototype.DoFire = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
var n, r, i;
return __generator(this, function(a) {
switch (a.label) {
case 0:
n = this.GetPos(e, t);
if (!this.readyEft) return [ 3, 2 ];
(r = o.default.Default.CreateNodeSync(this.readyEft, this.GetGroundLayer(), n)).scaleX = Math.random() > .5 ? 1 : -1;
i = r.getComponent(cc.Animation);
this.context.InitEffectHandler(r, null);
return [ 4, this.waitForTime(i.defaultClip.duration) ];

case 1:
a.sent();
o.default.Default.DestroyNode(r);
a.label = 2;

case 2:
if (this.context.isCleared) return [ 2 ];
this.context.PlayEffectHandler(this.context.fireEffect, this.context.fireSound, n, 0, this.GetEffectLayer(), null, !0, null);
return [ 2 ];
}
});
});
};
__decorate([ u(cc.Prefab) ], t.prototype, "readyEft", void 0);
__decorate([ u() ], t.prototype, "readyGround", void 0);
__decorate([ u() ], t.prototype, "ground", void 0);
__decorate([ u() ], t.prototype, "playerLayer", void 0);
__decorate([ u(cc.Vec2) ], t.prototype, "timeRange", void 0);
__decorate([ u(cc.Vec2) ], t.prototype, "offsetRange", void 0);
return __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/AssetManager": void 0,
"../../../Service/kl": void 0,
"../../Config/SkillConfig": "SkillConfig",
"../LevelContext": "LevelContext",
"./BaseSkill": "BaseSkill"
} ],
EffectSkill_Continuous: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bc265XtL6VDRJHuOCcCrDqh", "EffectSkill_Continuous");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../LevelContext"), r = e("../LevelManager"), i = e("../View/FollowEntityFirePnt"), a = e("./BaseSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.destoryTime = -1;
t.ground = !1;
t.followFirePnt = !0;
t.eft = null;
return t;
}
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
this.eft = null;
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
if (this.eft) {
this.eft.active = !0;
this.context.InitEffectHandler(this.eft, null);
}
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
this.eft && (this.eft.active = !1);
};
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function(t) {
switch (t.label) {
case 0:
this.context.isCleared = !1;
e = this.ground ? o.LevelContext.Instance.groundLayer : o.LevelContext.Instance.effectLayer;
this.eft = this.context.cache.CreateNodeSync(this.context.fireEffect, e, this.context.owner.body.position);
this.followFirePnt && (this.eft.getOrAddComponent(i.default).target = this.context.owner);
return this.destoryTime > 0 ? [ 4, r.LevelManager.Instance.waitForTime(this.destoryTime) ] : [ 3, 2 ];

case 1:
t.sent();
this.context.cache.DestroyNode(this.eft);
this.eft = null;
t.label = 2;

case 2:
return [ 2 ];
}
});
});
};
t.prototype.OnEnableSkill = function(e) {
this.eft && (this.eft.active = e);
};
__decorate([ c() ], t.prototype, "destoryTime", void 0);
__decorate([ c() ], t.prototype, "ground", void 0);
__decorate([ c() ], t.prototype, "followFirePnt", void 0);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../LevelContext": "LevelContext",
"../LevelManager": "LevelManager",
"../View/FollowEntityFirePnt": "FollowEntityFirePnt",
"./BaseSkill": "BaseSkill"
} ],
EffectSkill_Multi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "521c0e9tOFGP7+BZ/y0QYvu", "EffectSkill_Multi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../LevelContext"), r = e("../Util"), i = e("./BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletAngle = 0;
t.bulletIntervel = 0;
return t;
}
t.prototype.CreateEffects = function(e, t, n) {
return __awaiter(this, void 0, void 0, function() {
var i, a, l, s, c, u;
return __generator(this, function(p) {
switch (p.label) {
case 0:
i = r.default.forward2Angle(e);
if (!(t > 1)) return [ 3, 5 ];
a = this.bulletAngle * (t - 1);
l = .5 * -a;
s = 0;
p.label = 1;

case 1:
if (!(s < t)) return [ 3, 4 ];
c = i + l + s * this.bulletAngle;
u = r.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, n, c, o.LevelContext.Instance.effectLayer);
this.context.InitEffectHandler(u, function() {}, !1);
return this.bulletIntervel > 0 ? [ 4, this.waitForTime(this.bulletIntervel) ] : [ 3, 3 ];

case 2:
p.sent();
p.label = 3;

case 3:
s++;
return [ 3, 1 ];

case 4:
return [ 3, 6 ];

case 5:
u = r.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, n, i, o.LevelContext.Instance.effectLayer);
this.context.InitEffectHandler(u, function() {}, !1);
p.label = 6;

case 6:
return [ 2 ];
}
});
});
};
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n;
return __generator(this, function() {
t = this.context.fireCount;
n = this.context.owner ? this.context.owner.firePos : this.node.getPosition();
this.CreateEffects(e, t, n);
return [ 2 ];
});
});
};
__decorate([ s() ], t.prototype, "bulletAngle", void 0);
__decorate([ s() ], t.prototype, "bulletIntervel", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../LevelContext": "LevelContext",
"../Util": "Util",
"./BaseSkill": "BaseSkill"
} ],
EffectSkill_RaserRotate: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0d9eenh1/NJRY9Z/PxGXZcs", "EffectSkill_RaserRotate");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/EffectManager"), r = e("../../../../Service/kl"), i = e("../../LevelContext"), a = e("../../Util"), l = e("../EffectSkill"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.count = 5;
t.rotateAngle = 60;
t.rotateSpeed = 8;
t.offsetLen = 60;
t.dir = 1;
t.startAngle = 0;
t.readyEft = null;
t.readyTime = 0;
t.rasers = [];
t.pt = 0;
t.firePos = cc.v2();
t.rotating = !1;
t.liftTime = 0;
t.p1 = cc.v2();
t.p2 = cc.v2();
return t;
}
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, l, s, c, u, p, d, f, h, m, w, y;
return __generator(this, function(g) {
switch (g.label) {
case 0:
if (this.rasers.length > 0) return [ 2 ];
this.pt = 0;
this.rotating = !1;
this.liftTime = this.rotateAngle / this.rotateSpeed;
t = this.context.owner.firePos;
this.firePos.set(t);
n = r.default.A2R(360 / this.count);
l = e;
s = n * (this.count - 1);
c = .5 * -s + r.default.A2R(this.startAngle);
if (this.context.isCleared) return [ 2 ];
this.rasers = [];
if (!this.readyEft) return [ 3, 2 ];
w = o.EffectManager.PlayEffectSync(this.context.cache, this.readyEft, i.LevelContext.Instance.effectLayer, t, a.default.forward2Angle(l));
y = w.getComponent(cc.Animation);
return [ 4, this.waitForTime(0 != this.readyTime ? this.readyTime : y.defaultClip.duration) ];

case 1:
g.sent();
g.label = 2;

case 2:
u = 0;
for (m = 0; m < this.count; m++) {
p = c + m * n;
d = l.rotate(p);
f = d.mul(this.offsetLen);
h = t.add(f);
w = this.context.CreateEffectHandler(this.context.fireEffect, this.context.fireSound, h, a.default.forward2Angle(d), i.LevelContext.Instance.effectLayer, !0, null);
y = w.getComponent(cc.Animation);
u = y.play("BulletJiGuang1_Ready").duration;
this.rasers.push(w);
}
this.pt -= u;
return [ 4, this.waitForTime(u) ];

case 3:
g.sent();
this.rotating = !0;
if (!cc.isValid(this.context)) {
console.warn("EffectSkill_RaserRotate DoFire not vaild context, 1");
return [ 2 ];
}
for (m = 0; m < this.count; m++) (w = this.rasers[m]) && (y = w.getComponent(cc.Animation)).play("BulletJiGuang1_Fire").duration;
return [ 4, this.waitForTime(this.liftTime + .5) ];

case 4:
g.sent();
return [ 2 ];
}
});
});
};
t.prototype.OnBegin = function() {
this.context.owner.walkableCnt--;
};
t.prototype.OnEnd = function() {
cc.isValid(this.context) && cc.isValid(this.context.owner) && this.context.owner.walkableCnt++;
};
t.prototype.ReleaseRasers = function() {
this.rotating = !1;
for (var e = this.rasers.length - 1; e >= 0; e--) {
var t = this.rasers[e];
this.rasers.splice(e, 1);
t && (this.context.cache ? this.context.cache.DestroyNode(t) : t.destroy());
}
};
t.prototype.OnPoolDisable = function() {
this.ReleaseRasers();
e.prototype.onDisable.call(this);
};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
if (this.rotating) {
this.pt += t;
if (this.pt >= this.liftTime) this.ReleaseRasers(); else for (var n = this.rasers.length - 1; n >= 0; n--) {
var o = this.rasers[n];
o.angle += this.dir * this.rotateSpeed * t;
o.setPosition(this.firePos.add(a.default.angle2Forward(o.angle, this.p1).mulSelf(this.offsetLen), this.p2));
}
}
};
__decorate([ u() ], t.prototype, "count", void 0);
__decorate([ u() ], t.prototype, "rotateAngle", void 0);
__decorate([ u() ], t.prototype, "rotateSpeed", void 0);
__decorate([ u() ], t.prototype, "offsetLen", void 0);
__decorate([ u({
tooltip: "1逆时针，-1顺时针"
}) ], t.prototype, "dir", void 0);
__decorate([ u({
tooltip: "初始角度"
}) ], t.prototype, "startAngle", void 0);
__decorate([ u(cc.Prefab) ], t.prototype, "readyEft", void 0);
__decorate([ u() ], t.prototype, "readyTime", void 0);
return __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/EffectManager": void 0,
"../../../../Service/kl": void 0,
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../EffectSkill": "EffectSkill"
} ],
EffectSkill_Raser: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e9187h+tZ1PX6OiDv431Uxq", "EffectSkill_Raser");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/EffectManager"), r = e("../../../../Framework/Core/Resource/SoundsManager"), i = e("../../../../Service/kl"), a = e("../../LevelContext"), l = e("../../Util"), s = e("../../View/FollowEntityFirePnt"), c = e("../BaseSkill"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.signUpdateInterval = 1;
t.rotateSpeed = 30;
t.rotateAccel = 1;
t.lenLerpSpeed = 3;
t.maxLen = 600;
t.lifeTime = 5;
t.groundFireEft = null;
t.groundFireInterval = .05;
t.fireNode = null;
t.eft = null;
t.sign = 1;
t.lifeLeftTime = 0;
t.signPsTime = 0;
t.curRotateSpeed = 0;
t.goundFirePsTime = 0;
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, o;
return __generator(this, function() {
e = cc.Vec2.squaredDistance(this.context.owner.body.position, a.LevelContext.Instance.mainPlayer.body.position);
t = this.context.skillData.proto.range;
if (e > t * t) return [ 2 ];
n = l.default.forward2Angle(a.LevelContext.Instance.mainPlayer.aimPos.sub(this.context.owner.firePos).normalizeSelf());
o = n + Math.randomSign() * i.default.Random(30, 40);
if (!this.eft) {
this.eft = this.context.cache.CreateNodeSync(this.context.fireEffect, a.LevelContext.Instance.effectLayer, this.context.owner.firePos);
this.eft.getOrAddComponent(s.default).target = this.context.owner;
this.eft.angle = o;
this.eft.width = 500;
this.fireNode = this.eft.findChild("View/FireNode");
this.context.InitEffectHandler(this.eft, null);
this.context.owner.walkableCnt--;
}
this.lifeLeftTime = this.lifeTime;
this.UpdateSign(this.signUpdateInterval);
r.default.instance.PlayEffectSync(this.context.fireSound);
return [ 2 ];
});
});
};
t.prototype.UpdateSign = function(e) {
if (this.eft && 0 != this.signUpdateInterval) {
this.signPsTime += e;
if (this.signPsTime >= this.signUpdateInterval) {
var t = l.default.forward2Angle(a.LevelContext.Instance.mainPlayer.aimPos.sub(this.context.owner.firePos).normalizeSelf()) - this.eft.angle;
this.sign = Math.sign(Math.abs(t) > 180 ? -t : t);
this.signPsTime = 0;
}
}
};
t.prototype.OnUpdate = function(e) {
if (!(this.lifeLeftTime <= 0)) {
this.lifeLeftTime -= e;
if (this.lifeLeftTime <= 0) {
if (this.context.cache) {
this.context.cache.DestroyNode(this.eft);
this.eft = null;
}
this.context.owner && this.context.owner.walkableCnt++;
}
if (this.eft) {
this.UpdateSign(e);
var t = cc.Vec2.distance(a.LevelContext.Instance.mainPlayer.aimPos, this.context.owner.firePos);
this.eft.width = Math.min(this.maxLen, cc.misc.lerp(this.eft.width, t, this.lenLerpSpeed * e));
this.curRotateSpeed = Math.minmax(-this.rotateSpeed, this.rotateSpeed, this.curRotateSpeed + this.sign * this.rotateAccel);
this.eft.angle += this.curRotateSpeed * e;
this.eft.angle > 180 && (this.eft.angle -= 360);
this.eft.angle < -180 && (this.eft.angle += 360);
if (this.groundFireEft && this.fireNode && this.context.cache) {
this.goundFirePsTime += e;
if (this.goundFirePsTime > this.groundFireInterval) {
this.goundFirePsTime = 0;
var n = a.LevelContext.Instance.groundLayer.convertToNodeSpaceAR(this.fireNode.convertToWorldSpaceAR(cc.Vec2.ZERO, this.v1), this.v2);
o.EffectManager.PlayEffectSync(this.context.cache, this.groundFireEft, a.LevelContext.Instance.groundLayer, n, 0, i.default.Random(.5, .8));
var r = this.v1;
r.x = i.default.Random(-30, 30);
r.y = i.default.Random(-30, 30);
o.EffectManager.PlayEffectSync(this.context.cache, this.groundFireEft, a.LevelContext.Instance.groundLayer, n.add(r, this.v1), 0, i.default.Random(.5, .8));
}
}
}
}
};
__decorate([ d() ], t.prototype, "signUpdateInterval", void 0);
__decorate([ d() ], t.prototype, "rotateSpeed", void 0);
__decorate([ d() ], t.prototype, "rotateAccel", void 0);
__decorate([ d() ], t.prototype, "lenLerpSpeed", void 0);
__decorate([ d() ], t.prototype, "maxLen", void 0);
__decorate([ d() ], t.prototype, "lifeTime", void 0);
__decorate([ d(cc.Prefab) ], t.prototype, "groundFireEft", void 0);
__decorate([ d() ], t.prototype, "groundFireInterval", void 0);
return __decorate([ p ], t);
}(c.default);
n.default = f;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/EffectManager": void 0,
"../../../../Framework/Core/Resource/SoundsManager": void 0,
"../../../../Service/kl": void 0,
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../../View/FollowEntityFirePnt": "FollowEntityFirePnt",
"../BaseSkill": "BaseSkill"
} ],
EffectSkill_Target: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0b646pMd4JFla6PqRJBAbRF", "EffectSkill_Target");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../LevelContext"), r = e("../Util"), i = e("./BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.playerLayer = !1;
return t;
}
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n;
return __generator(this, function() {
if (!(e = this.context.GetFireInfo().target)) return [ 2 ];
t = e.body.position;
n = r.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, t, 0, this.playerLayer ? o.LevelContext.Instance.playerLayer : o.LevelContext.Instance.effectLayer);
this.context.InitEffectHandler(n, null, !1);
return [ 2 ];
});
});
};
__decorate([ s() ], t.prototype, "playerLayer", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../LevelContext": "LevelContext",
"../Util": "Util",
"./BaseSkill": "BaseSkill"
} ],
EffectSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9a3ceidsLpFwof2Nwpml9gE", "EffectSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../LevelContext"), r = e("../Util"), i = e("./BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ownerPosition = !1;
t.groundLayer = !1;
return t;
}
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, i;
return __generator(this, function() {
t = null;
n = 0;
if (this.ownerPosition) t = this.context.owner ? this.context.owner.body.position : this.node.position; else {
t = this.context.owner.firePos;
n = r.default.forward2Angle(e);
}
i = r.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, t, n, this.groundLayer ? o.LevelContext.Instance.groundLayer : o.LevelContext.Instance.effectLayer);
this.context.InitEffectHandler(i, null, !1);
return [ 2 ];
});
});
};
__decorate([ s() ], t.prototype, "ownerPosition", void 0);
__decorate([ s() ], t.prototype, "groundLayer", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../LevelContext": "LevelContext",
"../Util": "Util",
"./BaseSkill": "BaseSkill"
} ],
EnemyGroup: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ed079/YNONIjLSXaNPMbij2", "EnemyGroup");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.EnemyGroup = void 0;
var o = e("../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.enemies = [];
t.totalHp = 0;
t.timeout = 30;
t.groupAsOne = !1;
t.passedTime = 0;
t.dirty = !1;
return t;
}
t.prototype.onLoad = function() {
if (this.groupAsOne) {
for (var e = 0; e < this.enemies.length; e++) {
var t = this.enemies[e];
this.totalHp += t.health;
t.AddListener(this.node);
}
for (e = 0; e < this.enemies.length; e++) (t = this.enemies[e]).health = this.totalHp;
}
};
t.prototype.onDestroy = function() {
this.enemies = null;
};
t.prototype.OnDamage = function(e, t, n) {
this.dropItemRate = n;
this.dirty = !0;
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
if (this.passedTime >= this.timeout) this.DestroyAll(0); else if (this.dirty) {
this.dirty = !1;
if (this.groupAsOne) {
for (var t = 0, n = 0; n < this.enemies.length; n++) {
var o = this.enemies[n];
o.health < this.totalHp && (t += this.totalHp - o.health);
}
this.totalHp <= t && this.DestroyAll(this.dropItemRate);
}
}
};
t.prototype.DestroyAll = function(e) {
for (var t = 0; t < this.enemies.length; t++) {
var n = this.enemies[t];
if (cc.isValid(n)) {
n.RemoveListener(this.node);
n.health > 0 && n.Damage(n.health, e);
}
}
this.node.destroy();
};
return __decorate([ i ], t);
}(o.MyComponent));
n.EnemyGroup = a;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0
} ],
Enemy_08: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a4a64Jqd5dJeK+jKShtagbV", "Enemy_08");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Enemy_08 = void 0;
var o = e("../Enemy"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnDead = function(t, n, o) {
void 0 === o && (o = null);
return __awaiter(this, void 0, void 0, function() {
var r;
return __generator(this, function(i) {
switch (i.label) {
case 0:
if (this.activeSkills.length <= 0) return [ 2 ];
(r = this.activeSkills[0].skill) && r.triggerCnt <= 0 && r.Trigger();
return [ 4, e.prototype.OnDead.call(this, t, n, o) ];

case 1:
return [ 2, i.sent() ];
}
});
});
};
return __decorate([ i ], t);
}(o.Enemy));
n.Enemy_08 = a;
cc._RF.pop();
}, {
"../Enemy": "Enemy"
} ],
Enemy_10: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4f858eEaK5MMohE4H7Jashu", "Enemy_10");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Enemy_10 = void 0;
var o = e("../Enemy"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.shieldNode = null;
t.shieldHealthScale = .5;
t.noShieldSpeedScale = 0;
t.shieldHealth = 0;
return t;
}
t.prototype.OnInit = function(t, n) {
void 0 === n && (n = !0);
e.prototype.OnInit.call(this, t, n);
this.shieldHealth = this.health * this.shieldHealthScale;
this.speed *= this.noShieldSpeedScale;
this.shieldNode.active = !0;
};
t.prototype.Damage = function(t, n, o, r) {
void 0 === n && (n = 100);
void 0 === o && (o = null);
void 0 === r && (r = cc.Vec2.ZERO);
if (this.shieldHealth > 0) {
this.shieldHealth -= t;
this.shieldNode.active = this.shieldHealth > 0;
this.shieldHealth <= 0 && (this.speed /= this.noShieldSpeedScale);
return !0;
}
return e.prototype.Damage.call(this, t, n, o, r);
};
__decorate([ a(cc.Node) ], t.prototype, "shieldNode", void 0);
__decorate([ a() ], t.prototype, "shieldHealthScale", void 0);
__decorate([ a() ], t.prototype, "noShieldSpeedScale", void 0);
return __decorate([ i ], t);
}(o.Enemy);
n.Enemy_10 = l;
cc._RF.pop();
}, {
"../Enemy": "Enemy"
} ],
Enemy_11: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e47e4ASW09LtrxtOMnK8IN0", "Enemy_11");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Enemy_11 = void 0;
var o = e("../Enemy"), r = e("../Level/LevelMonsterSpawn"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.splitCnt = 2;
t.splitScale = .5;
t.splitLevel = 0;
return t;
}
t.prototype.OnDead = function(t, n, o) {
void 0 === o && (o = null);
return __awaiter(this, void 0, void 0, function() {
var i, a, l, s;
return __generator(this, function(c) {
switch (c.label) {
case 0:
if (0 != this.splitLevel) return [ 3, 5 ];
this.showDeadEffect = !1;
i = this.node.x;
a = this.node.y;
l = 0;
c.label = 1;

case 1:
return l < this.splitCnt ? [ 4, r.LevelMonsterSpawn.CreateMonsterEx(this.proto, i + (0 == l ? 0 : 45 * this.node.scale), a, 0, !0, !0, !0) ] : [ 3, 4 ];

case 2:
(s = c.sent()).node.scale = this.node.scale * this.splitScale;
s.splitLevel = this.splitLevel + 1;
c.label = 3;

case 3:
l++;
return [ 3, 1 ];

case 4:
return [ 3, 6 ];

case 5:
this.showDeadEffect = !0;
this.splitLevel = 0;
c.label = 6;

case 6:
return [ 4, e.prototype.OnDead.call(this, t, n, o) ];

case 7:
return [ 2, c.sent() ];
}
});
});
};
__decorate([ l() ], t.prototype, "splitCnt", void 0);
__decorate([ l() ], t.prototype, "splitScale", void 0);
return __decorate([ a ], t);
}(o.Enemy);
n.Enemy_11 = s;
cc._RF.pop();
}, {
"../Enemy": "Enemy",
"../Level/LevelMonsterSpawn": "LevelMonsterSpawn"
} ],
Enemy_13: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f34133CyjpEdJEDAIoIe/fR", "Enemy_13");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Enemy_13 = void 0;
var o = e("../Enemy"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ghostNode = null;
t.ghostTime = 3;
t.ghostLeftTime = 0;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.ghostLeftTime = 0;
};
t.prototype.Damage = function(t, n, o, r) {
void 0 === n && (n = 100);
void 0 === o && (o = null);
void 0 === r && (r = cc.Vec2.ZERO);
this.ghostLeftTime = this.ghostTime;
return e.prototype.Damage.call(this, t, n, o, r);
};
t.prototype.OnUpdate = function(t) {
this.ghostLeftTime -= t;
this.view.active = this.ghostLeftTime <= 0 || this.dead;
this.ghostNode.active = !this.view.active;
this.collider.enabled = this.view.active;
this.ghostNode.scaleX = this.view.scaleX;
e.prototype.OnUpdate.call(this, t);
};
__decorate([ a(cc.Node) ], t.prototype, "ghostNode", void 0);
__decorate([ a() ], t.prototype, "ghostTime", void 0);
return __decorate([ i ], t);
}(o.Enemy);
n.Enemy_13 = l;
cc._RF.pop();
}, {
"../Enemy": "Enemy"
} ],
Enemy_26_Fan: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "dc7b7ue2h1Kgr8rmCZYLSXw", "Enemy_26_Fan");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Enemy_26_Fan = n.AttractForce = void 0;
var o = e("../../RVO2/IBody"), r = e("../Enemy"), i = e("../LevelContext"), a = e("../../../Framework/Core/Resource/MyComponent"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t(t, n, o) {
var r = e.call(this, 0, 0, null) || this;
r.power = 0;
r.firer = null;
r.target = null;
r.isFinish = !1;
r.power = t;
r.target = o;
r.firer = n;
return r;
}
t.prototype.Update = function() {
if (cc.isValid(this.firer) && cc.isValid(this.target)) {
this.firer.body.position.sub(this.target.body.position, this.force);
this.force.normalizeSelf();
this.force.mulSelf(this.power);
}
};
t.prototype.IsFinish = function() {
return !cc.isValid(this.firer) || !cc.isValid(this.target) || this.isFinish;
};
return t;
}(o.IForce);
n.AttractForce = u;
var p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.power = 100;
t.owner = null;
t.force = null;
return t;
}
t.prototype.onCollisionEnter = function(e) {
if (this.isActive && "PlayerFoot" == e.node.group) {
this.force && (this.force.isFinish = !0);
var t = new u(this.power, this.owner, i.LevelContext.Instance.mainPlayer);
this.force = t;
i.LevelContext.Instance.mainPlayer.body.AddForce1(t);
console.log("add force.......");
}
};
t.prototype.onCollisionExit = function(e) {
if ("PlayerFoot" == e.node.group) {
this.force && (this.force.isFinish = !0);
this.force = null;
console.log("remove force.......");
}
};
__decorate([ c() ], t.prototype, "power", void 0);
__decorate([ c(r.Enemy) ], t.prototype, "owner", void 0);
return __decorate([ s ], t);
}(a.MyComponent);
n.Enemy_26_Fan = p;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../../RVO2/IBody": "IBody",
"../Enemy": "Enemy",
"../LevelContext": "LevelContext"
} ],
Enemy_36: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "afb74pJ0vJPP7Zj3mS7JPl0", "Enemy_36");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Enemy_36 = void 0;
var o = e("../Enemy"), r = e("../LevelManager"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.life = 3;
t.rebornTime = 5;
t.curLife = 0;
return t;
}
t.prototype.OnInit = function(t, n) {
void 0 === n && (n = !0);
e.prototype.OnInit.call(this, t, !0);
this.collider.enabled = !0;
this.ai.enabled = !0;
this.curLife = this.life;
};
t.prototype.OnDead = function(t, n, o) {
void 0 === o && (o = null);
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(i) {
switch (i.label) {
case 0:
this.curLife--;
return this.curLife <= 0 ? [ 4, e.prototype.OnDead.call(this, t, n, o) ] : [ 3, 2 ];

case 1:
i.sent();
return [ 3, 5 ];

case 2:
this.ClearBuffs();
this.body.ClearForce();
this.walkableCnt--;
this.ai.enabled = !1;
this.collider.enabled = !1;
this.canDamage = !1;
this.enableUpdateViewDir = !1;
this.anim.play("Death");
return [ 4, r.LevelManager.Instance.waitForTime(this.rebornTime) ];

case 3:
i.sent();
if (!cc.isValid(this.node)) return [ 2 ];
this.anim.play("Reborn");
return [ 4, r.LevelManager.Instance.waitForTime(.5) ];

case 4:
i.sent();
if (!cc.isValid(this.node)) return [ 2 ];
this.anim.play("Move");
this.Freeze(!1, 0);
this.health = this.maxHealth;
this.enableUpdateViewDir = !0;
this.canDamage = !0;
this.collider.enabled = !0;
this.ai.enabled = !0;
this.walkableCnt++;
i.label = 5;

case 5:
return [ 2 ];
}
});
});
};
__decorate([ l() ], t.prototype, "life", void 0);
__decorate([ l() ], t.prototype, "rebornTime", void 0);
return __decorate([ a ], t);
}(o.Enemy);
n.Enemy_36 = s;
cc._RF.pop();
}, {
"../Enemy": "Enemy",
"../LevelManager": "LevelManager"
} ],
Enemy_SceneConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a9f9cGTJWxGSauCZKW5v6+w", "Enemy_SceneConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Enemy_SceneConfig = void 0;
var o = e("../Config/MonsterConfig"), r = e("../Messaging/MessageBroadcastReceiver"), i = e("./Enemy"), a = cc._decorator, l = a.ccclass, s = a.property, c = a.requireComponent, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.monsterId = 0;
return t;
}
t.prototype.OnLevelStart = function() {
this.getComponent(i.Enemy).OnInit(o.MonsterConfig.GetMonster(this.monsterId));
};
__decorate([ s() ], t.prototype, "monsterId", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnLevelStart", null);
return __decorate([ l, c(i.Enemy) ], t);
}(r.BroadcastReceiverComponent);
n.Enemy_SceneConfig = u;
cc._RF.pop();
}, {
"../Config/MonsterConfig": "MonsterConfig",
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./Enemy": "Enemy"
} ],
Enemy: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "651b0kvPaRHn4zTXg6/lxlN", "Enemy");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Enemy = void 0;
var o = e("../../Framework/Core/Resource/SoundsManager"), r = e("../../Service/kl"), i = e("../Config/BattleItemConfig"), a = e("../Config/MonsterConfig"), l = e("./Entity"), s = e("./Item"), c = e("./LevelContext"), u = e("../RVO2/RVOBody"), p = e("../Config/BattleSkillData"), d = e("../Config/Config"), f = e("../../Framework/Core/Views/ViewUIManager"), h = e("../UI/BattleResultUI"), m = e("../../Framework/Core/Resource/EffectManager"), w = e("./Skill/SkillContext"), y = e("../Config/GameModel"), g = e("./Level/MonsterSpanwnMgr"), v = e("./CollisionItem"), S = e("./Skill/ISkill"), M = e("./Util"), k = e("../Config/SkillConfig"), C = e("./Level/LevelMonsterSpawn"), P = e("./AI/AIComponent"), _ = cc._decorator, O = _.ccclass, b = _.property, F = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.followPlayer = !0;
t.canRecycle = !0;
t.showDeadEffect = !0;
t.showSelectOutline = !0;
t.recycleDistance = 0;
t.resetTargetIntervel = 99999999;
t.proto = null;
t.ai = null;
t.srcAreaCollision = !0;
t.resetTargetPassedTime = 0;
t.damagePassedTime = 0;
t.damageContext = new w.default();
t.damageResult = new S.HitResult();
t.canDamage = !0;
t.hitEntity = null;
t._target = null;
return t;
}
Object.defineProperty(t.prototype, "target", {
get: function() {
return this._target;
},
set: function(e) {
this._target = e;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
this.damageContext.owner = this;
this.getComponent(v.CollisionItem);
if (this.body instanceof u.RVOBody) {
this.bodyRadius = this.body.bodyRadius;
this.bodySkin = this.body.skin;
}
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
c.LevelContext.Instance.enemies.push(this);
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
this.hitEntity = null;
var t = c.LevelContext.Instance.enemies.indexOf(this);
t >= 0 && c.LevelContext.Instance.enemies.splice(t, 1);
};
t.prototype.onCollisionEnter = function(e) {
this.isActive && "Player" == e.node.group && (this.hitEntity = e.node.parent.getComponent(l.Entity));
};
t.prototype.onCollisionExit = function(e) {
"Player" == e.node.group && (this.hitEntity = null);
};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
this.UpdateTarget(t);
cc.isValid(this.hitEntity) && this.UpdateDamage(this.hitEntity, t);
};
t.prototype.OnInit = function(t, n) {
void 0 === n && (n = !0);
this.wuDiLeftTime = 99999;
e.prototype.OnInit.call(this, t);
var o = c.LevelContext.Instance.spawnInfo.enemyPowerUp, r = c.LevelContext.Instance.mainPlayer;
this.proto = t;
this.speed = this.proto.speed * ((o ? o.speedScale : 1) + .01 * r.GetFeature(k.SkillFeature.MonsterSpawnSpeedUpPercent));
this.health = this.maxHealth = this.proto.health * ((o ? o.healthScale : 1) + .01 * r.GetFeature(k.SkillFeature.MonsterSpawnHealthUpPercent));
this.view.color = cc.Color.WHITE;
this.damagePassedTime = 0;
if (this.body instanceof u.RVOBody) {
this.body.SetRadius(this.bodyRadius * this.proto.scale, this.bodySkin * this.proto.scale);
this.body.SetCollideMask(d.Config.RVOLayer_Enemy);
}
this.CalcTarget();
if (this.proto.skills && this.proto.skills.length > 0) this.OnInit2(n); else {
n && this.InitAI();
this.damageIntervel = .1;
this.wuDiLeftTime = 0;
}
};
t.prototype.OnInit2 = function(e) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(t) {
switch (t.label) {
case 0:
return [ 4, r.default.catchAsync(this, this.InitSkills) ];

case 1:
t.sent();
e && this.InitAI();
this.damageIntervel = .1;
this.wuDiLeftTime = 0;
return [ 2 ];
}
});
});
};
t.prototype.OnLockTarget = function(e) {
this.showSelectOutline && (e ? this.viewEft.SetOutlineMat() : this.viewEft.SetNormalMat());
};
t.prototype.CalcTarget = function() {
for (var e = Number.MAX_SAFE_INTEGER, t = null, n = c.LevelContext.Instance.enemyTargets, o = 0; o < n.length; o++) {
var r = n[o];
if (!r.dead && r.node.active) {
var i = cc.Vec2.squaredDistance(r.body.position, this.body.position);
if (i <= e) {
e = i;
t = r;
}
}
}
this.target = null != t ? t : c.LevelContext.Instance.mainPlayer;
this.target && cc.Vec2.subtract(this.fireForward, this.target.body.position, this.body.position).normalizeSelf();
};
t.prototype.InitAI = function() {
this.ai = this.getComponent(P.AIComponent);
this.ai || (this.ai = P.AIComponent.createDefaultAI(this));
this.ai.OnInit();
this.ai.enabled = !0;
};
t.prototype.InitSkills = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, o;
return __generator(this, function(r) {
switch (r.label) {
case 0:
if (this.activeSkills.length > 0) return [ 2 ];
e = 0;
r.label = 1;

case 1:
if (!(e < this.proto.skills.length)) return [ 3, 4 ];
t = this.proto.skills[e];
(n = new p.BattleSkillData(t)).id = t.id;
n.unlock = !0;
return [ 4, this.AddSkillByData(n) ];

case 2:
(o = r.sent()) && o.OnInit(this);
r.label = 3;

case 3:
e++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.UpdateFace = function() {
if (0 != this.body.velocity.x) this.view.scaleX = Math.abs(this.view.scaleX) * (this.body.velocity.x > 0 ? 1 : -1) * this.rightForward; else if (this.target) {
var e = this.target.node.x - this.node.x;
this.view.scaleX = Math.abs(this.view.scaleX) * (e > 0 ? 1 : -1) * this.rightForward;
}
};
t.prototype.UpdateTarget = function(e) {
this.resetTargetPassedTime += e;
if (this.resetTargetPassedTime >= this.resetTargetIntervel) {
this.resetTargetPassedTime = 0;
this.CalcTarget();
}
};
t.prototype.UpdateDamage = function(e, t) {
if (!this.dead && this.canDamage) {
this.damagePassedTime += t;
if (this.damagePassedTime >= this.damageIntervel) {
this.damagePassedTime -= this.damageIntervel;
if (e.isWuDi) return;
if (w.default.IsDogde(e)) {
e.showHitEft && e.PlayTextEffect("", "闪避");
return;
}
var n = this.proto.damage;
if (!e.Damage(n, 0, this.damageContext)) return;
e.showHitEft && o.default.instance.PlayEffect("hit");
e.isMainPlayer && !e.dead && this.ShowHitPlayerEffect(e);
this.broadcastMessage("OnHitEntity", this.damageResult);
}
}
};
t.prototype.ShowHitPlayerEffect = function(e) {
this.damageResult.target = e;
this.damageResult.context = this.damageContext;
this.damageResult.isHit = !0;
c.LevelContext.Instance.cameraShake.Start(5, .3);
M.default.Vibrate();
};
t.prototype.OnDead = function(t, n, o) {
var l = this;
void 0 === o && (o = null);
c.LevelContext.Instance.killEnemyCnt++;
var s = cc.v2(this.body.position);
this.proto.dropItems.forEach(function(e) {
var n = e[0], o = e[1];
n == i.BattleItemConfig.BoxItemId ? r.default.RandomInt(0, 100) <= o && l.DropBox(s.add(cc.v2(r.default.RandomInt(-70, 70), r.default.RandomInt(-70, 70))), i.BattleItemConfig.BoxItemId) : n == i.BattleItemConfig.BookItemId ? r.default.RandomInt(0, 100) <= o && l.DropBox(s.add(cc.v2(r.default.RandomInt(-70, 70), r.default.RandomInt(-70, 70))), i.BattleItemConfig.BookItemId) : r.default.RandomInt(0, 100) <= o * (t / 100) && !y.default.Instance.enableGuideLevel && l.DropItem(n, s.add(cc.v2(r.default.RandomInt(-70, 70), r.default.RandomInt(-70, 70))));
});
this.broadcastMessage("OnKillEnemy", this, o, c.LevelContext.Instance.levelProto.id, c.LevelContext.Instance.mainPlayer.heroData.proto.id, this.proto.id, this.proto.type);
e.prototype.OnDead.call(this, t, n, o);
this.body.isActive = !1;
this.body.ClearForce();
this.body.velocity = cc.Vec2.ZERO;
for (var u = this.proto.type == a.MonsterType.Boss, p = null, d = c.LevelContext.Instance.enemies.length - 1; d >= 0; d--) {
var f = c.LevelContext.Instance.enemies[d];
if (f != this && f.proto.type == a.MonsterType.Boss && !f.dead) {
p = f;
break;
}
}
u && !p ? this.OnBossDead(n, o) : this.OnNormalMonsterDead(n, o);
};
t.prototype.OnNormalMonsterDead = function(e, t) {
var n = this;
void 0 === t && (t = null);
this.showDeadEffect && this.viewEft.ShowDeadEffect(e, t, .5);
this.scheduleOnce(function() {
g.MonsterSpanwnMgr.Instance.DestroyNode(n.node);
}, .5);
};
t.prototype.OnBossDead = function(e, t) {
void 0 === t && (t = null);
return __awaiter(this, void 0, void 0, function() {
var n, o, r;
return __generator(this, function(i) {
switch (i.label) {
case 0:
for (n = c.LevelContext.Instance.enemies.length - 1; n >= 0; n--) (o = c.LevelContext.Instance.enemies[n]) != this && g.MonsterSpanwnMgr.Instance.DestroyNode(o.node);
C.LevelMonsterSpawn.Instance.destroy();
c.LevelContext.Instance.mainPlayer.timeScale = 0;
c.LevelContext.Instance.mainPlayer.body.isActive = !1;
c.LevelContext.Instance.isRunning = !1;
(r = this.viewEft.ShowDeadEffect(e, t, 4)) && (r.speed = .085);
return [ 4, m.EffectManager.PlayEffect(null, "Prefabs/Effect/BossDeath_EF", c.LevelContext.Instance.effectLayer, c.LevelContext.Instance.mainPlayer.node.getPosition()) ];

case 1:
i.sent();
this.node.active = !1;
return [ 4, c.LevelContext.Instance.waitForTime(4) ];

case 2:
i.sent();
f.default.ShowView(h.default, !0);
return [ 2 ];
}
});
});
};
t.prototype.DropItem = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
var n, o, r, a, l;
return __generator(this, function(u) {
switch (u.label) {
case 0:
n = i.BattleItemConfig.GetItem(e);
o = this.proto;
if (e == i.BattleItemConfig.EqupBpItemId) {
if ((r = c.LevelContext.Instance.GetItemCount(e)) + c.LevelContext.Instance.totalEquipBlueprints >= d.Config.MaxEquipBpItemCountPerLevel) return [ 2 ];
if (r + c.LevelContext.Instance.totalEquipBlueprints + y.default.Instance.equipmentBlueprintDropCount.value >= d.Config.MaxEquipBpItemCountPerDay) return [ 2 ];
if (y.default.Instance.lockEquipmentCount <= 0) return [ 2 ];
} else if (c.LevelContext.Instance.items.length >= d.Config.MaxItemCount) return [ 2 ];
return [ 4, c.LevelContext.itemCache.CreateNode(n.resPath, null, t) ];

case 1:
a = u.sent();
(l = a.getComponent(s.Item)).itemProto = n;
l.monsterProto = o;
a.setParent(c.LevelContext.Instance.groundLayer);
return [ 2 ];
}
});
});
};
t.prototype.DropBox = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
var n, o, r;
return __generator(this, function(a) {
switch (a.label) {
case 0:
n = i.BattleItemConfig.GetItem(t);
c.LevelContext.Instance.CalcValidItemPos(e);
return [ 4, c.LevelContext.itemCache.CreateNode(n.resPath, null, e) ];

case 1:
o = a.sent();
(r = o.getComponent(s.Item)).itemProto = n;
r.monsterProto = this.proto;
o.setParent(c.LevelContext.Instance.playerLayer);
return [ 2 ];
}
});
});
};
t.prototype.ResetFeatures = function() {
this.speed = (1 + .01 * this.GetFeature(k.SkillFeature.PlayerSpeedUpPercent)) * this.proto.speed;
this.body.velocity = this.body.forward.mul(this.speed);
};
__decorate([ b() ], t.prototype, "followPlayer", void 0);
__decorate([ b() ], t.prototype, "canRecycle", void 0);
__decorate([ b() ], t.prototype, "showDeadEffect", void 0);
__decorate([ b() ], t.prototype, "showSelectOutline", void 0);
__decorate([ b() ], t.prototype, "recycleDistance", void 0);
__decorate([ b() ], t.prototype, "resetTargetIntervel", void 0);
return __decorate([ O ], t);
}(l.Entity);
n.Enemy = F;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Service/kl": void 0,
"../Config/BattleItemConfig": "BattleItemConfig",
"../Config/BattleSkillData": "BattleSkillData",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/MonsterConfig": "MonsterConfig",
"../Config/SkillConfig": "SkillConfig",
"../RVO2/RVOBody": "RVOBody",
"../UI/BattleResultUI": "BattleResultUI",
"./AI/AIComponent": "AIComponent",
"./CollisionItem": "CollisionItem",
"./Entity": "Entity",
"./Item": "Item",
"./Level/LevelMonsterSpawn": "LevelMonsterSpawn",
"./Level/MonsterSpanwnMgr": "MonsterSpanwnMgr",
"./LevelContext": "LevelContext",
"./Skill/ISkill": "ISkill",
"./Skill/SkillContext": "SkillContext",
"./Util": "Util"
} ],
EntityHUD: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "586bciN6RlBP49hsJmFaXiC", "EntityHUD");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.EntityHUD = void 0;
var o = e("../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.healthBar = null;
t.owner = null;
return t;
}
t.prototype.OnUpdate = function() {
this.healthBar && (this.healthBar.progress = this.owner.health / this.owner.maxHealth);
};
__decorate([ a(cc.ProgressBar) ], t.prototype, "healthBar", void 0);
return __decorate([ i ], t);
}(o.MyComponent);
n.EntityHUD = l;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0
} ],
EntityViewEffect: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "288261W5ohNZ7RKcCmy2oo6", "EntityViewEffect");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../resources/Lit2D/Light2DManager"), r = e("../../../../resources/Lit2D/SpriteLight"), i = e("../../Config/Config"), a = e("../../Config/GameModel"), l = e("../Entity"), s = e("../LevelContext"), c = e("../../../Framework/Core/Resource/MyComponent"), u = e("./DissolveEffect"), p = cc._decorator, d = p.ccclass, f = p.property, h = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.sprites = [];
t.outlineWidth = 2;
t.srcColor = cc.color();
t.lights = null;
t.owner = null;
t.freezeColor = cc.color().fromHEX("#EDED59");
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
t.prototype.onLoad = function() {
this.sprites.length > 0 ? this.srcColor.set(this.sprites[0].node.color) : this.srcColor.set(cc.Color.WHITE);
this.lights = this.getComponentsInChildren(r.default);
this.owner = this.getComponent(l.Entity);
};
t.prototype.onEnable = function() {
for (var e = 0; e < this.sprites.length; e++) this.sprites[e].node.opacity = 255;
if (!this.owner.isMainPlayer) for (e = 0; e < this.lights.length; e++) this.lights[e].node.active = !0;
};
t.prototype.SetMaterial = function(e) {
for (var t = 0; t < this.sprites.length; t++) this.sprites[t].setMaterial(0, e);
};
t.prototype.SetNormalMat = function() {
this.SetMaterial(s.LevelContext.Instance.normalMat);
};
t.prototype.SetOutlineMat = function() {
this.SetMaterial(s.LevelContext.Instance.outlineMat);
this.ResetOutlineParams();
o.default.Instance && o.default.Instance.SetLightParams(s.LevelContext.Instance.outlineMat);
};
t.prototype.ResetOutlineParams = function() {
for (var e = 0; e < this.sprites.length; e++) {
var t = this.sprites[e], n = t.spriteFrame;
if (n) {
var o = n.getTexture(), r = o.width, i = o.height;
t.getMaterial(0).setProperty("imgInfo", new cc.Vec4(this.outlineWidth, r, i, 1));
}
}
};
t.prototype.ShowHitEffect = function(e) {
for (var t = 0; t < this.sprites.length; t++) {
var n = this.sprites[t];
this.ShowSpriteHitEffet(n, e);
}
};
t.prototype.StopHitEffect = function() {
for (var e = 0; e < this.sprites.length; e++) {
var t = this.sprites[e];
t.hitTween && t.hitTween.stop();
}
};
t.prototype.ShowTwinkleEffect = function(e) {
if (a.default.Instance.enableFxEffect) for (var t = Math.ceil(e / .2), n = function(e) {
var n = o.sprites[e];
cc.tween(n.node).repeat(t, cc.tween(n.node).to(.1, {
opacity: 0
}).to(.1, {
opacity: 255
})).call(function() {
n.node.opacity = 255;
}).start();
}, o = this, r = 0; r < this.sprites.length; r++) n(r);
};
t.prototype.ShowFreezeEffect = function(e) {
if (e) {
this.StopHitEffect();
for (var t = 0; t < this.sprites.length; t++) this.sprites[t].node.color = this.freezeColor;
} else for (t = 0; t < this.sprites.length; t++) this.sprites[t].node.color = this.srcColor;
};
t.prototype.ShowSpriteHitEffet = function(e, t) {
if (a.default.Instance.enableFxEffect) {
e.node.color = t;
e.hitTween || (e.hitTween = cc.tween(e.node).delay(.05).to(.1, {
color: this.srcColor
}));
e.hitTween.stop();
e.hitTween.start();
}
};
t.prototype.ShowDeadEffect = function(e, t, n) {
void 0 === t && (t = null);
void 0 === n && (n = .5);
if (!a.default.Instance.enableFxEffect) return null;
var o = null;
if (!this.owner.isMainPlayer) for (var r = 0; r < this.lights.length; r++) this.lights[r].node.active = !1;
for (r = 0; r < this.sprites.length; r++) {
var l = this.sprites[r];
this.v2.set(e);
this.node.getPosition(this.v1);
l.node.opacity = 0;
var c = s.LevelContext.deadEftPool.CreateSync(s.LevelContext.Instance.effectLayer, this.v1, n, s.LevelContext.Instance.deadPrefab);
if (!c) return null;
c.scaleX = this.node.scaleX * Math.sign(l.node.scaleX);
c.scaleY = this.node.scaleY;
c.angle = this.node.angle;
(o = c.getComponent(u.default)).Init(l.spriteFrame, t ? t.damageColor : i.Config.DefaultDamageColor);
this.v2.multiplyScalar(30).addSelf(this.v1);
cc.tween(c).to(.1, {
x: this.v2.x,
y: this.v2.y
}).start();
}
return o;
};
__decorate([ f(cc.Sprite) ], t.prototype, "sprites", void 0);
return __decorate([ d ], t);
}(c.MyComponent);
n.default = h;
cc._RF.pop();
}, {
"../../../../resources/Lit2D/Light2DManager": void 0,
"../../../../resources/Lit2D/SpriteLight": void 0,
"../../../Framework/Core/Resource/MyComponent": void 0,
"../../Config/Config": "Config",
"../../Config/GameModel": "GameModel",
"../Entity": "Entity",
"../LevelContext": "LevelContext",
"./DissolveEffect": "DissolveEffect"
} ],
Entity: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "509fdp3zilKb4c5ChsAw893", "Entity");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Entity = void 0;
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../Config/SkillConfig"), i = e("../Config/BattleSkillData"), a = e("../RVO2/IBody"), l = e("./Buff/Buff"), s = e("./LevelContext"), c = e("./MapItem"), u = e("../../Framework/Core/Resource/MyComponent"), p = e("./Skill/BaseSkill"), d = e("./Tilemap/Tile"), f = e("./HitMask"), h = e("./EntityHUD"), m = e("./State/Animator"), w = e("../../Service/RemoteSetting"), y = e("./Util"), g = e("./View/EntityViewEffect"), v = e("./View/FollowTarget"), S = e("./Skill/DashSkill"), M = cc._decorator, k = M.ccclass, C = M.property, P = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.hud = null;
t.firePnt = null;
t.aimPnt = null;
t.body = null;
t.view = null;
t.collider = null;
t.anim = null;
t.dashPrefab = null;
t.enableUpdateViewDir = !0;
t.bodySize = 0;
t.rightForward = -1;
t.canFly = !1;
t.hasIdleAnim = !1;
t.targetable = !0;
t.damagable = !0;
t.showHitEft = !0;
t.collideMask = f.HitMask.None;
t.moveCollisionHalfSize = cc.size(0, 0);
t.moveCollisionOffset = cc.v2(0, 0);
t.hitFlyAble = !0;
t.speed = 0;
t.health = 0;
t.maxHealth = 0;
t.isMainPlayer = !1;
t.isDashing = !1;
t.tileMask = d.TileMask.All;
t.slowdownCnt = 0;
t.chaosCnt = 0;
t._disableFreezeCnt = 0;
t.freeze = !1;
t.leftFreeTime = 0;
t.activeSkills = [];
t.buffs = [];
t.animator = null;
t.viewEft = null;
t.dashSkill = null;
t.shadowNode = null;
t.gunFirePnt = null;
t.listeners = [];
t.features = new Array(r.SkillFeature.Count);
t.curBulletCd = 0;
t.maxBulletCd = 3;
t.maxBulletNum = 10;
t.bulletReloadRequest = !1;
t.bulletNum_ = 0;
t.fireForward = cc.v2(1, 0);
t.fireTargetManual = !1;
t.autoSelectTarget = !0;
t.lastUpdateTargetTime = 0;
t._fireTarget = null;
t._silentCnt = 0;
t._walkableCnt = 1;
t._fireSlowCnt = 0;
t._controlableCnt = 1;
t._twineCnt = 0;
t.wuDiEf = null;
t.wuDiLeftTime = 0;
t.enableSkill_ = !0;
t.hitColor = cc.color(0, 0, 0, 255);
t.c = cc.color();
t.txtCnt = 0;
t.dashForward = cc.v2();
t.isJumping = !1;
t.jumpPassedTime = 0;
t.jumpTotalTime = 0;
t.jumpV0 = 0;
t.jumpFinishCB = null;
t.gravity = -1e3;
return t;
}
n = t;
Object.defineProperty(t.prototype, "isDisableFreeze", {
get: function() {
return this._disableFreezeCnt > 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "disableFreezeCnt", {
get: function() {
return this._disableFreezeCnt;
},
set: function(e) {
this._disableFreezeCnt = e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isFreeze", {
get: function() {
return this.freeze;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "bulletNum", {
get: function() {
return this.bulletNum_;
},
set: function(e) {
this.bulletNum_ = e;
0 == e && (this.curBulletCd = 0);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "fireTarget", {
get: function() {
return this._fireTarget;
},
set: function(e) {
if (this._fireTarget != e) {
cc.isValid(this._fireTarget) && this._fireTarget.OnLockTarget(!1);
this._fireTarget = e;
this.lastUpdateTargetTime = y.default.time;
this._fireTarget && this._fireTarget.OnLockTarget(!0);
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "fireTargetExist", {
get: function() {
return cc.isValid(this.fireTarget) && !this.fireTarget.dead;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "hasBullet", {
get: function() {
return !this.dead && this.bulletNum > 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isSilent", {
get: function() {
return this._silentCnt > 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "silentCnt", {
get: function() {
return this._silentCnt;
},
set: function(e) {
this._silentCnt = e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isWalkable", {
get: function() {
return this._walkableCnt > 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "walkableCnt", {
get: function() {
return this._walkableCnt;
},
set: function(e) {
this._walkableCnt = e;
if (this.body) if (this.isWalkable) this.body.enabled = !0; else {
this.body.enabled = !1;
this.body.velocity = cc.Vec2.ZERO;
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "fireSlowCnt", {
get: function() {
return this._fireSlowCnt;
},
set: function(e) {
this._fireSlowCnt = e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "controlableCnt", {
get: function() {
return this._controlableCnt;
},
set: function(e) {
this._controlableCnt = e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "twineCnt", {
get: function() {
return this._twineCnt;
},
set: function(e) {
this._twineCnt = e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isWuDi", {
get: function() {
return this.wuDiLeftTime > 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "enableSkill", {
get: function() {
return this.enableSkill_;
},
set: function(e) {
if (this.enableSkill_ != e) {
this.enableSkill_ = e;
for (var t = 0; t < this.activeSkills.length; t++) {
var n = this.activeSkills[t];
n.skill && n.skill.OnEnableSkill(e);
}
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "dead", {
get: function() {
return this.health <= 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isReloading", {
get: function() {
return this.curBulletCd > 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "firePos", {
get: function() {
if (!this.gunFirePnt || !this.node.parent) return this.body.position;
var e = this.gunFirePnt.convertToWorldSpaceAR(cc.Vec2.ZERO);
return this.node.parent.convertToNodeSpaceAR(e);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "aimPos", {
get: function() {
if (!this.aimPnt || !this.node.parent) return this.body.position;
var e = this.aimPnt.convertToWorldSpaceAR(cc.Vec2.ZERO);
return this.node.parent.convertToNodeSpaceAR(e);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "faceRight", {
get: function() {
return this.view.scaleX > 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "faceDir", {
get: function() {
return this.faceRight ? cc.v2(1, 0) : cc.v2(-1, 0);
},
enumerable: !1,
configurable: !0
});
t.prototype.IsHitVisible = function(e) {
return 0 == (e.collideMask & this.collideMask);
};
t.prototype.IsInVision = function() {
return !1;
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
this.activeSkills = null;
this.buffs = null;
this.listeners = null;
};
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
this.gunFirePnt = this.firePnt;
this.hud && (this.hud.owner = this);
this.anim || (this.anim = this.getComponent(cc.Animation));
this.body || (this.body = this.getComponent(a.IBody));
this.viewEft = this.getComponent(g.default);
if (this.dashPrefab) {
var t = o.default.Default.CreateNodeSync(this.dashPrefab), n = t.getComponent(S.DashSkill);
n.context.skillData = new i.BattleSkillData();
n.OnInit(this);
n.context.skillData.skill = n;
t.setParent(this.node);
this.dashSkill = n;
}
};
t.prototype.onEnable = function() {
this.slowdownCnt = 0;
e.prototype.onEnable.call(this);
this.isMainPlayer || (this.listeners = []);
this.view.opacity = 255;
};
t.prototype.update = function(t) {
if (this.isActive) {
e.prototype.update.call(this, t);
this.dead || this.UpdateFreeze(t * u.MyComponent.TimeScale);
}
};
t.prototype.OnInit = function() {
this.leftFreeTime = 0;
this.freeze = !1;
this.controlableCnt = 1;
this.disableFreezeCnt = 0;
this.walkableCnt = 1;
if (this.body) {
this.body.position = this.node.getPosition();
this.body.isActive = !0;
}
this.LoadAnimator();
this.shadowNode || (this.shadowNode = this.node.findChild("shadow"));
if (this.shadowNode) {
var e = this.shadowNode.getComponent(v.default);
if (!e) {
(e = this.shadowNode.addComponent(v.default)).offset.set(this.shadowNode.getPosition());
e.SetTarget(this.node);
}
this.shadowNode.active = !0;
this.shadowNode.setParent(s.LevelContext.Instance.groundLayer);
}
};
t.prototype.LoadAnimator = function() {
var e = this.node.getOrAddComponent(m.default);
if (this.anim) {
e.animation = this.anim;
var t = new m.AnimatorState("Idle", e, "Move");
e.defaultState = t;
}
this.animator = e;
};
t.prototype.OnFinal = function() {
this.ClearSkills();
};
t.prototype.OnUpdate = function(e) {
this.enableUpdateViewDir && this.controlableCnt > 0 && this.UpdateFace();
if (this.wuDiLeftTime > 0) {
this.wuDiLeftTime -= e;
if (this.wuDiLeftTime <= 0) {
this.wuDiLeftTime = 0;
if (this.wuDiEf) {
o.default.Default.DestroyNode(this.wuDiEf);
this.wuDiEf = null;
}
}
}
this.UpdateCd(e);
this.UpdateJump(e);
};
t.prototype.AddFeature = function(e) {
this.AddFeatureEx(e.type, e.x, e.y, e.replace, e.downPercent);
};
t.prototype.AddFeatureEx = function(e, t, n, o, i) {
var a = this.features[e];
if (a) a.AddEx(t, n, o, i); else {
a = new r.SkillFeatureProto(e, t, n, o, i);
this.features[a.type] = a;
}
};
t.prototype.GetFeature = function(e) {
var t = 0, n = this.features[e];
n && (t += n.value);
for (var o = 0; o < this.activeSkills.length; o++) {
var r = this.activeSkills[o].features[e];
r && (r.downPercent ? t = 100 - (100 - t) * (100 - r.value) * .01 : t += r.value);
}
return t;
};
t.prototype.AddBulletNumber = function(e) {
if (this.bulletNum <= 0) {
var t = this.maxBulletCd / this.maxBulletNum;
this.curBulletCd += t * e;
} else {
this.bulletNum = Math.min(this.maxBulletNum, this.bulletNum + e);
this.isMainPlayer && this.broadcastMessage("OnBulletNumChanged");
}
};
t.prototype.ResetFeatures = function() {};
t.prototype.UpdateCd = function(e) {
if (this.bulletNum > 0 && !this.bulletReloadRequest) this.curBulletCd = 0; else {
this.curBulletCd += e;
if (this.curBulletCd >= this.maxBulletCd) {
this.bulletNum = this.maxBulletNum;
this.bulletReloadRequest = !1;
this.isMainPlayer && this.broadcastMessage("OnBulletReloadEnd");
}
}
};
t.prototype.OnLockTarget = function() {};
t.prototype.OnDead = function(e, t, n) {
void 0 === t && (t = cc.Vec2.ZERO);
void 0 === n && (n = null);
if (this.shadowNode) {
this.shadowNode.setParent(this.node);
this.shadowNode.setPosition(cc.Vec2.ZERO);
this.shadowNode.active = !1;
}
this.ClearBuffs();
this.ClearSkills();
this.Freeze(!1, 0);
};
t.prototype.UpdateFace = function(e, t) {
void 0 === e && (e = !1);
void 0 === t && (t = 1);
this.view.scaleX = Math.abs(this.view.scaleX) * (this.fireForward.x >= 0 ? t : -t) * this.rightForward;
};
t.prototype.UpdateFreeze = function(e) {
if (this.freeze) {
this.leftFreeTime -= e;
this.leftFreeTime = Math.max(0, this.leftFreeTime);
this.leftFreeTime <= 0 && this.Freeze(!1, 0);
}
};
t.prototype.Freeze = function(e, t) {
if (e) {
if (this.isDisableFreeze) return;
this.timeScale = 0;
this.body && (this.body.timeScale = 0);
} else {
this.timeScale = 1;
this.body && (this.body.timeScale = 1);
}
this.leftFreeTime = t;
this.freeze = e;
this.anim.enabled = !e;
this.viewEft && this.viewEft.ShowFreezeEffect(e);
};
t.prototype.ClearBuffs = function() {
for (var e = this.buffs.length - 1; e >= 0; e--) this.buffs[e].Stop();
};
t.prototype.ClearSkills = function() {
for (var e = this.activeSkills.length - 1; e >= 0; e--) {
var t = this.activeSkills[e];
this.RemoveSkill(t.id);
}
};
t.prototype.AddHealth = function(e) {
this.health = Math.min(this.health + e, this.maxHealth);
this.PlayTextEffectAsync("+" + Math.floor(100 * e) / 100, null, "Prefabs/Effect/AddHealthText");
this.SendMessage("OnHealthChanged", this, e);
};
t.prototype.GetSkill = function(e) {
var t = this.activeSkills.find(function(t) {
return t.id == e;
});
return t ? t.skill : null;
};
t.prototype.GetSkillProto = function(e) {
var t = this.activeSkills.find(function(t) {
return t.proto.id == e;
});
return t ? t.proto : null;
};
t.prototype.GetSkillData = function(e) {
return this.activeSkills.find(function(t) {
return t.proto.id == e;
});
};
t.prototype.AddSkillByData = function(e, t) {
return __awaiter(this, void 0, Promise, function() {
return __generator(this, function(n) {
switch (n.label) {
case 0:
w.default.isDebug && null != this.GetSkill(e.id) && console.error("技能被添加多次！", e.proto);
null != t ? this.activeSkills.splice(t, 0, e) : this.activeSkills.push(e);
this.isMainPlayer && console.log("添加技能", e.proto.name);
return e.proto.resPath.length > 0 ? [ 4, this.CreateSkil(e) ] : [ 3, 2 ];

case 1:
return [ 2, n.sent() ];

case 2:
return [ 2, null ];
}
});
});
};
t.prototype.CreateSkil = function(e) {
return __awaiter(this, void 0, Promise, function() {
var t, n;
return __generator(this, function(r) {
switch (r.label) {
case 0:
return [ 4, o.default.Default.CreateNode(e.proto.resPath) ];

case 1:
t = r.sent();
(n = t.getComponent(p.default)).context.skillData = e;
return [ 4, n.OnInit(this) ];

case 2:
r.sent();
e.skill = n;
t.setParent(this.node);
return [ 2, n ];
}
});
});
};
t.prototype.RemoveSkill = function(e) {
var t = this.activeSkills.findIndex(function(t) {
return t.id == e;
});
if (!(t < 0)) {
var n = this.activeSkills[t];
this.activeSkills.splice(t, 1);
var r = n.skill ? n.skill.node : null;
r && o.default.Default.DestroyNode(r);
return t;
}
};
t.prototype.GetBuff = function(e) {
for (var t = this.buffs.length - 1; t >= 0; t--) {
var n = this.buffs[t];
if (cc.isValid(n)) {
if (n.prefab == e) return n;
} else this.buffs.splice(t, 1);
}
return null;
};
t.prototype.AddBuff = function(e, t, n, o) {
if (!e || this.dead) return null;
var r = this.GetBuff(e);
if (r) r.OnReenter(t, n, o); else {
r = l.default.Start(e, t, this, n, o);
this.buffs.push(r);
}
return r;
};
t.prototype.HasBuff = function(e) {
for (var t = this.buffs.length - 1; t >= 0; t--) {
var n = this.buffs[t];
if (n instanceof e && n.isActive && n.running) return n;
}
return null;
};
t.prototype.Damage = function(e, t, n, o) {
void 0 === t && (t = 100);
void 0 === n && (n = null);
void 0 === o && (o = cc.Vec2.ZERO);
if (this.dead || this.isWuDi || !s.LevelContext.Instance.isRunning) return !1;
this.health = Math.max(0, this.health - e);
this.dead ? this.OnDead(t, o, n) : this.ShowHitEffet();
this.SendMessage("OnDamage", this, e, t, n, o);
this.broadcastMessage("OnEntityDamage", this, e, n);
return !0;
};
t.prototype.ShowHitEffet = function() {
this.freeze || (this.viewEft ? this.viewEft.ShowHitEffect(this.hitColor) : console.log("ShowHitEffet", this));
};
t.prototype.PlayTextEffectAsync = function(e, t, n, r) {
void 0 === n && (n = "Prefabs/Effect/DamageText");
void 0 === r && (r = .35);
return __awaiter(this, void 0, void 0, function() {
var i;
return __generator(this, function(a) {
switch (a.label) {
case 0:
return [ 4, o.default.Default.LoadRes(n) ];

case 1:
i = a.sent();
this.PlayTextEffect(e, t, i, r);
return [ 2 ];
}
});
});
};
t.prototype.PlayTextEffect = function(e, t, o, r) {
void 0 === r && (r = .35);
o || (o = s.LevelContext.Instance.textEftPrefab);
this.txtCnt++;
var i = this.aimPos;
if (this.txtCnt % 2 != 0) {
i.x += 20;
i.y -= 10;
}
var a = s.LevelContext.textEftPool.CreateSync(s.LevelContext.Instance.textLayer, i, r, o);
if (a) {
var l = a.findChild("Layout"), c = l.findChild("Text"), u = l.findChild("SB"), p = l.findChild("BJ"), d = l.findChild("FT"), f = "暴击" == t;
if ("number" == typeof e) {
c.color = f ? n.critColor : e >= 0 ? cc.Color.GREEN : e >= -30 ? cc.Color.WHITE : e <= -150 ? cc.Color.YELLOW.lerp(cc.Color.RED, e / -150, this.c) : cc.Color.WHITE.lerp(cc.Color.YELLOW, e / -75, this.c);
c.getComponent(cc.Label).string = e <= 0 ? e.toFixed() : "+" + e.toFixed(0);
p && (p.active = f);
} else {
c.getComponent(cc.Label).string = e;
p && (p.active = !1);
}
u && (u.active = "闪避" == t);
d && (d.active = "反弹" == t);
}
};
t.prototype.Dash = function(e) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
this.dashForward.set(e);
this.dashSkill && this.dashSkill.Fire(e);
return [ 2 ];
});
});
};
t.prototype.Jump = function(e, t, n, o) {
void 0 === t && (t = 1);
if (this.isJumping) return !1;
this.gravity = null != o ? o : -1e3;
this.jumpTotalTime = t;
this.jumpFinishCB = n;
this.isJumping = !0;
this.jumpPassedTime = 0;
this.controlableCnt--;
this.wuDiLeftTime += this.jumpTotalTime;
var r = e.sub(this.body.position).normalize(), i = cc.Vec2.distance(e, this.body.position) / this.jumpTotalTime, a = r.mul(i);
this.body.AddForce(a.x, a.y, t);
this.jumpV0 = -.5 * this.gravity * this.jumpTotalTime;
return !0;
};
t.prototype.JumpFinish = function() {
this.isJumping = !1;
this.controlableCnt++;
this.jumpFinishCB && this.jumpFinishCB();
};
t.prototype.UpdateJump = function(e) {
if (this.isJumping) {
this.jumpPassedTime += e;
this.jumpPassedTime = Math.min(this.jumpPassedTime, this.jumpTotalTime);
var t = 0;
if (this.jumpPassedTime >= this.jumpTotalTime) this.JumpFinish(); else {
t = this.jumpV0 * this.jumpPassedTime + .5 * this.gravity * this.jumpPassedTime * this.jumpPassedTime;
this.jumpTotalTime;
this.jumpPassedTime, this.jumpPassedTime;
}
this.view && (this.view.y = t);
this.body.velocity = cc.Vec2.ZERO;
}
};
t.prototype.StopJump = function() {
if (this.isJumping) {
this.view.y = 0;
this.JumpFinish();
}
};
t.prototype.HitFly = function(e, t, n) {
var o = this;
void 0 === n && (n = .5);
if (this.hitFlyAble) {
var r = this.body.position.add(t.mul(e));
this.animator.Set("IsHitFly", !0);
this.Jump(r, n, function() {
o.animator.Set("IsHitFly", !1);
}, -1500);
}
};
t.prototype.AddListener = function(e) {
this.listeners.indexOf(e) >= 0 || this.listeners.push(e);
};
t.prototype.RemoveListener = function(e) {
var t = this.listeners.indexOf(e);
t >= 0 && this.listeners.splice(t, 1);
};
t.prototype.SendMessage = function(e) {
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
for (var o = this.listeners.length - 1; o >= 0; o--) {
var r = this.listeners[o];
this.sendMessage.apply(this, __spreadArrays([ r, !1, e ], t));
}
};
t.prototype.PlayAnims = function() {
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
return __awaiter(this, void 0, void 0, function() {
var t, n, o;
return __generator(this, function(r) {
switch (r.label) {
case 0:
if (!this.anim) return [ 2 ];
t = 0;
r.label = 1;

case 1:
if (!(t < e.length)) return [ 3, 4 ];
n = e[t];
return (o = this.anim.play(n)) ? [ 4, this.waitForTime(o.duration) ] : [ 3, 3 ];

case 2:
r.sent();
r.label = 3;

case 3:
t++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
var n;
t.critColor = cc.color().fromHEX("#FF7E2F");
__decorate([ C(h.EntityHUD) ], t.prototype, "hud", void 0);
__decorate([ C(cc.Node) ], t.prototype, "firePnt", void 0);
__decorate([ C(cc.Node) ], t.prototype, "aimPnt", void 0);
__decorate([ C(a.IBody) ], t.prototype, "body", void 0);
__decorate([ C(cc.Node) ], t.prototype, "view", void 0);
__decorate([ C(cc.Collider) ], t.prototype, "collider", void 0);
__decorate([ C(cc.Animation) ], t.prototype, "anim", void 0);
__decorate([ C(cc.Prefab) ], t.prototype, "dashPrefab", void 0);
__decorate([ C() ], t.prototype, "enableUpdateViewDir", void 0);
__decorate([ C() ], t.prototype, "bodySize", void 0);
__decorate([ C() ], t.prototype, "rightForward", void 0);
__decorate([ C() ], t.prototype, "canFly", void 0);
__decorate([ C() ], t.prototype, "hasIdleAnim", void 0);
__decorate([ C() ], t.prototype, "targetable", void 0);
__decorate([ C() ], t.prototype, "damagable", void 0);
__decorate([ C() ], t.prototype, "showHitEft", void 0);
__decorate([ C({
type: cc.Enum(f.HitMask)
}) ], t.prototype, "collideMask", void 0);
__decorate([ C(cc.Size) ], t.prototype, "moveCollisionHalfSize", void 0);
__decorate([ C(cc.Vec2) ], t.prototype, "moveCollisionOffset", void 0);
__decorate([ C() ], t.prototype, "hitFlyAble", void 0);
return n = __decorate([ k ], t);
}(c.MapItem);
n.Entity = P;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/Resource/MyComponent": void 0,
"../../Service/RemoteSetting": void 0,
"../Config/BattleSkillData": "BattleSkillData",
"../Config/SkillConfig": "SkillConfig",
"../RVO2/IBody": "IBody",
"./Buff/Buff": "Buff",
"./EntityHUD": "EntityHUD",
"./HitMask": "HitMask",
"./LevelContext": "LevelContext",
"./MapItem": "MapItem",
"./Skill/BaseSkill": "BaseSkill",
"./Skill/DashSkill": "DashSkill",
"./State/Animator": "Animator",
"./Tilemap/Tile": "Tile",
"./Util": "Util",
"./View/EntityViewEffect": "EntityViewEffect",
"./View/FollowTarget": "FollowTarget"
} ],
EquipmentConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fdd5bHemcVFBIvC/dkK8Qs4", "EquipmentConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.EquipmentConfig = n.EquipmentProto = n.EquipmentFeature = n.EquipmentType = void 0;
var o, r = e("./SkillConfig"), i = e("./WeaponConfig");
(function(e) {
e[e.Mask = 0] = "Mask";
e[e.Wing = 1] = "Wing";
})(o = n.EquipmentType || (n.EquipmentType = {}));
var a = function(e) {
__extends(t, e);
function t(t, n, o) {
var r = e.call(this, t, n, null, null, null) || this;
r.type = t;
r.x = n;
r.desc = o;
return r;
}
return t;
}(r.SkillFeatureProto);
n.EquipmentFeature = a;
var l = function() {
function e(e, t, n, o, r, i, a, l, s, c) {
this.id = e;
this.type = t;
this.quality = n;
this.name = o;
this.desc = r;
this.outputDesc = i;
this.unlockPieces = a;
this.unlockBluePrints = l;
this.features = s;
this.skillProto = c;
}
Object.defineProperty(e.prototype, "iconPath", {
get: function() {
return "Battle/Texture/Equipment/" + this.id;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "resPath", {
get: function() {
return "Prefabs/Equipment/" + this.id;
},
enumerable: !1,
configurable: !0
});
return e;
}();
n.EquipmentProto = l;
var s = function() {
function e() {}
e.GetEquipment = function(t) {
return e.equipments.find(function(e) {
return e.id == t;
});
};
e.GetEquipmentBySkillId = function(t) {
for (var n = 0; n < e.equipments.length; n++) {
var o = e.equipments[n];
if (o.skillProto && o.skillProto.id == t) return o;
}
return null;
};
e.equipments = [ new l(1, o.Mask, i.WeaponQuality.Grey, "蝙蝠面具", "幸运会使油桶掉落道具几率增加", "成就、每日任务(通关1-2解锁)产出", 20, 20, [ new a(r.SkillFeature.PickRangeUpPercent, 5, "拾取范围+5%"), new a(r.SkillFeature.LuckUp, 45, "幸运值+45") ]), new l(2, o.Wing, i.WeaponQuality.Grey, "蝙蝠之翼", "妖怪统统退散", "每日任务、时装宝箱、运营活动产出", 20, 20, [ new a(r.SkillFeature.PlayerSpeedUpPercent, 5, "移动速度+5%"), new a(r.SkillFeature.BulletHitBackUpPercent, 5, "击退+5%") ]), new l(3, o.Mask, i.WeaponQuality.Blue, "骑士眼镜", "免疫神器，目之所及洞穿一切", "每日任务、时装宝箱、运营活动产出", 40, 60, [ new a(r.SkillFeature.AntiSlowdownUpPercent, 100, "免疫怪物减速"), new a(r.SkillFeature.AntiChaosUpPercent, 100, "免疫怪物混乱") ]), new l(4, o.Wing, i.WeaponQuality.Blue, "骑士之翼", "前路艰险，愿骑士与你同在", "每日任务、时装宝箱、运营活动产出", 40, 60, [ new a(r.SkillFeature.PlayerSpeedUpPercent, 5, "移动速度+5%"), new a(r.SkillFeature.DogdeUp, 150, "闪避+150") ]), new l(5, o.Mask, i.WeaponQuality.Purple, "强袭面具", "勇敢的闯关者，赐予你强大的能力", "每日任务、时装宝箱、运营活动产出", 70, 100, [ new a(r.SkillFeature.PickRangeUpPercent, 12, "拾取范围+12%"), new a(r.SkillFeature.AntiTwineUpPercent, 100, "免疫怪物缠绕"), new a(r.SkillFeature.LuckUp, 80, "幸运值+80") ]), new l(6, o.Wing, i.WeaponQuality.Purple, "强袭之翼", "闯关者的信念，传承不绝", "每日任务、时装宝箱、运营活动产出", 70, 100, [ new a(r.SkillFeature.PlayerSpeedUpPercent, 8, "移动速度+8%"), new a(r.SkillFeature.BulletHitBackUpPercent, 8, "击退+8%"), new a(r.SkillFeature.BulletCiritHitCountUp, 1, "暴击穿透+1") ]), new l(7, o.Mask, i.WeaponQuality.Orange, "天狗面具", "来自异世界的神秘面具", "每日任务、时装宝箱、运营活动产出", 100, 200, [ new a(r.SkillFeature.AntiSlowdownUpPercent, 100, "免疫怪物减速"), new a(r.SkillFeature.AntiChaosUpPercent, 100, "免疫怪物混乱"), new a(r.SkillFeature.CritDamageUpPercent, .1, "每40秒向四周发射5枚持续减速水弹") ], new r.SkillProto(100007, 0, 0, r.SkillType.Other, "天狗面具", "", "", "", 0, 0, 0, 40, 0, "Prefabs/Equipment/Skill/ShuiDan/Skill", null, 5)), new l(8, o.Wing, i.WeaponQuality.Orange, "天狗之翼", "传说由某灵兽幻化而成", "每日任务、时装宝箱、运营活动产出", 100, 200, [ new a(r.SkillFeature.PlayerSpeedUpPercent, 10, "移动速度+10%"), new a(r.SkillFeature.BulletCiritHitCountUp, 1, "暴击穿透+1"), new a(r.SkillFeature.CritDamageUpPercent, .1, "每35秒释放一个吸收经验的大型光圈") ], new r.SkillProto(100008, 0, 0, r.SkillType.Other, "天狗之翼", "", "", "", 0, 0, 0, 35, 0, "Prefabs/Equipment/Skill/ExpCircle/Skill")), new l(9, o.Mask, i.WeaponQuality.Red, "天启面具", "产自2077年的未来高科技面具", "每日任务、时装宝箱、运营活动产出", 150, 300, [ new a(r.SkillFeature.PickRangeUpPercent, 15, "拾取范围+15%"), new a(r.SkillFeature.LuckUp, 100, "幸运值+100"), new a(r.SkillFeature.AntiSlowdownUpPercent, 100, "免疫怪物减速"), new a(r.SkillFeature.CritDamageUpPercent, .1, "每33秒向四周发射5枚持续减速水弹") ], new r.SkillProto(100009, 0, 0, r.SkillType.Other, "天启面具", "", "", "", 0, 0, 0, 33, 0, "Prefabs/Equipment/Skill/ShuiDan/Skill", null, 5)), new l(10, o.Wing, i.WeaponQuality.Red, "天启之翼", "拥有神奇功能的未来之翼", "每日任务、时装宝箱、运营活动产出", 150, 300, [ new a(r.SkillFeature.PlayerSpeedUpPercent, 10, "移动速度+10%"), new a(r.SkillFeature.BulletHitBackUpPercent, 10, "击退+10%"), new a(r.SkillFeature.DogdeUp, 330, "闪避+330"), new a(r.SkillFeature.CritDamageUpPercent, .1, "每28秒释放一个吸收经验的大型光圈") ], new r.SkillProto(100010, 0, 0, r.SkillType.Other, "天启之翼", "", "", "", 0, 0, 0, 28, 0, "Prefabs/Equipment/Skill/ExpCircle/Skill")), new l(11, o.Mask, i.WeaponQuality.Orange, "南瓜头盔", "万圣节专属头盔", "运营活动产出", 100, 200, [ new a(r.SkillFeature.PickRangeUpPercent, 14, "拾取范围+14%"), new a(r.SkillFeature.AntiSlowdownUpPercent, 100, "免疫怪物减速"), new a(r.SkillFeature.AntiTwineUpPercent, 100, "免疫怪物缠绕") ]), new l(12, o.Wing, i.WeaponQuality.Orange, "南瓜披风", "万圣节专属披风", "运营活动产出", 100, 200, [ new a(r.SkillFeature.PlayerSpeedUpPercent, 10, "移动速度+10%"), new a(r.SkillFeature.DogdeUp, 240, "闪避+240"), new a(r.SkillFeature.BulletHitBackUpPercent, 8, "击退+8%") ]) ];
return e;
}();
n.EquipmentConfig = s;
cc._RF.pop();
}, {
"./SkillConfig": "SkillConfig",
"./WeaponConfig": "WeaponConfig"
} ],
EquipmentData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "641a7gV39hMSrx+QH3zIEJw", "EquipmentData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.EquipmentData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../../Service/Analys"), i = e("./EquipmentConfig"), a = e("./SafeBool"), l = e("./SafeInt"), s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.unlock = new a.default(!1);
t.piece = new l.default(0);
t.isEquip = !1;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = i.EquipmentConfig.GetEquipment(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
t.prototype.AddPiece = function(e, t) {
if (0 != e) {
this.piece.intValue += e;
r.default.LogModifyItem(t, null, "[碎片]" + this.proto.name, e);
}
};
t.prototype.Unlock = function(e) {
this.unlock.boolValue = !0;
r.default.LogModifyItem(e, null, this.proto.name, 1);
};
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b", a.default) ], t.prototype, "unlock", void 0);
__decorate([ o.SerializeField("c", l.default) ], t.prototype, "piece", void 0);
__decorate([ o.SerializeField("d") ], t.prototype, "isEquip", void 0);
return t;
}(o.default);
n.EquipmentData = s;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../../Service/Analys": void 0,
"./EquipmentConfig": "EquipmentConfig",
"./SafeBool": "SafeBool",
"./SafeInt": "SafeInt"
} ],
EquipmentRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "aa434KonslDQoP7EP9rbwcf", "EquipmentRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/GameModel"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cntLable = null;
t.timeCounter = 0;
return t;
}
n = t;
t.prototype.update = function(e) {
this.timeCounter -= e;
if (this.timeCounter <= 0) {
var t = n.redCnt;
this.node.opacity = t > 0 ? 255 : 0;
this.cntLable.string = t.toFixed(0);
this.timeCounter = 1;
}
};
Object.defineProperty(t, "redCnt", {
get: function() {
for (var e = 0, t = 0; t < o.default.Instance.equipmentList.length; t++) {
var n = o.default.Instance.equipmentList[t];
!n.unlock.boolValue && n.piece.intValue >= n.proto.unlockPieces && o.default.Instance.equipmentBlueprintCount.intValue >= n.proto.unlockBluePrints && e++;
}
return e;
},
enumerable: !1,
configurable: !0
});
var n;
__decorate([ a(cc.Label) ], t.prototype, "cntLable", void 0);
return n = __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../Config/GameModel": "GameModel"
} ],
Ethereal: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "42535VR3+FAyro+li1tmXv6", "Ethereal");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("./BaseTalentSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.perKill = 50;
t.seconds = 2;
t.killCnt = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
this.killCnt = 0;
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnStartTalent = function() {
this.killCnt = 0;
};
t.prototype.OnKillEnemy = function() {
this.killCnt++;
if (this.killCnt % this.perKill == 0) {
this.killCnt = 0;
r.LevelContext.Instance.mainPlayer.AddBuff(this.buff, this.seconds * this.context.talentData.lv, this.context);
}
};
__decorate([ s() ], t.prototype, "perKill", void 0);
__decorate([ s() ], t.prototype, "seconds", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
ExpCircle: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8a914vBnvBLEqzJyZ25cmi4", "ExpCircle");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("../../Util"), i = e("../TimerSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.readyEft = null;
t.radius = 300;
t.intervel = .2;
t.time = 2;
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
t.prototype.OnTimeOut = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, i, a, l;
return __generator(this, function(s) {
switch (s.label) {
case 0:
e = o.LevelContext.Instance.mainPlayer;
t = e.node.getPosition(this.v1);
n = r.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, cc.Vec2.ZERO, 0, e.aimPnt);
return [ 4, this.waitForTime(.2) ];

case 1:
s.sent();
for (i = 0; i < o.LevelContext.Instance.items.length; i++) if ((a = o.LevelContext.Instance.items[i]).isExp) {
l = a.node.getPosition(this.v2);
cc.Vec2.distance(t, l);
cc.Vec2.squaredDistance(t, l) <= this.radius * this.radius && a.Trigger();
}
return [ 4, this.waitForTime(.4) ];

case 2:
s.sent();
this.context && this.context.cache.DestroyNode(n);
return [ 2 ];
}
});
});
};
__decorate([ s(cc.Prefab) ], t.prototype, "readyEft", void 0);
__decorate([ s() ], t.prototype, "radius", void 0);
__decorate([ s() ], t.prototype, "intervel", void 0);
__decorate([ s() ], t.prototype, "time", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../TimerSkill": "TimerSkill"
} ],
FXVisibleControl: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "50dadqNKwtLDbcLOpxtNwJD", "FXVisibleControl");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Config/GameModel"), r = cc._decorator.ccclass, i = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onEnable = function() {
var e = o.default.Instance.enableFxEffect;
this.node.active != e && (this.node.active = e);
};
return __decorate([ r ], t);
}(cc.Component);
n.default = i;
cc._RF.pop();
}, {
"../../Config/GameModel": "GameModel"
} ],
FaceUp: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ac681XHephPJImfW11Ox4lX", "FaceUp");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Util"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.root = null;
t.xUp = !0;
t.alwaysUpdate = !1;
t.isInited = !1;
t.scale = cc.v2();
t.v1 = cc.v2();
return t;
}
t.prototype.onLoad = function() {
this.scale.x = this.node.scaleX;
this.scale.y = this.node.scaleY;
};
t.prototype.onEnable = function() {
this.isInited = !1;
};
t.prototype.update = function() {
if (!this.isInited) {
this.alwaysUpdate || (this.isInited = !0);
var e = o.default.angle2Forward(this.root.angle, this.v1), t = Math.sign(e.dot(cc.Vec2.RIGHT));
this.xUp ? this.node.scaleX = t * this.scale.x : this.node.scaleY = t * this.scale.y;
}
};
__decorate([ a(cc.Node) ], t.prototype, "root", void 0);
__decorate([ a() ], t.prototype, "xUp", void 0);
__decorate([ a() ], t.prototype, "alwaysUpdate", void 0);
return __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../Util": "Util"
} ],
FashionPackUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2e99fEKcMpO1qa0oC0sC5yK", "FashionPackUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Localize/LocalizeManager"), l = e("../../Service/RemoteSetting"), s = e("../Config/ShopConfig"), c = e("./MyPayButton"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.goldLabel = null;
t.btn = null;
return t;
}
t.prototype.onLoad = function() {
var e = s.ShopConfig.GetPackData(s.ShopItemType.FashionPack), t = this.btn.getComponent(c.default);
t.payId = e.moneyIndex + "";
t.productName = s.ShopItemName[e.type];
};
t.prototype.OnSetParams = function() {
var e = s.ShopConfig.GetPackData(s.ShopItemType.FashionPack), t = l.default.GetPayItem(e.moneyIndex + "");
t && t.price > 0 ? this.goldLabel.string = a.TXT("金币") + " x" + (t ? t.count : e.num) : this.HideView();
};
__decorate([ d(cc.Label) ], t.prototype, "goldLabel", void 0);
__decorate([ d(cc.Node) ], t.prototype, "btn", void 0);
return __decorate([ p, o.RegisterView("FashionPackUI", r.ViewLayer.PopupLayer, r.ViewShowRule.HideAllView) ], t);
}(i.default);
n.default = f;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Service/RemoteSetting": void 0,
"../Config/ShopConfig": "ShopConfig",
"./MyPayButton": "MyPayButton"
} ],
FateCoinConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a36868EEZxAxrvr2oBkbQf4", "FateCoinConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.FateCoinConfig = n.FateItemProto = void 0;
var o = e("../../Framework/Core/Resource/EffectManager"), r = e("../../Framework/Core/Resource/SoundsManager"), i = e("../../Service/kl"), a = e("../Battle/Item"), l = e("../Battle/LevelContext"), s = e("../Config/BattleItemConfig"), c = e("./MonsterConfig"), u = e("./SkillConfig"), p = function(e, t) {
this.weight = e;
this.action = t;
};
n.FateItemProto = p;
var d = function() {
function e() {}
e.ShowTip = function(e) {
l.LevelContext.Instance.mainPlayer.PlayTextEffectAsync(e, "", "Prefabs/Effect/TipText", .8);
};
e.ShowEft1 = function() {
l.LevelContext.Instance.mainPlayer.ShockAwayMonsters();
o.EffectManager.PlayEffect(null, "Prefabs/NewSkill/Levelup1", l.LevelContext.Instance.mainPlayer.node, cc.Vec2.ZERO);
r.default.instance.PlayEffect("levelup");
};
e.AddMaxHp = function() {
e.ShowEft1();
l.LevelContext.Instance.mainPlayer.AddFeatureEx(u.SkillFeature.PlayerMaxHealthUp, 1);
l.LevelContext.Instance.mainPlayer.ResetFeatures();
};
e.AddHp = function() {
e.ShowEft1();
l.LevelContext.Instance.mainPlayer.AddHealth(2);
};
e.KillAllMonster = function() {
return __awaiter(this, void 0, void 0, function() {
var t, n;
return __generator(this, function(o) {
switch (o.label) {
case 0:
e.ShowEft1();
return [ 4, l.LevelContext.Instance.waitForTime(.2) ];

case 1:
o.sent();
for (t = 0; t < l.LevelContext.Instance.enemies.length; t++) (n = l.LevelContext.Instance.enemies[t]).proto.type == c.MonsterType.Normal && n.Damage(n.health, 0);
e.ShowTip("怪物清场");
return [ 2 ];
}
});
});
};
e.TurnExpToGold = function() {
return __awaiter(this, void 0, void 0, function() {
var t, n, o, r;
return __generator(this, function(i) {
switch (i.label) {
case 0:
e.ShowEft1();
t = s.BattleItemConfig.GetItem(s.BattleItemConfig.CoinItemId);
n = l.LevelContext.Instance.items.length - 1;
i.label = 1;

case 1:
if (!(n >= 0)) return [ 3, 4 ];
if ((o = l.LevelContext.Instance.items[n]).isFlying || !o.isExp) return [ 3, 3 ];
o.isFlying = !0;
return [ 4, l.LevelContext.itemCache.CreateNode(t.resPath, null, o.node.position) ];

case 2:
(r = i.sent()).getComponent(a.Item).itemProto = t;
r.setParent(l.LevelContext.Instance.groundLayer);
l.LevelContext.itemCache.DestroyNode(o.node);
i.label = 3;

case 3:
n--;
return [ 3, 1 ];

case 4:
e.ShowTip("宝石变金币");
return [ 2 ];
}
});
});
};
e.ShowEft2 = function() {
o.EffectManager.PlayEffect(null, "Prefabs/NewSkill/Levelup2", l.LevelContext.Instance.mainPlayer.node, cc.Vec2.ZERO);
r.default.instance.PlayEffect("lightning");
o.EffectManager.PlayEffect(null, "Prefabs/Effect/Hit", l.LevelContext.Instance.effectLayer, l.LevelContext.Instance.mainPlayer.aimPos);
};
e.DecHalfHp = function() {
e.ShowEft2();
e.ShowTip("血量减半");
l.LevelContext.Instance.mainPlayer.AddHealth(.5 * -l.LevelContext.Instance.mainPlayer.health);
};
e.ScaleUp = function() {
e.ShowEft2();
e.ShowTip("体积+30%");
l.LevelContext.Instance.mainPlayer.AddFeatureEx(u.SkillFeature.PlayerScaleUp, 30);
l.LevelContext.Instance.mainPlayer.ResetFeatures();
};
e.Slowdown = function() {
e.ShowEft2();
e.ShowTip("移动速度-20%");
l.LevelContext.Instance.mainPlayer.AddFeatureEx(u.SkillFeature.PlayerSpeedUpPercent, -20);
l.LevelContext.Instance.mainPlayer.ResetFeatures();
};
e.GetFateCoinAction = function() {
if (null == e.actions) {
e.actions = [];
for (var t = 0; t < e.items.length; t++) for (var n = e.items[t], o = 0; o < n.weight; o++) e.actions.push(n.action);
e.actions.sort(function() {
return Math.random() > .5 ? 1 : -1;
});
}
var r = e.actions;
return r[i.default.RandomInt(0, r.length - 1)];
};
e.CD = 15;
e.items = [ new p(20, e.AddMaxHp), new p(70, e.AddHp), new p(50, e.KillAllMonster), new p(30, e.TurnExpToGold), new p(10, e.DecHalfHp), new p(10, e.ScaleUp), new p(10, e.Slowdown) ];
e.actions = null;
return e;
}();
n.FateCoinConfig = d;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Service/kl": void 0,
"../Battle/Item": "Item",
"../Battle/LevelContext": "LevelContext",
"../Config/BattleItemConfig": "BattleItemConfig",
"./MonsterConfig": "MonsterConfig",
"./SkillConfig": "SkillConfig"
} ],
FeedbackUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "67330/VQgdPQKn6IPFcBS/w", "FeedbackUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/UI/WaitingUI"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Framework/UI/PromptUI"), c = e("../../Framework/UI/ScrollViewUtility"), u = e("../../Service/AccountManager"), p = e("../../Service/Feedback"), d = e("../../Service/PlatformService"), f = e("../../Service/RemoteSetting"), h = e("./TTContactButtonUI"), m = cc._decorator, w = m.ccclass, y = m.property, g = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.newFeedbackContent = null;
t.feedbackListContent = null;
t.newFeedbackToggle = null;
t.feedbackListToggle = null;
t.list = null;
t.topicNodes = null;
t.payToggleNode = null;
t.timeLabel = null;
t.editContent = null;
t.detailContent = null;
t.detailReplyBtn = null;
t.detailDeleteBtn = null;
t.replyContent = null;
t.replyInput = null;
t.imageContent = null;
t.replayImageContent = null;
t.feedbackDatas = [];
t.curFeedbackData = null;
t.maxImageSize = 3;
t.images = [];
return t;
}
t.prototype.OnSetParams = function() {
this.payToggleNode.active = d.default.payable;
this.UpdateContentPanel();
this.list.UpdateViewCells();
this.RequestData();
this.CleanFeedback();
this.detailContent.active = !1;
this.replyContent.active = !1;
this.replayImageContent.active = this.imageContent.active = null != d.default.proxy.chooseImage && f.default.Get("enableImageFeedback", !1);
};
t.prototype.OnTabClick = function() {
this.UpdateContentPanel();
};
t.prototype.UpdateContentPanel = function() {
this.newFeedbackContent.active = this.newFeedbackToggle.isChecked;
this.feedbackListContent.active = this.feedbackListToggle.isChecked;
};
t.prototype.CleanFeedback = function() {
this.timeLabel.string = this.formatTimeMills(Date.now());
this.editContent.string = "";
this.images = [];
for (var e = 0; e < this.maxImageSize; e++) this.imageContent.children[e].findChild("Image").getComponent(cc.Sprite).spriteFrame = null;
};
t.prototype.formatTimeMills = function(e) {
var t = new Date(e), n = t.getFullYear() + "-";
t.getMonth() < 9 && (n += "0");
n += t.getMonth() + 1 + "-";
n += t.getDate() < 10 ? "0" + t.getDate() : t.getDate();
n += " ";
n += t.getHours() < 10 ? "0" + t.getHours() : t.getHours();
return (n += ":") + (t.getMinutes() < 10 ? "0" + t.getMinutes() : t.getMinutes());
};
t.prototype.OnSubmitClick = function() {
var e = this, t = this.editContent.string;
if (null != t && 0 != t.length) if (null != (t = this.timeLabel.string) && 0 != t.length) {
for (var n = "Bug反馈", r = 0; r < this.topicNodes.childrenCount; r++) {
var i = this.topicNodes.children[r].getComponent(cc.Toggle);
if (i.isChecked) {
n = i.node.getChildByName("Name").getComponent(cc.Label).string;
break;
}
}
l.default.ShowView(o.default, 10);
p.default.SubmitFeedback(n, this.timeLabel.string, "[" + f.default.version + "] " + this.editContent.string, function(t) {
var r = function() {
s.default.Show("提交成功，感谢您的反馈，我们的客服会尽快处理！");
e.CleanFeedback();
e.RequestData();
e.feedbackListToggle.check();
e.UpdateContentPanel();
l.default.HideView(o.default);
};
e.images && e.images.length > 0 ? p.default.SubmitFeedbackReply(t.id, n, e.images, r, r) : r();
}, function(e) {
s.default.Show(e);
l.default.HideView(o.default);
});
} else s.default.Show("请输入时间"); else s.default.Show("请填写问题描述");
};
t.prototype.RequestData = function() {
var e = this;
this.list.node.active = !1;
p.default.QueryFeedback(function(t) {
e.feedbackDatas = t;
e.list.node.active = !0;
e.UpdateList();
}, function() {});
};
t.prototype.UpdateList = function() {
var e = this;
this.list.InitCellDataList(this.feedbackDatas, function(t, n, o) {
e.UpdateItem(n, o);
});
};
t.prototype.UpdateItem = function(e, t) {
t.data = e;
t.findChild("id").getComponent(cc.Label).string = e.id + "";
t.findChild("type").getComponent(cc.Label).string = e.topic;
var n = t.findChild("status");
n.getComponent(cc.Label).string = e.status;
"处理中" == e.status ? n.color = cc.Color.GREEN : "已完成" == e.status ? n.color = cc.Color.GRAY : n.color = cc.Color.WHITE;
t.findChild("time").getComponent(cc.Label).string = e.createTime;
};
t.prototype.OnItemClick = function(e) {
var t = e.target.parent;
this.curFeedbackData = t.data;
this.curFeedbackData && this.ShowDetail(this.curFeedbackData);
};
t.prototype.ShowDetail = function(e) {
this.detailContent.active = !0;
var t = this.detailContent.getChildByName("Content");
t.getChildByName("id").getComponent(cc.Label).string = e.id + "";
t.getChildByName("topic").getComponent(cc.Label).string = e.topic;
t.getChildByName("status").getComponent(cc.Label).string = e.status;
t.getChildByName("time").getComponent(cc.Label).string = e.occurTime;
t.getChildByName("content").getComponent(cc.Label).string = e.content;
t.getChildByName("handleTime").getComponent(cc.Label).string = null == e.opList || 0 == e.opList.length ? e.createTime : e.opList[e.opList.length - 1].createTime;
this.UpdateDetailOpList();
this.detailReplyBtn.active = "已完成" != this.curFeedbackData.status;
this.detailDeleteBtn.active = "已完成" == this.curFeedbackData.status;
};
t.prototype.UpdateDetailOpList = function() {
var e = this;
this.detailContent.getChildByName("Content").getChildByName("ScrollView").getComponent(c.default).InitCellDataList(this.curFeedbackData.opList, function(t, n, o) {
e.UpdateDetailOpItem(n, o);
});
};
t.prototype.UpdateDetailOpItem = function(e, t) {
t.data = e;
var n = e.nickName;
u.default.hasUserInfo && e.user == u.default.userInfo.id && (n = "我：");
t.findChild("name").getComponent(cc.Label).string = n;
t.findChild("time").getComponent(cc.Label).string = e.createTime;
t.findChild("desc").getComponent(cc.Label).string = e.content;
};
t.prototype.OnDetailClose = function() {
this.detailContent.active = !1;
};
t.prototype.OnDetailDelete = function() {
var e = this;
l.default.ShowView(o.default, 10);
p.default.DeleteFeedback(this.curFeedbackData.id, function() {
s.default.Show("已删除");
e.detailContent.active = !1;
e.RequestData();
l.default.HideView(o.default);
}, function(e) {
s.default.Show(e);
l.default.HideView(o.default);
});
};
t.prototype.OnReplyClick = function() {
this.replyContent.active = !0;
this.replyInput.string = "";
this.images = [];
for (var e = 0; e < this.replayImageContent.childrenCount; e++) this.replayImageContent.children[e].findChild("Image").getComponent(cc.Sprite).spriteFrame = null;
};
t.prototype.OnReplyDialogClose = function() {
this.replyContent.active = !1;
this.CleanFeedback();
};
t.prototype.OnReplySubmit = function() {
var e = this, t = this.replyInput.string;
if (null != t && 0 != t.length) {
l.default.ShowView(o.default, 10);
p.default.SubmitFeedbackReply(this.curFeedbackData.id, t, this.images, function(t) {
s.default.Show("提交成功！");
e.OnReplyDialogClose();
e.curFeedbackData.opList || (e.curFeedbackData.opList = []);
e.curFeedbackData.opList = t;
e.UpdateDetailOpList();
l.default.HideView(o.default);
}, function(e) {
s.default.Show(e);
l.default.HideView(o.default);
});
} else s.default.Show("请填写回复内容");
};
t.prototype.OnTTContactButtonClick = function() {
l.default.ShowView(h.default);
};
t.prototype.OnChooseImageClick = function() {
var e = this, t = this.replyContent.active ? this.replayImageContent : this.imageContent;
d.default.proxy.chooseImage(this.maxImageSize, 30, function(n) {
for (var o = function(e) {
var o = t.children[e], r = n[e], i = o.findChild("Image").getComponent(cc.Sprite);
r && r.length > 0 ? cc.loader.load(r, function(e, t) {
e ? cc.error(e) : i.spriteFrame = new cc.SpriteFrame(t);
}) : i.spriteFrame = null;
}, r = 0; r < e.maxImageSize; r++) o(r);
e.images = n;
for (r = e.images.length - 1; r >= 0; r--) e.images[r] || e.images.splice(r, 1);
});
};
__decorate([ y(cc.Node) ], t.prototype, "newFeedbackContent", void 0);
__decorate([ y(cc.Node) ], t.prototype, "feedbackListContent", void 0);
__decorate([ y(cc.Toggle) ], t.prototype, "newFeedbackToggle", void 0);
__decorate([ y(cc.Toggle) ], t.prototype, "feedbackListToggle", void 0);
__decorate([ y(c.default) ], t.prototype, "list", void 0);
__decorate([ y(cc.Node) ], t.prototype, "topicNodes", void 0);
__decorate([ y(cc.Node) ], t.prototype, "payToggleNode", void 0);
__decorate([ y(cc.EditBox) ], t.prototype, "timeLabel", void 0);
__decorate([ y(cc.EditBox) ], t.prototype, "editContent", void 0);
__decorate([ y(cc.Node) ], t.prototype, "detailContent", void 0);
__decorate([ y(cc.Node) ], t.prototype, "detailReplyBtn", void 0);
__decorate([ y(cc.Node) ], t.prototype, "detailDeleteBtn", void 0);
__decorate([ y(cc.Node) ], t.prototype, "replyContent", void 0);
__decorate([ y(cc.EditBox) ], t.prototype, "replyInput", void 0);
__decorate([ y(cc.Node) ], t.prototype, "imageContent", void 0);
__decorate([ y(cc.Node) ], t.prototype, "replayImageContent", void 0);
return __decorate([ w, r.RegisterView("FeedbackUI", i.ViewLayer.NormalLayer, i.ViewShowRule.HideSameLayerView) ], t);
}(a.default);
n.default = g;
cc._RF.pop();
}, {
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Framework/UI/ScrollViewUtility": void 0,
"../../Service/AccountManager": void 0,
"../../Service/Feedback": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"./TTContactButtonUI": "TTContactButtonUI"
} ],
FeiSheng: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d84d7fL0eVK4rUDo3Qf9yL5", "FeiSheng");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../BaseSkill"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
return __decorate([ i ], t);
}(o.default));
n.default = a;
cc._RF.pop();
}, {
"../../BaseSkill": "BaseSkill"
} ],
FirstChargePackRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c9c63p7bhhNjpvro0eEA/8R", "FirstChargePackRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Battle/Util"), r = e("./FirstChargePackUI"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.progress = null;
t.timeLabel = null;
return t;
}
t.prototype.update = function() {
this.timeLabel.string = o.default.FormatTimeHHMMSS(.001 * r.default.leftTime, !1);
};
__decorate([ l(cc.Sprite) ], t.prototype, "progress", void 0);
__decorate([ l(cc.Label) ], t.prototype, "timeLabel", void 0);
return __decorate([ a ], t);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {
"../Battle/Util": "Util",
"./FirstChargePackUI": "FirstChargePackUI"
} ],
FirstChargePackUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "04453r4qHJKQJc24/NxXCm/", "FirstChargePackUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Localize/LocalizeManager"), l = e("../../Service/GameStorage"), s = e("../../Service/RemoteSetting"), c = e("../Battle/Util"), u = e("../Config/GameModel"), p = e("../Config/ShopConfig"), d = e("../Config/WeaponConfig"), f = e("../Config/WeaponData"), h = e("./MyPayButton"), m = e("./WeaponInfoUI"), w = e("./WeaponUI_SchoolGraph"), y = cc._decorator, g = y.ccclass, v = y.property, S = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.goldLabel = null;
t.timeLabel = null;
t.btn = null;
t.weaponInfo = null;
t.curWeaponSprite = null;
t.graph = null;
return t;
}
n = t;
Object.defineProperty(t, "leftTime", {
get: function() {
return Math.max(0, c.default.oneDay - (l.default.nowMS - u.default.Instance.registTime));
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
var e = p.ShopConfig.GetPackData(p.ShopItemType.NewbiePack), t = this.btn.getComponent(h.default);
t.payId = e.moneyIndex + "";
t.productName = p.ShopItemName[e.type];
var n = new f.WeaponData(d.WeaponConfig.GetWeapon(e.weapon.id));
n.unlock.boolValue = !0;
n.visible = !0;
n.level.intValue = e.weapon.lv;
n.classLevel.intValue = e.weapon.classLevel;
this.weaponInfo.Update(n);
c.default.SetImage(n.iconPath, this.curWeaponSprite);
this.graph.Draw(n.proto);
var o = this.weaponInfo;
o.bulletAttackUp.string = "";
o.elementAttackUp.string = "";
o.summonAttackUp.string = "";
o.dashAttackUp.string = "";
o.critAttackUp.string = "";
o.critValueUp.string = "";
};
t.prototype.update = function() {
var e = n.leftTime;
e = Math.ceil(.001 * e);
this.timeLabel.string = "倒计时：" + c.default.FormatTimeHHMMSS(e);
e <= 0 && this.HideView();
};
t.prototype.OnSetParams = function() {
var e = p.ShopConfig.GetPackData(p.ShopItemType.NewbiePack), t = s.default.GetPayItem(e.moneyIndex + "");
t && t.price > 0 ? this.goldLabel.string = a.TXT("金币") + " x" + (t ? t.count : e.num) : this.HideView();
};
t.prototype.OnWeaponClick = function() {
this.weaponInfo.node.active = !this.weaponInfo.node.active;
};
t.prototype.OnDetaiClick = function() {
this.weaponInfo.node.active = !1;
};
var n;
__decorate([ v(cc.Label) ], t.prototype, "goldLabel", void 0);
__decorate([ v(cc.Label) ], t.prototype, "timeLabel", void 0);
__decorate([ v(cc.Node) ], t.prototype, "btn", void 0);
__decorate([ v(m.default) ], t.prototype, "weaponInfo", void 0);
__decorate([ v(cc.Sprite) ], t.prototype, "curWeaponSprite", void 0);
__decorate([ v(w.default) ], t.prototype, "graph", void 0);
return n = __decorate([ g, o.RegisterView("FirstChargePackUI", r.ViewLayer.PopupLayer) ], t);
}(i.default);
n.default = S;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Service/GameStorage": void 0,
"../../Service/RemoteSetting": void 0,
"../Battle/Util": "Util",
"../Config/GameModel": "GameModel",
"../Config/ShopConfig": "ShopConfig",
"../Config/WeaponConfig": "WeaponConfig",
"../Config/WeaponData": "WeaponData",
"./MyPayButton": "MyPayButton",
"./WeaponInfoUI": "WeaponInfoUI",
"./WeaponUI_SchoolGraph": "WeaponUI_SchoolGraph"
} ],
FollowEntityFirePnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "85b1aFsstRDnZHkXbU9IsN5", "FollowEntityFirePnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Entity"), r = e("../../../Framework/Core/Resource/MyComponent"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.target = null;
return t;
}
t.prototype.onDestroy = function() {
this.target = null;
};
t.prototype.OnLateUpdate = function() {
if (cc.isValid(this.target)) {
var e = this.target.firePos;
this.node.setPosition(e);
}
};
__decorate([ l(o.Entity) ], t.prototype, "target", void 0);
return __decorate([ a ], t);
}(r.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../Entity": "Entity"
} ],
FollowMovement: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "dc0f8acZPtJL7Th7D5CkaKb", "FollowMovement");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../RVO2/IBody"), r = e("../LinearBody"), i = e("../../../Framework/Core/Resource/MyComponent"), a = e("../Util"), l = cc._decorator, s = l.ccclass, c = l.property, u = l.requireComponent, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.speed = 300;
t.rotateSpeed = 7;
t.maxLen = 20;
t.rotateNode = !1;
t.cb = null;
t.curAngle = 0;
t.target = null;
t.body = null;
t.lastPos = cc.v2();
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
return t;
}
t.prototype.onLoad = function() {
this.body = this.getComponent(o.IBody);
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.body.enabled = !1;
};
t.prototype.Start = function(e, t, n) {
this.target = e;
this.cb = n;
this.curAngle = a.default.forward2Angle(t);
this.enabled = !0;
this.body.enabled = !0;
this.lastPos.set(this.body.position);
};
t.prototype.Stop = function() {
this.target = null;
};
t.prototype.OnUpdate = function(e) {
var t = null;
if (this.target) {
if (!cc.isValid(this.target)) {
this.target = null;
return;
}
t = this.target.getPosition(this.v1);
} else t = a.default.angle2Forward(this.node.angle, this.v1).mulSelf(1e3);
var n = cc.Vec2.squaredDistance(this.lastPos, this.body.position), o = cc.Vec2.squaredDistance(t, this.body.position);
if (o <= this.maxLen * this.maxLen || n >= o) {
this.cb && this.cb();
this.target = null;
this.enabled = !1;
} else {
var r = a.default.forward2Angle(t.sub(this.body.position, this.v2).normalizeSelf()), i = Math.min(1, this.rotateSpeed * e);
this.curAngle = 1 == i ? r : a.default.LerpAngle(this.curAngle, r, i);
this.body.velocity = a.default.angle2Forward(this.curAngle, this.v3).multiplyScalar(this.speed);
this.rotateNode && (this.node.angle = this.curAngle);
this.lastPos.set(this.body.position);
}
};
__decorate([ c() ], t.prototype, "speed", void 0);
__decorate([ c() ], t.prototype, "rotateSpeed", void 0);
__decorate([ c() ], t.prototype, "maxLen", void 0);
__decorate([ c() ], t.prototype, "rotateNode", void 0);
return __decorate([ s, u(r.default) ], t);
}(i.MyComponent);
n.default = p;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../../RVO2/IBody": "IBody",
"../LinearBody": "LinearBody",
"../Util": "Util"
} ],
FollowTarget: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e32c97YSrpN1pQFrOlMTyez", "FollowTarget");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = r.executionOrder, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.followRotation = !1;
t.rotationNode = null;
t.followScale = !1;
t.scaleNode = null;
t.speed = 0;
t.offset = cc.v2();
t.target = null;
t.onReachTargetCb = null;
t.targetPos = cc.v2();
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
return t;
}
t.prototype.SetTarget = function(e, t, n) {
void 0 === t && (t = 0);
void 0 === n && (n = null);
this.target = e;
this.speed = t;
this.onReachTargetCb = n;
this.OnUpdate(0);
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.OnUpdate(0);
};
t.prototype.OnUpdate = function() {
var e, t, n;
if (cc.isValid(this.target)) {
this.target.getPosition(this.targetPos);
this.targetPos.addSelf(this.offset);
this.speed <= 0 ? this.node.setPosition(this.targetPos) : this.node.setPosition(this.node.getPosition(this.v1).lerp(this.targetPos, cc.director.getDeltaTime() * this.speed, this.v2));
this.followRotation && (this.node.angle = (null !== (e = this.rotationNode) && void 0 !== e ? e : this.target).angle);
if (this.followScale) {
this.node.scaleX = (null !== (t = this.scaleNode) && void 0 !== t ? t : this.target).scaleX;
this.node.scaleY = (null !== (n = this.scaleNode) && void 0 !== n ? n : this.target).scaleY;
}
if (this.onReachTargetCb && cc.Vec2.squaredDistance(this.node.getPosition(this.v3), this.targetPos) <= 400) {
this.onReachTargetCb();
this.onReachTargetCb = null;
}
}
};
__decorate([ a() ], t.prototype, "followRotation", void 0);
__decorate([ a(cc.Node) ], t.prototype, "rotationNode", void 0);
__decorate([ a() ], t.prototype, "followScale", void 0);
__decorate([ a(cc.Node) ], t.prototype, "scaleNode", void 0);
__decorate([ a() ], t.prototype, "speed", void 0);
__decorate([ a(cc.Vec2) ], t.prototype, "offset", void 0);
__decorate([ a(cc.Node) ], t.prototype, "target", void 0);
return __decorate([ i, l(-10) ], t);
}(o.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
FreeCoinsUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "af716eJNd1Ni7eAMvdPUmB/", "FreeCoinsUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Core/Views/ViewUIManager"), l = e("../../Service/PlatformService"), s = e("../Config/ArchivementConfig"), c = e("../Config/Config"), u = e("../Config/GameModel"), p = e("../Config/GiftConfig"), d = e("./RewardsUI"), f = e("./ShopUI"), h = cc._decorator, m = h.ccclass, w = h.property, y = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.coinLabel = null;
t.closeBtn1 = null;
t.closeBtn2 = null;
t.jumpShopBtn = null;
t.callback = null;
return t;
}
Object.defineProperty(t.prototype, "freeCoins", {
get: function() {
return Math.min(800, c.Config.AdFreeCoins + 100 * (c.Config.DailyAdFreeCoinsCnt - u.default.Instance.dailyAdFreeCoinsCnt.value));
},
enumerable: !1,
configurable: !0
});
t.prototype.OnSetParams = function(e) {
var t = l.default.payable;
this.coinLabel.string = "+" + this.freeCoins;
this.callback = e;
this.closeBtn1.active = !t;
this.closeBtn2.active = t;
this.jumpShopBtn.active = t;
};
t.prototype.Close = function() {
this.HideView();
this.callback && this.callback();
};
t.prototype.OnAdSuc = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
d.default.ShowView("免费金币", [ new p.RewardProto(s.UnlockType.Coin, this.freeCoins) ]);
u.default.Instance.dailyAdFreeCoinsCnt.value--;
this.HideView();
return [ 4, a.default.UntilHide(d.default) ];

case 1:
e.sent();
this.callback && this.callback();
return [ 2 ];
}
});
});
};
t.prototype.JumpShop = function() {
this.HideView();
a.default.ShowView(f.default, this.callback);
};
__decorate([ w(cc.Label) ], t.prototype, "coinLabel", void 0);
__decorate([ w(cc.Node) ], t.prototype, "closeBtn1", void 0);
__decorate([ w(cc.Node) ], t.prototype, "closeBtn2", void 0);
__decorate([ w(cc.Node) ], t.prototype, "jumpShopBtn", void 0);
return __decorate([ m, o.RegisterView("FreeCoinsUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = y;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Service/PlatformService": void 0,
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./RewardsUI": "RewardsUI",
"./ShopUI": "ShopUI"
} ],
GameModel: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e1b85jrD1NCPZiscH4Cc3Y3", "GameModel");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Storage/SaveManager"), r = e("../../Framework/Core/Storage/Serializable"), i = e("../../Service/GameStorage"), a = e("../../Service/kl"), l = e("../../Service/PlatformService"), s = e("../../Service/RemoteSetting"), c = e("./BattleItemConfig"), u = e("./BattleItemData"), p = e("./Config"), d = e("../../Framework/Utility/DailyValue"), f = e("./EquipmentConfig"), h = e("./EquipmentData"), m = e("./HeroConfig"), w = e("./HeroData"), y = e("./LevelConfig"), g = e("./LevelData"), v = e("./SafeInt"), S = e("./SevenDayRewardData"), M = e("./ShareAssistConfig"), k = e("./ShareAssistData"), C = e("./SkillConfig"), P = e("./SkillData"), _ = e("./SkillGroupData"), O = e("./TalentConfig"), b = e("./TalentData"), F = e("./WeaponConfig"), I = e("./WeaponData"), E = e("../../Service/Analys"), D = e("../Messaging/MessageBroadcastReceiver"), R = e("./ShopConfig"), L = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.coin = new v.default(100);
t.diamond = new v.default(0);
t.offlineTime = 0;
t.battleCnt = 0;
t.skillList = new Array();
t.skillGroupList = new Array();
t.heroList = new Array();
t.weaponList = new Array();
t.weaponBlueprintList = new Array();
t.talentList = new Array();
t.battleItemList = new Array();
t.dailyAdFreeCoinsCnt = new d.DailyValue(p.Config.DailyAdFreeCoinsCnt);
t.readPrivacy = !1;
t.ttGotAwemeReward = !1;
t.enableMusic = !0;
t.enableAudioEffect = !0;
t.ttGotShortcutReward = !1;
t.ttSubscribe = !1;
t.selectedHeroId = p.Config.GetInitUnlockHeroes()[0];
t.selectedWeaponId = p.Config.InitUnlockWeapons[0];
t.levelList = new Array();
t.enableGuideLevel = !1;
t.lastGameTime = 0;
t.shareVideoCnt = new d.DailyValue(3);
t.fateCoinCnt = new v.default(0);
t.leftFreeShopCnt = new d.DailyValue(1);
t.noAdCount = new d.DailyValue(0);
t.fragmentLevelCount = new d.DailyValue(0);
t.chargeDiamond = new v.default(0);
t.blueprintOpenCount = new d.DailyValue(0);
t.weaponOpenCount = new v.default(0);
t.shiLianLevel = 1;
t.buyGoldPackCount = new v.default(0);
t.buyWeaponPackCount = new v.default(0);
t.hasWLGetFuli = !1;
t.equipmentList = new Array();
t.enableFxEffect = !0;
t.equipmentBlueprintCount = new v.default(0);
t.equipmentBlueprintDropCount = new d.DailyValue(0);
t.saodang = new v.default(0);
t.buyEquipmentPackCount = new v.default(0);
t.enableAutoAtk = !1;
t.chapterPackStates = [];
t.enableLighting = !0;
t.registTime = 0;
t.enableVibrate = !0;
t.shareAssistList = new Array();
t.noAdCard = 0;
t.shareAssistDate = "";
t.ttGotGameLivetReward = !1;
t.sevenDayReward = new S.SevenDayRewardData();
t.gotNewUserGift = !1;
t.gotComeBackGift = !1;
t.subscribeGiftTime = 0;
t.subscribeGiftValidKey = "";
t.processSaveData = null;
return t;
}
n = t;
t.prototype.OnConstructor = function() {};
t.prototype.Initialize = function() {
this.Init();
};
t.prototype.Init = function() {
var e = this;
n.Instance = this;
this.registTime <= 0 && (this.registTime = i.default.nowMS);
this.shareVideoCnt.defaultValue = s.default.Get("ShareVideoCnt", 3);
for (var t = this.skillList.length - 1; t >= 0; t--) {
var o = this.skillList[t];
C.SkillConfig.GetSkill(o.id) || this.skillList.splice(t, 1);
}
for (t = 0; t < C.SkillConfig.skills.length; t++) {
var r = C.SkillConfig.skills[t];
if (!this.GetSkill(r.id)) {
(S = new P.SkillData()).id = r.id;
S.unlock = !0;
this.skillList.push(S);
}
}
for (t = this.skillGroupList.length - 1; t >= 0; t--) {
o = this.skillGroupList[t];
C.SkillConfig.GetSkillGroup(o.id) || this.skillGroupList.splice(t, 1);
}
for (t = 0; t < C.SkillConfig.skillGroup.length; t++) {
r = C.SkillConfig.skillGroup[t];
var a = this.GetSkillGroup(r.id);
if (a) a.unlock.boolValue || p.Config.InitUnlockSkillGroups.indexOf(r.id) >= 0 && (a.unlock.boolValue = !0); else {
(S = new _.SkillGroupData()).id = r.id;
S.unlock.boolValue = p.Config.InitUnlockSkillGroups.indexOf(r.id) >= 0;
this.skillGroupList.push(S);
}
}
for (t = this.heroList.length - 1; t >= 0; t--) {
o = this.heroList[t];
m.HeroConfig.GetHero(o.id) || this.heroList.splice(t, 1);
}
var l = m.HeroConfig.GetHeroes();
for (t = 0; t < l.length; t++) {
r = l[t];
if (!this.GetHero(r.id)) {
(S = new w.HeroData()).id = r.id;
S.unlock.boolValue = p.Config.GetInitUnlockHeroes().indexOf(r.id) >= 0;
S.visible = !0;
this.heroList.push(S);
}
}
for (t = this.weaponList.length - 1; t >= 0; t--) {
o = this.weaponList[t];
F.WeaponConfig.GetWeapon(o.id) || this.weaponList.splice(t, 1);
}
for (t = 0; t < F.WeaponConfig.weapons.length; t++) {
r = F.WeaponConfig.weapons[t];
if (!this.GetWeapon(r.id)) {
(S = new I.WeaponData()).id = r.id;
S.unlock.boolValue = p.Config.InitUnlockWeapons.indexOf(r.id) >= 0;
S.visible = !0;
this.weaponList.push(S);
}
}
for (t = this.talentList.length - 1; t >= 0; t--) {
o = this.talentList[t];
O.TalentConfig.GetTalent(o.id) ? 0 == o.lv && o.active && (o.active = !1) : this.talentList.splice(t, 1);
}
for (t = 0; t < O.TalentConfig.talents.length; t++) {
var d = O.TalentConfig.talents[t];
if (!this.GetTalent(d.id)) {
(S = new b.TalentData()).id = d.id;
this.talentList.push(S);
}
}
for (t = this.talentList.length - 1; t >= 0; t--) (o = this.talentList[t]).CalcLockInfo();
for (t = this.talentList.length - 1; t >= 0; t--) (o = this.talentList[t]).lv = Math.min(o.lv, o.proto.maxLv);
for (t = this.battleItemList.length - 1; t >= 0; t--) {
o = this.battleItemList[t];
c.BattleItemConfig.GetItem(o.id) || this.battleItemList.splice(t, 1);
}
for (t = 0; t < c.BattleItemConfig.items.length; t++) {
d = c.BattleItemConfig.items[t];
if (!this.GetBattleItem(d.id)) {
(S = new u.BattleItemData()).id = d.id;
S.unlock = p.Config.InitUnlockBattleItems.indexOf(d.id) >= 0;
this.battleItemList.push(S);
}
}
for (t = 0; t < M.ShareAssistConfig.items.length; t++) {
r = M.ShareAssistConfig.items[t];
if (!this.GetShareAssist(r.id)) {
(S = new k.ShareAssistData()).id = r.id;
this.shareAssistList.push(S);
}
}
for (t = this.levelList.length - 1; t >= 0; t--) {
o = this.levelList[t];
y.LevelConfig.GetLevel(o.id) || this.levelList.splice(t, 1);
}
for (t = 0; t < y.LevelConfig.levels.length; t++) {
r = y.LevelConfig.levels[t];
if (!this.GetLevel(r.id)) {
(S = new g.LevelData()).id = r.id;
S.unlock = 0 == t;
this.levelList.push(S);
}
}
if (this.weaponBlueprintList.length < F.WeaponType.Count) {
var v = F.WeaponType.Count - this.weaponBlueprintList.length;
for (t = 0; t < v; t++) this.weaponBlueprintList.push(0);
}
for (t = this.equipmentList.length - 1; t >= 0; t--) {
o = this.equipmentList[t];
f.EquipmentConfig.GetEquipment(o.id) || this.equipmentList.splice(t, 1);
}
for (t = 0; t < f.EquipmentConfig.equipments.length; t++) {
r = f.EquipmentConfig.equipments[t];
if (!this.GetEquipment(r.id)) {
var S;
(S = new h.EquipmentData()).id = r.id;
S.unlock.boolValue = !1;
this.equipmentList.push(S);
}
}
var D = s.default.Get("SubscribeGiftValidKey", "");
if (this.subscribeGiftValidKey != D) {
this.subscribeGiftTime = 0;
this.subscribeGiftValidKey = D;
}
n.LoadProgress();
E.default.GetLevelIndexFunc = function() {
var t;
return null === (t = e.currentLevel) || void 0 === t ? void 0 : t.id;
};
};
Object.defineProperty(t.prototype, "currentLevel", {
get: function() {
for (var e = this.levelList.length - 1; e >= 0; e--) {
var t = this.levelList[e];
if (!(t.proto.chapter < 0) && t.unlock) return t;
}
return null;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "unlockSkillCnt", {
get: function() {
for (var e = 0, t = 0; t < this.skillList.length; t++) this.skillList[t].unlock && e++;
return e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "lockEquipmentCount", {
get: function() {
for (var e = 0, t = 0; t < this.equipmentList.length; t++) this.equipmentList[t].unlock.boolValue || e++;
return e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "validChapterPackCnt", {
get: function() {
for (var e = 0, t = 0; t < R.ShopConfig.ChapterPackRewards.length; t++) {
var o = t + 1;
this.IsChapterPassed(o) && n.Instance.chapterPackStates.indexOf(o) < 0 && e++;
}
return e;
},
enumerable: !1,
configurable: !0
});
t.prototype.GetSkill = function(e) {
return this.skillList.find(function(t) {
return t.id == e;
});
};
t.prototype.GetSkillGroup = function(e) {
return this.skillGroupList.find(function(t) {
return t.id == e;
});
};
t.prototype.GetWeapon = function(e) {
return this.weaponList.find(function(t) {
return t.id == e;
});
};
t.prototype.GetEquipment = function(e) {
return this.equipmentList.find(function(t) {
return t.id == e;
});
};
t.prototype.GetHero = function(e) {
return this.heroList.find(function(t) {
return t.id == e;
});
};
t.prototype.GetTalent = function(e) {
return this.talentList.find(function(t) {
return t.id == e;
});
};
t.prototype.GetBattleItem = function(e) {
return this.battleItemList.find(function(t) {
return t.id == e;
});
};
t.prototype.GetLevel = function(e) {
return this.levelList.find(function(t) {
return t.id == e;
});
};
t.prototype.IsChapterPassed = function(e) {
for (var t = y.LevelConfig.GetChapter(e), n = !0, o = 0; o < t.levels.length; o++) {
var r = t.levels[o];
this.GetLevel(r).isBossKilled || (n = !1);
}
return n;
};
t.prototype.GetShareAssist = function(e) {
return this.shareAssistList.find(function(t) {
return t.id == e;
});
};
t.prototype.ResetShareAssist = function(e) {
this.shareAssistDate = e;
for (var t = 0; t < this.shareAssistList.length; t++) this.shareAssistList[t].Reset();
};
t.prototype.GetWeaponBlueprintNum = function(e) {
return this.weaponBlueprintList[e];
};
t.prototype.AddWeaponBlueprintNum = function(e, t, n) {
this.weaponBlueprintList[e] = Math.max(0, this.weaponBlueprintList[e] + t);
E.default.LogModifyItem(n, null, F.BluePrintTypeName[e], t);
};
t.prototype.CanGetComeBackGift = function() {
return !this.gotComeBackGift && 0 != this.lastGameTime && (i.default.nowMS - this.lastGameTime) / 1e3 >= 86400 * s.default.Get("ComeBackGiftDay", 3);
};
t.prototype.AddDiamond = function(e, t) {
if (0 != e) {
this.diamond.intValue += e;
this.chargeDiamond.intValue += e;
if (this.diamond.intValue < 0) {
this.diamond.intValue = 0;
this.chargeDiamond.intValue = 0;
}
this.chargeDiamond.intValue < 0 && (this.chargeDiamond.intValue = 0);
E.default.LogModifyItem(t, null, "钻石", e);
e < 0 && D.BroadcastMessage(null, "OnUseDiamond", -e);
}
};
t.prototype.AddCoin = function(e, t) {
if (0 != e) {
this.coin.intValue += e;
E.default.LogModifyItem(t, null, "金币", e);
e < 0 && D.BroadcastMessage(null, "OnUseCoin", -e);
}
};
t.prototype.AddEquipmentBlueprint = function(e, t) {
if (0 != e) {
this.equipmentBlueprintCount.intValue += e;
E.default.LogModifyItem(t, null, "时装图纸", e);
}
};
t.Save = function(e) {
void 0 === e && (e = !1);
n.Instance.lastGameTime = i.default.nowMS;
o.default.Save(e);
};
t.SaveProgress = function() {
l.default.SetLocalStorage("Progress", n.Instance.processSaveData ? a.default.ToJsonText(n.Instance.processSaveData) : "");
};
t.LoadProgress = function() {
var e = l.default.GetLocalStorage("Progress");
e && e.length > 0 ? n.Instance.processSaveData = a.default.ParseJsonText(e) : n.Instance.processSaveData = null;
};
var n;
t.Instance = null;
__decorate([ r.SerializeField("a", v.default) ], t.prototype, "coin", void 0);
__decorate([ r.SerializeField("b", v.default) ], t.prototype, "diamond", void 0);
__decorate([ r.SerializeField("c") ], t.prototype, "offlineTime", void 0);
__decorate([ r.SerializeField("d") ], t.prototype, "battleCnt", void 0);
__decorate([ r.SerializeField("f", _.SkillGroupData) ], t.prototype, "skillGroupList", void 0);
__decorate([ r.SerializeField("g", w.HeroData) ], t.prototype, "heroList", void 0);
__decorate([ r.SerializeField("h", I.WeaponData) ], t.prototype, "weaponList", void 0);
__decorate([ r.SerializeField("hh") ], t.prototype, "weaponBlueprintList", void 0);
__decorate([ r.SerializeField("i", b.TalentData) ], t.prototype, "talentList", void 0);
__decorate([ r.SerializeField("j", u.BattleItemData) ], t.prototype, "battleItemList", void 0);
__decorate([ r.SerializeField("k", d.DailyValue) ], t.prototype, "dailyAdFreeCoinsCnt", void 0);
__decorate([ r.SerializeField("l") ], t.prototype, "readPrivacy", void 0);
__decorate([ r.SerializeField("m") ], t.prototype, "ttGotAwemeReward", void 0);
__decorate([ r.SerializeField("n") ], t.prototype, "enableMusic", void 0);
__decorate([ r.SerializeField("o") ], t.prototype, "enableAudioEffect", void 0);
__decorate([ r.SerializeField("p") ], t.prototype, "ttGotShortcutReward", void 0);
__decorate([ r.SerializeField("q") ], t.prototype, "ttSubscribe", void 0);
__decorate([ r.SerializeField("r") ], t.prototype, "selectedHeroId", void 0);
__decorate([ r.SerializeField("s") ], t.prototype, "selectedWeaponId", void 0);
__decorate([ r.SerializeField("u", g.LevelData) ], t.prototype, "levelList", void 0);
__decorate([ r.SerializeField("v") ], t.prototype, "enableGuideLevel", void 0);
__decorate([ r.SerializeField("w") ], t.prototype, "lastGameTime", void 0);
__decorate([ r.SerializeField("x", d.DailyValue) ], t.prototype, "shareVideoCnt", void 0);
__decorate([ r.SerializeField("y", v.default) ], t.prototype, "fateCoinCnt", void 0);
__decorate([ r.SerializeField("z", d.DailyValue) ], t.prototype, "leftFreeShopCnt", void 0);
__decorate([ r.SerializeField("a1", d.DailyValue) ], t.prototype, "noAdCount", void 0);
__decorate([ r.SerializeField("b1", d.DailyValue) ], t.prototype, "fragmentLevelCount", void 0);
__decorate([ r.SerializeField("c1", v.default) ], t.prototype, "chargeDiamond", void 0);
__decorate([ r.SerializeField("d1", d.DailyValue) ], t.prototype, "blueprintOpenCount", void 0);
__decorate([ r.SerializeField("e1", v.default) ], t.prototype, "weaponOpenCount", void 0);
__decorate([ r.SerializeField("f1") ], t.prototype, "shiLianLevel", void 0);
__decorate([ r.SerializeField("g1", v.default) ], t.prototype, "buyGoldPackCount", void 0);
__decorate([ r.SerializeField("h1", v.default) ], t.prototype, "buyWeaponPackCount", void 0);
__decorate([ r.SerializeField("i1") ], t.prototype, "hasWLGetFuli", void 0);
__decorate([ r.SerializeField("j1", h.EquipmentData) ], t.prototype, "equipmentList", void 0);
__decorate([ r.SerializeField("k1") ], t.prototype, "enableFxEffect", void 0);
__decorate([ r.SerializeField("l1", v.default) ], t.prototype, "equipmentBlueprintCount", void 0);
__decorate([ r.SerializeField("m1", d.DailyValue) ], t.prototype, "equipmentBlueprintDropCount", void 0);
__decorate([ r.SerializeField("n1", v.default) ], t.prototype, "saodang", void 0);
__decorate([ r.SerializeField("o1", v.default) ], t.prototype, "buyEquipmentPackCount", void 0);
__decorate([ r.SerializeField("p1") ], t.prototype, "enableAutoAtk", void 0);
__decorate([ r.SerializeField("q1") ], t.prototype, "chapterPackStates", void 0);
__decorate([ r.SerializeField("r1") ], t.prototype, "enableLighting", void 0);
__decorate([ r.SerializeField("s1") ], t.prototype, "registTime", void 0);
__decorate([ r.SerializeField("t1") ], t.prototype, "enableVibrate", void 0);
__decorate([ r.SerializeField("za", k.ShareAssistData) ], t.prototype, "shareAssistList", void 0);
__decorate([ r.SerializeField("zb") ], t.prototype, "noAdCard", void 0);
__decorate([ r.SerializeField("zc") ], t.prototype, "shareAssistDate", void 0);
__decorate([ r.SerializeField("zd") ], t.prototype, "ttGotGameLivetReward", void 0);
__decorate([ r.SerializeField("ze", S.SevenDayRewardData) ], t.prototype, "sevenDayReward", void 0);
__decorate([ r.SerializeField("zf") ], t.prototype, "gotNewUserGift", void 0);
__decorate([ r.SerializeField("zg") ], t.prototype, "gotComeBackGift", void 0);
__decorate([ r.SerializeField("zh") ], t.prototype, "subscribeGiftTime", void 0);
__decorate([ r.SerializeField("zi") ], t.prototype, "subscribeGiftValidKey", void 0);
return n = __decorate([ r.SerializeClass("gm") ], t);
}(r.default);
n.default = L;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/SaveManager": void 0,
"../../Framework/Core/Storage/Serializable": void 0,
"../../Framework/Utility/DailyValue": void 0,
"../../Service/Analys": void 0,
"../../Service/GameStorage": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../../Service/kl": void 0,
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./BattleItemConfig": "BattleItemConfig",
"./BattleItemData": "BattleItemData",
"./Config": "Config",
"./EquipmentConfig": "EquipmentConfig",
"./EquipmentData": "EquipmentData",
"./HeroConfig": "HeroConfig",
"./HeroData": "HeroData",
"./LevelConfig": "LevelConfig",
"./LevelData": "LevelData",
"./SafeInt": "SafeInt",
"./SevenDayRewardData": "SevenDayRewardData",
"./ShareAssistConfig": "ShareAssistConfig",
"./ShareAssistData": "ShareAssistData",
"./ShopConfig": "ShopConfig",
"./SkillConfig": "SkillConfig",
"./SkillData": "SkillData",
"./SkillGroupData": "SkillGroupData",
"./TalentConfig": "TalentConfig",
"./TalentData": "TalentData",
"./WeaponConfig": "WeaponConfig",
"./WeaponData": "WeaponData"
} ],
GiftConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "75a13pko4hNt4anvJMm2fBV", "GiftConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.freeAd = n.SevenDayConfig = n.RewardProto = void 0;
var o = e("../../Framework/Localize/LocalizeManager"), r = e("./ArchivementConfig"), i = e("./ArchivementModel"), a = e("./ChestConfig"), l = e("./EquipmentConfig"), s = e("./GameModel"), c = e("./GuoQingModel"), u = e("./SafeBool"), p = e("./SkillConfig"), d = e("./WeaponConfig"), f = function() {
function e(e, t, n, o, r, i) {
this.unlockType = e;
this.count = t;
this.unlockId = n;
this.icon = o;
this.level = r;
this.lv = i;
}
Object.defineProperty(e.prototype, "name", {
get: function() {
var e = null;
switch (this.unlockType) {
case r.UnlockType.Coin:
e = "金币";
break;

case r.UnlockType.Diamond:
e = "钻石";
break;

case r.UnlockType.Hero:
e = s.default.Instance.GetHero(this.unlockId).proto.name;
break;

case r.UnlockType.BluePrint:
e = d.BluePrintTypeName[this.unlockId];
break;

case r.UnlockType.Piece:
e = o.TXT("[碎片]") + o.TXT(s.default.Instance.GetWeapon(this.unlockId).proto.name);
break;

case r.UnlockType.Weapon:
e = s.default.Instance.GetWeapon(this.unlockId).proto.name;
break;

case r.UnlockType.EquipmentPiece:
e = o.TXT("[碎片]") + o.TXT(s.default.Instance.GetEquipment(this.unlockId).proto.name);
break;

case r.UnlockType.Equipment:
e = s.default.Instance.GetEquipment(this.unlockId).proto.name;
break;

case r.UnlockType.EquipmentBluePrint:
e = "时装图纸";
break;

case r.UnlockType.AdCard:
e = "免广告卡";
break;

case r.UnlockType.SkillGroup:
e = p.SkillConfig.FindSkillGroup(this.unlockId).name;
break;

case r.UnlockType.ActiveValue:
e = "活跃";
break;

case r.UnlockType.Saodang:
e = "扫荡券";
break;

case r.UnlockType.Fengche:
e = "风车";
}
return e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "iconPath", {
get: function() {
return this.icon && this.icon.length > 0 ? this.icon : e.GetIconPath(this.unlockType, this.unlockId, this.level);
},
enumerable: !1,
configurable: !0
});
e.GetIconPath = function(e, t, n) {
switch (e) {
case r.UnlockType.Coin:
return "UI/coin";

case r.UnlockType.Diamond:
return "UI/diamond";

case r.UnlockType.Hero:
return s.default.Instance.GetHero(t).proto.headIcon;

case r.UnlockType.BluePrint:
return "UI/Blueprint/" + t;

case r.UnlockType.Piece:
return s.default.Instance.GetWeapon(t).proto.GetIconPath(null != n ? n : 1);

case r.UnlockType.Weapon:
return s.default.Instance.GetWeapon(t).proto.GetIconPath(n);

case r.UnlockType.Equipment:
case r.UnlockType.EquipmentPiece:
return s.default.Instance.GetEquipment(t).proto.iconPath;

case r.UnlockType.EquipmentBluePrint:
return "Battle/Texture/Item/EquipBp";

case r.UnlockType.AdCard:
return "Unpack/Shop/ADCard";

case r.UnlockType.SkillGroup:
return p.SkillConfig.FindSkillGroup(t).iconPath;

case r.UnlockType.ActiveValue:
return "UI/NewUI/activeIcon";

case r.UnlockType.Saodang:
return "UI/NewUI/saodang";

case r.UnlockType.Fengche:
return "Unpack/GuoQing/fengche";

default:
return "";
}
};
Object.defineProperty(e.prototype, "pieceIconPath", {
get: function() {
return e.GetPieceIconPath(this.unlockType, this.unlockId);
},
enumerable: !1,
configurable: !0
});
e.GetPieceIconPath = function(e, t) {
switch (e) {
case r.UnlockType.Piece:
return "UI/Weapon/piece";

case r.UnlockType.EquipmentPiece:
return s.default.Instance.GetEquipment(t).proto.type == l.EquipmentType.Mask ? "UI/Equipment/mask" : "UI/Equipment/wing";
}
return "";
};
e.prototype.GetReward = function(e, t) {
void 0 === t && (t = !1);
switch (this.unlockType) {
case r.UnlockType.Coin:
s.default.Instance.AddCoin(this.count, e);
break;

case r.UnlockType.Diamond:
s.default.Instance.AddDiamond(this.count, e);
break;

case r.UnlockType.Hero:
s.default.Instance.GetHero(this.unlockId).Unlock(e);
break;

case r.UnlockType.BluePrint:
s.default.Instance.AddWeaponBlueprintNum(this.unlockId, this.count, e);
break;

case r.UnlockType.Piece:
s.default.Instance.GetWeapon(this.unlockId).AddPiece(this.count, e);
break;

case r.UnlockType.Weapon:
var o = s.default.Instance.GetWeapon(this.unlockId);
if (o.unlock.boolValue) null != this.level && (o.classLevel.intValue < this.level ? o.classLevel.intValue = this.level : t && (2 == this.level ? o.AddPiece(a.ChestConfig.weaponChestParamPer10.weapon2Piece, e) : o.AddPiece(a.ChestConfig.weaponChestParamPer30.weapon2Piece, e))); else {
o.Unlock(e);
null != this.level && o.classLevel.intValue < this.level && (o.classLevel.intValue = this.level);
}
null != this.lv && o.level.intValue < this.lv && (o.level.intValue = this.lv);
break;

case r.UnlockType.Equipment:
var l = s.default.Instance.GetEquipment(this.unlockId);
l.Unlock(e);
break;

case r.UnlockType.EquipmentPiece:
(l = s.default.Instance.GetEquipment(this.unlockId)).AddPiece(this.count, e);
break;

case r.UnlockType.EquipmentBluePrint:
s.default.Instance.AddEquipmentBlueprint(this.count, e);
break;

case r.UnlockType.AdCard:
n.freeAd.boolValue = !0;
break;

case r.UnlockType.SkillGroup:
s.default.Instance.GetSkillGroup(this.unlockId).Unlock(e);
break;

case r.UnlockType.ActiveValue:
i.default.Instance.activeValue.intValue += this.count;
break;

case r.UnlockType.Saodang:
s.default.Instance.saodang.intValue += this.count;
break;

case r.UnlockType.Fengche:
c.default.Instance.AddFengche(this.count);
}
};
return e;
}();
n.RewardProto = f;
var h = function() {
function e() {}
e.GetProto = function(t) {
return t < 7 ? e.firstSevenItems[t] : e.afterSevenItems[t % 7];
};
e.GetSevenDayProtos = function(t) {
return t < 7 ? e.firstSevenItems : e.afterSevenItems;
};
e.firstSevenItems = [ new f(r.UnlockType.Coin, 300), new f(r.UnlockType.Coin, 500), new f(r.UnlockType.Coin, 800), new f(r.UnlockType.Coin, 1e3), new f(r.UnlockType.Coin, 1200), new f(r.UnlockType.Coin, 1500), new f(r.UnlockType.Diamond, 100) ];
e.afterSevenItems = [ new f(r.UnlockType.Coin, 500), new f(r.UnlockType.Coin, 800), new f(r.UnlockType.Coin, 1e3), new f(r.UnlockType.Coin, 1200), new f(r.UnlockType.Coin, 1500), new f(r.UnlockType.Coin, 2e3), new f(r.UnlockType.Diamond, 80) ];
return e;
}();
n.SevenDayConfig = h;
n.freeAd = new u.default(!1);
cc._RF.pop();
}, {
"../../Framework/Localize/LocalizeManager": void 0,
"./ArchivementConfig": "ArchivementConfig",
"./ArchivementModel": "ArchivementModel",
"./ChestConfig": "ChestConfig",
"./EquipmentConfig": "EquipmentConfig",
"./GameModel": "GameModel",
"./GuoQingModel": "GuoQingModel",
"./SafeBool": "SafeBool",
"./SkillConfig": "SkillConfig",
"./WeaponConfig": "WeaponConfig"
} ],
GiftRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "49da2hSadNDUpfo0hGhs2Pg", "GiftRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/GameModel"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cntLable = null;
t.timeCounter = 0;
t.cnt = 0;
return t;
}
t.prototype.update = function(e) {
this.timeCounter -= e;
if (this.timeCounter <= 0) {
this.timeCounter = 1;
this.cnt = 0;
o.default.Instance.sevenDayReward.CanGetReward() && this.cnt++;
}
this.node.opacity = this.cnt > 0 ? 255 : 0;
this.cntLable.string = this.cnt.toFixed();
};
__decorate([ a(cc.Label) ], t.prototype, "cntLable", void 0);
return __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../Config/GameModel": "GameModel"
} ],
GiftUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3931d284nBPe6b1yy/Z+C6s", "GiftUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.GiftType = void 0;
var o, r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Framework/UI/PromptUI"), c = e("../../Service/Extension/SubscribeOneTimeMessage"), u = e("../../Service/GameStorage"), p = e("../../Service/IPlatformProxy"), d = e("../../Service/PlatformService"), f = e("../../Service/RemoteSetting"), h = e("../Config/ArchivementConfig"), m = e("../Config/Config"), w = e("../Config/GameModel"), y = e("../Config/GiftConfig"), g = e("./RewardsUI"), v = e("./SevenDayRewardComponent"), S = cc._decorator, M = S.ccclass, k = S.property;
(function(e) {
e[e.SevenDay = 0] = "SevenDay";
e[e.ComeBack = 1] = "ComeBack";
e[e.NewUser = 2] = "NewUser";
e[e.VipCode = 3] = "VipCode";
})(o = n.GiftType || (n.GiftType = {}));
var C = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.toggleContainer = null;
t.sevenDayContent = null;
t.vipCodeContent = null;
t.sevenDayToggle = null;
t.vipCodeToggle = null;
t.subscribeToggle = null;
t.guanzhuToggle = null;
t.subscribeContent = null;
t.guanzhuContent = null;
t.subscribeRewardLabel = null;
t.guanZhuRewardLabel = null;
t.SubscribeSucFunc = null;
return t;
}
t.prototype.onLoad = function() {
this.SubscribeSucFunc = this.GetSubscribeReward.bind(this);
this.sevenDayContent.getComponent(v.default).onClaimed = function() {};
};
t.prototype.UpdateContentPanel = function() {
this.sevenDayContent.active = this.sevenDayToggle.isChecked;
this.vipCodeToggle.node.active = f.default.Get("openVipCode", !0);
this.vipCodeContent.active = this.vipCodeToggle.node.active && this.vipCodeToggle.isChecked;
var e = d.default.platformType == p.PlatformType.TouTiao && d.default.subPlatformType == p.SubPlatformType.DouYin;
this.subscribeToggle.node.active = 0 == w.default.Instance.subscribeGiftTime && f.default.Get("subcribeGiftBtn", !0) && e;
this.guanzhuToggle.node.active = !w.default.Instance.ttGotAwemeReward && f.default.Get("EnableTTAweme", !0) && e;
this.subscribeContent.active = this.subscribeToggle.node.active && this.subscribeToggle.isChecked;
this.guanzhuContent.active = this.guanzhuToggle.node.active && this.guanzhuToggle.isChecked;
};
t.prototype.SetLastToggleCheck = function(e) {
for (var t = null, n = 0; n < this.toggleContainer.toggleItems.length; n++) {
var o = this.toggleContainer.toggleItems[n];
if (o == e && t) {
t.check();
this.UpdateContentPanel();
}
o.node.active && (t = o);
}
};
t.prototype.OnSetParams = function(e) {
var t = this;
this.scheduleOnce(function() {
switch (e) {
case o.SevenDay:
t.sevenDayToggle.check();
break;

case o.VipCode:
t.vipCodeToggle.check();
}
t.UpdateContentPanel();
}, .01);
this.subscribeRewardLabel.string = "+" + m.Config.SubscribeRweardCoins;
this.guanZhuRewardLabel.string = "+" + m.Config.AwemeRewardCoins;
};
t.prototype.OnTabClick = function() {
this.UpdateContentPanel();
};
t.prototype.OnTTAwemeSuc = function() {
if (!w.default.Instance.ttGotAwemeReward) {
w.default.Instance.ttGotAwemeReward = !0;
g.default.ShowView("关注", [ new y.RewardProto(h.UnlockType.Coin, m.Config.AwemeRewardCoins) ]);
this.guanzhuToggle.node.active = !1;
this.SetLastToggleCheck(this.vipCodeToggle);
this.UpdateContentPanel();
}
};
t.prototype.onEnable = function() {
c.default.OnSubscribeSuccessDelegate.Add(this.SubscribeSucFunc);
};
t.prototype.onDisable = function() {
c.default.OnSubscribeSuccessDelegate.Remove(this.SubscribeSucFunc);
};
t.prototype.GetSubscribeReward = function() {
g.default.ShowView("订阅", [ new y.RewardProto(h.UnlockType.Coin, m.Config.SubscribeRweardCoins) ]);
w.default.Instance.subscribeGiftTime = Math.floor(u.default.nowMS / 1e3);
this.subscribeToggle.node.active = !1;
this.SetLastToggleCheck(this.vipCodeToggle);
this.UpdateContentPanel();
};
t.prototype.OnSubscribeGiftClick = function() {
var e = f.default.Get("SubscribeTemplateIds", null);
if (e && e.gift) {
c.default.RemoveSave("gift");
c.default.SubscribeIds([ "gift" ], 0);
} else l.default.ShowView(s.default, "没有订阅礼包配置，请稍后再试");
};
__decorate([ k(cc.ToggleContainer) ], t.prototype, "toggleContainer", void 0);
__decorate([ k(cc.Node) ], t.prototype, "sevenDayContent", void 0);
__decorate([ k(cc.Node) ], t.prototype, "vipCodeContent", void 0);
__decorate([ k(cc.Toggle) ], t.prototype, "sevenDayToggle", void 0);
__decorate([ k(cc.Toggle) ], t.prototype, "vipCodeToggle", void 0);
__decorate([ k(cc.Toggle) ], t.prototype, "subscribeToggle", void 0);
__decorate([ k(cc.Toggle) ], t.prototype, "guanzhuToggle", void 0);
__decorate([ k(cc.Node) ], t.prototype, "subscribeContent", void 0);
__decorate([ k(cc.Node) ], t.prototype, "guanzhuContent", void 0);
__decorate([ k(cc.Label) ], t.prototype, "subscribeRewardLabel", void 0);
__decorate([ k(cc.Label) ], t.prototype, "guanZhuRewardLabel", void 0);
return __decorate([ M, r.RegisterView("GiftUI", i.ViewLayer.NormalLayer, i.ViewShowRule.HideSameLayerView) ], t);
}(a.default);
n.default = C;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/Extension/SubscribeOneTimeMessage": void 0,
"../../Service/GameStorage": void 0,
"../../Service/IPlatformProxy": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./RewardsUI": "RewardsUI",
"./SevenDayRewardComponent": "SevenDayRewardComponent"
} ],
GralicParticle: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "16d7bxf/lRG+bT4OQ2n6Bzv", "GralicParticle");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/AssetManager"), r = e("../../../Framework/Core/Resource/MyComponent"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.prefab = null;
t.animTime = 1.5;
t.spawnIntervel = 1.2;
t.maxCount = 0;
t.startScale = 1;
t.endScale = 1.7;
t.startOpacity = 0;
t.endOpacity = 200;
t.destoryTime = 0;
t.passedTime = Number.MAX_SAFE_INTEGER;
t.passedTime1 = 0;
t.count = 0;
t.freeIns = new Array();
return t;
}
t.prototype.onDestroy = function() {
this.freeIns = null;
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.passedTime1 = 0;
this.passedTime = this.spawnIntervel;
this.count = 0;
};
t.prototype.Spawn = function() {
var e = this;
this.count++;
var t = this.freeIns.length > 0 ? this.freeIns.pop() : cc.instantiate(this.prefab);
t.parent = this.node;
t.position = cc.Vec3.ZERO;
t.active = !0;
var n = this.animTime / this.timeScale;
t.opacity = this.startOpacity;
t.scale = this.startScale;
var o = t.tween;
o ? o.start() : t.tween = cc.tween(t).to(n, {
opacity: this.endOpacity,
scale: 1 + .5 * (this.endScale - 1)
}).to(n, {
opacity: 0,
scale: this.endScale
}).call(function() {
t.active = !1;
e.freeIns.push(t);
}).start();
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
if (this.passedTime >= this.spawnIntervel) {
this.passedTime = 0;
(this.maxCount <= 0 || this.maxCount > this.count) && this.Spawn();
}
if (this.destoryTime > 0) {
this.passedTime1 += e;
this.passedTime1 >= this.destoryTime && o.default.Default.DestroyNode(this.node);
}
};
__decorate([ l(cc.Node) ], t.prototype, "prefab", void 0);
__decorate([ l() ], t.prototype, "animTime", void 0);
__decorate([ l() ], t.prototype, "spawnIntervel", void 0);
__decorate([ l() ], t.prototype, "maxCount", void 0);
__decorate([ l() ], t.prototype, "startScale", void 0);
__decorate([ l() ], t.prototype, "endScale", void 0);
__decorate([ l() ], t.prototype, "startOpacity", void 0);
__decorate([ l() ], t.prototype, "endOpacity", void 0);
__decorate([ l() ], t.prototype, "destoryTime", void 0);
return __decorate([ a ], t);
}(r.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/AssetManager": void 0,
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
GravityArea: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e3c2fRr2d5K3Isdqj+4gCrB", "GravityArea");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.GravityForce = void 0;
var o = e("../../Framework/Core/Resource/EffectManager"), r = e("../../Framework/Core/Resource/SoundsManager"), i = e("../RVO2/IBody"), a = e("./Entity"), l = e("./LevelContext"), s = e("./Skill/EffectHandler"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t(t, n, o, r) {
var i = e.call(this, 0, 0, 0, null) || this;
i.area = null;
i.entity = null;
i.targetPos = cc.Vec2.ZERO;
i.gravity = 100;
i.gravity = t;
i.area = o;
i.entity = r;
i.targetPos = n;
return i;
}
t.prototype.Update = function() {
if (cc.isValid(this.entity)) {
this.targetPos.sub(this.entity.body.position, this.force);
this.force.normalizeSelf();
this.force.mulSelf(this.gravity);
}
};
t.prototype.IsFinish = function() {
return !cc.isValid(this.area) || !cc.isValid(this.entity) || !this.area.entities.contains(this.entity);
};
return t;
}(i.IForce);
n.GravityForce = d;
var f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.gravity = 50;
t.delayTime = 2;
t.disapperEffect = null;
t.disapperSound = null;
t.entities = [];
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
t.v4 = cc.v2();
return t;
}
t.prototype.onEnable = function() {
this.delayHit();
};
t.prototype.delayHit = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n;
return __generator(this, function(i) {
switch (i.label) {
case 0:
return [ 4, l.LevelContext.Instance.waitForTime(.05) ];

case 1:
i.sent();
e = this.node.getPosition(this.v4);
return [ 4, l.LevelContext.Instance.waitForTime(this.delayTime) ];

case 2:
i.sent();
this.disapperEffect && o.EffectManager.PlayEffectSync(null, this.disapperEffect, l.LevelContext.Instance.effectLayer, e, 0, this.node.scale);
this.disapperSound && r.default.instance.PlayEffectSync(this.disapperSound);
for (t = 0; t < this.entities.length; t++) {
n = this.entities[t];
cc.isValid(n) && this.HitEntity(n);
}
this.entities = [];
return [ 2 ];
}
});
});
};
t.prototype.HitEntity = function(e) {
var t = e.node.convertToWorldSpaceAR(cc.Vec2.ZERO, this.v1), n = this.node.convertToWorldSpaceAR(cc.Vec2.ZERO, this.v2);
this.skill.Damage(e.collider.node, cc.Vec2.subtract(this.v3, t, n).normalizeSelf());
};
t.prototype.onCollisionEnter = function(e) {
var t = e.node.parent.getComponent(a.Entity);
if (t && this.entities.indexOf(t) < 0) {
this.entities.push(t);
t.body.AddForce1(new d(this.gravity, this.node.getPosition(), this, t));
}
};
t.prototype.onCollisionExit = function(e) {
var t = e.node.parent.getComponent(a.Entity);
if (t) {
var n = this.entities.indexOf(t);
n >= 0 && this.entities.splice(n, 1);
}
};
__decorate([ p() ], t.prototype, "gravity", void 0);
__decorate([ p() ], t.prototype, "delayTime", void 0);
__decorate([ p(cc.Prefab) ], t.prototype, "disapperEffect", void 0);
__decorate([ p({
type: cc.AudioClip
}) ], t.prototype, "disapperSound", void 0);
return __decorate([ u ], t);
}(s.default);
n.default = f;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../RVO2/IBody": "IBody",
"./Entity": "Entity",
"./LevelContext": "LevelContext",
"./Skill/EffectHandler": "EffectHandler"
} ],
Growth: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9ab348t3qZNNZgkmZ7UG18X", "Growth");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("./BaseTalentSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.everyLv = 5;
t.addHp = 1;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnBattleSkillLevelUp = function(e, t, n) {
n % this.everyLv == 0 && r.LevelContext.Instance.mainPlayer.AddHealth(this.addHp);
};
__decorate([ s() ], t.prototype, "everyLv", void 0);
__decorate([ s() ], t.prototype, "addHp", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnBattleSkillLevelUp", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
Guardian: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a7840A1t1hN15PcF7KkdMoX", "Guardian");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Util"), r = e("./BaseTalentSkill"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.trickCount = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
};
t.prototype.OnStartTalent = function() {
this.trickCount = this.context.talentData.lv;
};
t.prototype.sacrifice = function(e) {
if (this.trickCount > 0 && e.summons.length > 0) {
var t = 1 == e.summons.length ? 0 : o.default.RandomInt(0, e.summons.length - 1);
e.summons[t].node.destroy();
this.trickCount--;
return !0;
}
return !1;
};
t.prototype.OnSave = function() {
return {
t: this.trickCount
};
};
t.prototype.OnLoad = function(e) {
this.trickCount = e.t;
};
return __decorate([ a ], t);
}(r.default));
n.default = l;
cc._RF.pop();
}, {
"../../Util": "Util",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
GunGlyph: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f6337tQNSZLtotaXlrWIBM9", "GunGlyph");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("../../Util"), i = e("./BaseTalentSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.baseCD = 10;
t.bulletNum = 6;
t.hurt = 10;
t.passedTime = 0;
return t;
}
Object.defineProperty(t.prototype, "cd", {
get: function() {
return this.baseCD - (this.context.talentData.lv - 1);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "damageRatio", {
get: function() {
return this.hurt / 100;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return t.weaponSkill.context.getDamageFunc() * n.damageRatio;
};
return [ 2 ];
});
});
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
if (this.passedTime >= this.cd) {
this.passedTime = 0;
this.OnTimeOut();
}
};
t.prototype.OnTimeOut = function() {
for (var e = o.LevelContext.Instance.mainPlayer, t = e.weaponSkill, n = 360 / this.bulletNum, i = 0; i < this.bulletNum; i++) {
var a = t.CreateBullet(r.default.angle2Forward(n * i), e.firePos);
a.damage = Math.max(1, t.context.GetDamage() * this.damageRatio);
a.critable = !1;
}
};
__decorate([ s() ], t.prototype, "baseCD", void 0);
__decorate([ s() ], t.prototype, "bulletNum", void 0);
__decorate([ s() ], t.prototype, "hurt", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
GuoQingConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b1abbsIVcNADpqGM8aTZDNA", "GuoQingConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.GuoQingConfig = n.GuoQingChangeProto = n.GuoQingChangeType = n.GuoQingMissionProto = n.GuoQingMissionType = void 0;
var o;
(function(e) {
e[e.KillEnemyCnt = 0] = "KillEnemyCnt";
e[e.UseCoin = 1] = "UseCoin";
e[e.PassLevel = 2] = "PassLevel";
})(o = n.GuoQingMissionType || (n.GuoQingMissionType = {}));
var r, i = function(e, t, n, o, r) {
this.id = e;
this.type = t;
this.num = n;
this.rewardNum = o;
this.desc = r;
};
n.GuoQingMissionProto = i;
(function(e) {
e[e.Coin = 0] = "Coin";
e[e.Diamond = 1] = "Diamond";
e[e.BluePrint = 2] = "BluePrint";
e[e.Piece = 3] = "Piece";
e[e.EquipmentBluePrint = 4] = "EquipmentBluePrint";
e[e.Mask = 5] = "Mask";
e[e.Wing = 6] = "Wing";
})(r = n.GuoQingChangeType || (n.GuoQingChangeType = {}));
var a = function(e, t, n, o, r, i) {
this.id = e;
this.type = t;
this.x = n;
this.y = o;
this.limite = r;
this.iconPath = i;
};
n.GuoQingChangeProto = a;
var l = function() {
function e() {}
e.GetMissions = function() {
return e.missions;
};
e.GetMission = function(t) {
return e.missions.find(function(e) {
return e.id == t;
});
};
e.GeChanges = function() {
return e.changes;
};
e.GetChange = function(t) {
return e.changes.find(function(e) {
return e.id == t;
});
};
e.SignFengChe = [ 20, 20, 20, 20, 20, 20, 20, 20 ];
e.missions = [ new i(1, o.KillEnemyCnt, 4e3, 30, "击败4000个怪物"), new i(2, o.KillEnemyCnt, 9e3, 30, "击败9000个怪物"), new i(3, o.KillEnemyCnt, 2e4, 40, "击败20000个怪物"), new i(4, o.UseCoin, 5e3, 30, "消耗5000金币"), new i(5, o.UseCoin, 15e3, 30, "消耗15000金币"), new i(6, o.UseCoin, 3e4, 40, "消耗30000金币"), new i(7, o.PassLevel, 1, 40, "通关一次普通关卡") ];
e.changes = [ new a(1, r.Coin, 10, 300, 20, "UI/coin"), new a(2, r.Diamond, 30, 10, 5, "UI/diamond"), new a(3, r.BluePrint, 30, 2, 10, "Unpack/Shop/blueprintwhat"), new a(4, r.Piece, 40, 1, 5, "Unpack/Shop/piecewhat"), new a(5, r.EquipmentBluePrint, 50, 1, 5, "Battle/Texture/Item/EquipBp"), new a(6, r.Mask, 120, 1, 3, "Unpack/Shop/piecewhat2"), new a(7, r.Wing, 120, 1, 3, "Unpack/Shop/piecewhat1") ];
e.WingNeedFengche = 1380;
e.WingID = 2;
return e;
}();
n.GuoQingConfig = l;
cc._RF.pop();
}, {} ],
GuoQingMissionData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9fa41mFiglBxan1J7Dmf5OH", "GuoQingMissionData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.GuoQingMissionData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("./GuoQingConfig"), i = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.value_ = 0;
t.unlock_ = !1;
t.isGetReward = !1;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "value", {
get: function() {
return this.value_;
},
set: function(e) {
if (!this.unlock) {
this.value_ = e;
this.value >= this.proto.num && (this.unlock = !0);
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "unlock", {
get: function() {
return this.unlock_;
},
set: function(e) {
this.unlock_ = e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = r.GuoQingConfig.GetMission(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "value_", void 0);
__decorate([ o.SerializeField("c") ], t.prototype, "unlock_", void 0);
__decorate([ o.SerializeField("d") ], t.prototype, "isGetReward", void 0);
return t;
}(o.default);
n.GuoQingMissionData = i;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"./GuoQingConfig": "GuoQingConfig"
} ],
GuoQingModel: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9aee5amreNGZ53SrrfRCTy9", "GuoQingModel");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../../Framework/Utility/DailyValue"), i = e("../../Service/Timer"), a = e("../Messaging/MessageBroadcastReceiver"), l = e("./Config"), s = e("./GuoQingConfig"), c = e("./GuoQingMissionData"), u = e("./SafeBool"), p = e("./SafeInt"), d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.fengche = new p.default(0);
t.signCnt = new p.default(0);
t.isSign = new r.DailyValue(0);
t.missionList = new Array();
t.isDailyInit = new r.DailyValue(0);
t.changeCount = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];
t.totalFengche = new p.default(0);
t.isGetWing = new u.default(!1);
return t;
}
n = t;
t.prototype.OnConstructor = function() {};
t.prototype.Initialize = function() {
this.Init();
};
t.prototype.Init = function() {
var e = this;
n.Instance = this;
a.AddBroadcastReceiver(this);
this.InitDailyMission(0 == this.isDailyInit.value);
i.default.RepeatRun(10, -1, function() {
0 == e.isDailyInit.value && e.InitDailyMission(!0);
});
};
t.prototype.InitDailyMission = function(e) {
if (e) {
this.missionList.splice(0, this.missionList.length);
this.changeCount = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];
}
0 == this.missionList.length && (this.isDailyInit.value = 1);
for (var t = this.missionList.length - 1; t >= 0; t--) {
var n = this.missionList[t];
s.GuoQingConfig.GetMission(n.id) || this.missionList.splice(t, 1);
}
var o = s.GuoQingConfig.GetMissions();
for (t = 0; t < o.length; t++) {
var r = o[t];
if (!this.GetMission(r.id)) {
var i = new c.GuoQingMissionData();
i.id = r.id;
var a = this.GetMaxMissionValue(i.proto);
a && (i.value = a.value);
this.missionList.push(i);
}
}
};
t.prototype.GetMaxMissionValue = function(e) {
var t = null;
if (e) for (var n = 0; n < this.missionList.length; n++) {
var o = this.missionList[n];
o.proto && o.proto.type == e.type && (!t || t.value < o.value) && (t = o);
}
return t;
};
t.prototype.GetMission = function(e) {
return this.missionList.find(function(t) {
return t.id == e;
});
};
t.prototype.HandleMission = function(e, t) {
this.missionList.forEach(function(n) {
n.proto && n.proto.type == e && t(n);
});
};
t.prototype.OnKillEnemy = function() {
this.HandleMission(s.GuoQingMissionType.KillEnemyCnt, function(e) {
e.value++;
});
};
t.prototype.OnBattleResult = function(e, t, n, o) {
n && o == l.BattleMode.Level && this.HandleMission(s.GuoQingMissionType.PassLevel, function(e) {
e.value++;
});
};
t.prototype.OnUseCoin = function(e) {
e > 0 && this.HandleMission(s.GuoQingMissionType.UseCoin, function(t) {
t.value += e;
});
};
t.prototype.AddFengche = function(e) {
this.fengche.intValue += e;
e > 0 && (this.totalFengche.intValue += e);
};
var n;
t.Instance = null;
__decorate([ o.SerializeField("a", p.default) ], t.prototype, "fengche", void 0);
__decorate([ o.SerializeField("b", p.default) ], t.prototype, "signCnt", void 0);
__decorate([ o.SerializeField("c", r.DailyValue) ], t.prototype, "isSign", void 0);
__decorate([ o.SerializeField("d", c.GuoQingMissionData) ], t.prototype, "missionList", void 0);
__decorate([ o.SerializeField("e", r.DailyValue) ], t.prototype, "isDailyInit", void 0);
__decorate([ o.SerializeField("f") ], t.prototype, "changeCount", void 0);
__decorate([ o.SerializeField("g", p.default) ], t.prototype, "totalFengche", void 0);
__decorate([ o.SerializeField("h", u.default) ], t.prototype, "isGetWing", void 0);
__decorate([ a.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnBattleResult", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnUseCoin", null);
return n = __decorate([ o.SerializeClass("gc") ], t);
}(o.default);
n.default = d;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../../Framework/Utility/DailyValue": void 0,
"../../Service/Timer": void 0,
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./Config": "Config",
"./GuoQingConfig": "GuoQingConfig",
"./GuoQingMissionData": "GuoQingMissionData",
"./SafeBool": "SafeBool",
"./SafeInt": "SafeInt"
} ],
HallUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a26ff7BCd5JxK+tu7hXSZFI", "HallUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Core/Views/ViewUIManager"), l = e("../../Framework/Localize/LocalizeManager"), s = e("../../Framework/UI/MessageBoxUI"), c = e("../../Framework/UI/PromptUI"), u = e("../../Service/AccountManager"), p = e("../../Service/IPlatformProxy"), d = e("../../Service/PlatformService"), f = e("../../Service/RemoteSetting"), h = e("../../Framework/Core/Resource/MyComponent"), m = e("../Config/ArchivementConfig"), w = e("../Config/Config"), y = e("../Config/GameModel"), g = e("../Config/GiftConfig"), v = e("../Config/LevelConfig"), S = e("../Config/WeaponConfig"), M = e("../Config/WeaponData"), k = e("./CollectionUI"), C = e("./CopyLevelUI"), P = e("./FeedbackUI"), _ = e("./GiftUI"), O = e("./LeaderboardUI"), b = e("./LevelUI"), F = e("./LoginUI"), I = e("./MailUI"), E = e("./MissionUI"), D = e("./NoticeUI"), R = e("./RewardsUI"), L = e("./ShareAssistUI"), B = e("./ShopUI"), U = e("./TalentUI"), T = e("./WeaponUI"), x = e("../../../Privacy/Script/PrivacyEnUI"), V = e("../../../Privacy/Script/PrivacyUI"), A = e("./FirstChargePackUI"), N = e("./SettingUI"), G = e("../Config/ShopConfig"), H = e("./ChapterPackUI"), W = e("./FashionPackUI"), j = e("./HalloweenPackUI"), q = cc._decorator, z = q.ccclass, X = q.property, Z = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.verLabel = null;
t.coinLabel = null;
t.diamondLabel = null;
t.rankNode = null;
t.noticeNode = null;
t.privacyPrefab = null;
t.bg = null;
t.mainBtns = null;
t.shopBtn = null;
t.feedbackBtn = null;
t.copyLevelBtn = null;
t.bottomHideBar = null;
t.firstChargeBtn = null;
t.halloweenBtn = null;
t.fashionPackBtn = null;
t.chapterPackBtn = null;
t.runCnt = 0;
return t;
}
t.prototype.update = function() {
this.coinLabel.string = y.default.Instance.coin.intValue.toFixed(0);
this.diamondLabel.string = y.default.Instance.diamond.intValue.toFixed(0);
if (this.firstChargeBtn.active) {
this.firstChargeBtn.active = A.default.leftTime > 0;
this.firstChargeBtn.active || this.UpdateUI();
}
};
t.prototype.onEnable = function() {
cc.systemEvent.setAccelerometerEnabled(!0);
cc.systemEvent.on(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
};
t.prototype.onDisable = function() {
cc.systemEvent.off(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
cc.systemEvent.setAccelerometerEnabled(!1);
};
t.prototype.onDeviceMotionEvent = function(e) {
var t = .5 * (cc.view.getVisibleSize().width - this.bg.width);
if (!(t >= 0)) {
var n = e.acc.x;
this.bg.x = Math.clamp(this.bg.x + n, t, -t);
}
};
t.prototype.OnSetParams = function() {
var e = this;
h.MyComponent.TimeScale = 1;
this.UpdateUI();
this.scheduleOnce(function() {
e.ShowBottomHideBar(!1, !1);
}, .01);
if (0 == this.runCnt) {
this.runCnt++;
this.CheckProcessSave();
this.CheckInvalidUser();
}
I.default.OnlyRequestMail();
};
t.prototype.UpdateUI = function() {
this.verLabel.string = f.default.version;
this.shopBtn.active = (d.default.payable || y.default.Instance.GetLevel(3).unlock) && y.default.Instance.battleCnt >= 1;
this.feedbackBtn.active = f.default.Get("showFeedback", !0);
this.copyLevelBtn.active = y.default.Instance.GetLevel(3).unlock;
this.chapterPackBtn.active = d.default.payable && y.default.Instance.validChapterPackCnt > 0;
var e = G.ShopConfig.GetPackData(G.ShopItemType.NewbiePack), t = y.default.Instance.GetWeapon(e.weapon.id), n = t.unlock.boolValue && t.classLevel.intValue >= e.weapon.classLevel;
this.firstChargeBtn.active = d.default.payable && !n && y.default.Instance.battleCnt >= 1 && A.default.leftTime > 0;
var o = G.ShopConfig.GetPackData(G.ShopItemType.FashionPack), r = y.default.Instance.GetEquipment(o.equipmentId).unlock.boolValue;
this.fashionPackBtn.active = !this.firstChargeBtn.active && d.default.payable && !r && y.default.Instance.battleCnt >= 1;
var i = G.ShopConfig.GetPackData(G.ShopItemType.HallweenPack), a = y.default.Instance.GetEquipment(i.equipmentId1), l = y.default.Instance.GetEquipment(i.equipmentId2), s = a.unlock.boolValue || l.unlock.boolValue;
this.halloweenBtn.active = d.default.payable && !s && y.default.Instance.battleCnt >= 1;
};
t.prototype.CheckInvalidUser = function() {
if (!d.default.isValidUser) {
this.shopBtn.parent.active = !1;
this.mainBtns.active = !1;
for (var e = 0; e < this.feedbackBtn.parent.children.length; e++) {
var t = this.feedbackBtn.parent.children[e];
t.active = this.feedbackBtn == t;
}
}
};
t.prototype.OnItemClick = function() {
a.default.ShowView(U.default);
};
t.prototype.OnLevelClick = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
return 0 != y.default.Instance.battleCnt ? [ 3, 2 ] : [ 4, b.default.EnterBattle(y.default.Instance.heroList[0], y.default.Instance.weaponList[0], v.LevelConfig.levels[0]) ];

case 1:
e.sent();
this.HideView();
return [ 3, 3 ];

case 2:
a.default.ShowView(b.default);
e.label = 3;

case 3:
return [ 2 ];
}
});
});
};
t.prototype.OnCollectionClick = function() {
a.default.ShowView(k.default);
};
t.prototype.OnAchievementClick = function() {
a.default.ShowView(E.default);
};
t.prototype.OnSettingClick = function() {
a.default.ShowView(N.default);
};
t.prototype.OnRankClick = function() {
u.default.hasUserInfo ? a.default.ShowView(O.default) : a.default.ShowView(F.default, "获取玩家信息，更新排行榜?", function() {
a.default.ShowView(O.default);
}, function() {
c.default.Show("请打开权限：设置->用户信息");
});
};
t.prototype.OnPrivacyClick = function() {
d.default.platformType == p.PlatformType.Android_Ohayoo || d.default.platformType == p.PlatformType.Android_Momoyu ? jsb.reflection.callStaticMethod("com/kola/NativeManager", "showMoreGame", "()V") : l.default.Language == u.LanguageType.EN ? a.default.ShowView(x.default, !0) : a.default.ShowView(V.default, !0);
};
t.prototype.OnTTAddShortcut = function() {
if (!y.default.Instance.ttGotShortcutReward) {
y.default.Instance.ttGotShortcutReward = !0;
R.default.ShowView("桌面快捷", [ new g.RewardProto(m.UnlockType.Coin, w.Config.AwemeRewardCoins) ]);
}
};
t.prototype.OnShareAssistClick = function() {
a.default.ShowView(L.default);
};
t.prototype.OnNoticeClick = function() {
D.default.Show();
};
t.prototype.OnSevenDayClick = function() {
a.default.ShowView(_.default, _.GiftType.SevenDay);
};
t.prototype.OnCopyLevelClick = function() {
a.default.ShowView(C.default);
};
t.prototype.OnShopClick = function() {
a.default.ShowView(B.default, null);
};
t.prototype.OnFeedbackClick = function() {
a.default.ShowView(P.default);
};
t.prototype.OnMailClick = function() {
a.default.ShowView(I.default);
};
t.prototype.OnWeaponClick = function() {
a.default.ShowView(T.default);
};
t.prototype.OnShouchongClick = function() {
a.default.ShowView(A.default);
};
t.prototype.OnFashionPackClick = function() {
a.default.ShowView(W.default);
};
t.prototype.OnBottomHideBarOpenClick = function() {
this.ShowBottomHideBar(!0, !0);
};
t.prototype.OnBottomHideBarCloseClick = function() {
this.ShowBottomHideBar(!1, !0);
};
t.prototype.OnChapterPackClick = function() {
a.default.ShowView(H.default);
};
t.prototype.OnHalloweenPackClick = function() {
a.default.ShowView(j.default);
};
t.prototype.ShowBottomHideBar = function(e, t) {
var n = this.bottomHideBar.findChild("Open"), o = this.bottomHideBar.findChild("Close");
if (t) {
n.active = !1;
o.active = !1;
e ? cc.tween(this.bottomHideBar).to(.2, {
position: cc.v3(.5 * this.node.width - this.bottomHideBar.width, this.bottomHideBar.y, 0)
}, {
easing: "sineIn"
}).call(function() {
o.active = !0;
o.opacity = 0;
cc.tween(o).to(.2, {
opacity: 255
}).start();
}).start() : cc.tween(this.bottomHideBar).to(.2, {
position: cc.v3(.5 * this.node.width, this.bottomHideBar.y, 0)
}, {
easing: "sineOut"
}).call(function() {
n.active = !0;
n.opacity = 0;
cc.tween(n).to(.2, {
opacity: 255
}).start();
}).start();
} else {
n.active = !e;
o.active = e;
this.bottomHideBar.x = .5 * this.node.width + (e ? -this.bottomHideBar.width : 0);
}
};
t.prototype.CheckProcessSave = function() {
var e = f.default.Get("canSaveProcess", !1) || d.default.platformType == p.PlatformType.Empty, t = y.default.Instance.processSaveData;
if (e && t && t.playerHp > 0) {
a.default.HideView(D.default);
s.default.ShowConfirmCancel("提示", "是否继续上次游戏存档？\n（关卡最多19分钟，无尽最多30分钟）", function() {
var e = y.default.Instance, n = t.selectedHeroId && t.selectedHeroId > 0 ? t.selectedHeroId : e.selectedHeroId, o = null;
if (t.weaponData) {
(o = new M.WeaponData(S.WeaponConfig.GetWeapon(t.weaponData.id))).classLevel.intValue = t.weaponData.classLevel;
o.level.intValue = t.weaponData.level;
} else {
var r = t.selectedWeaponId && t.selectedWeaponId > 0 ? t.selectedWeaponId : e.selectedWeaponId;
o = e.GetWeapon(r);
}
b.default.EnterBattle(e.GetHero(n), o, v.LevelConfig.GetLevel(t.curLevel), !1, function() {}, t.battleMode);
}, function() {
y.default.Instance.processSaveData = null;
y.default.SaveProgress();
});
} else y.default.Instance.processSaveData = null;
};
__decorate([ X(cc.Label) ], t.prototype, "verLabel", void 0);
__decorate([ X(cc.Label) ], t.prototype, "coinLabel", void 0);
__decorate([ X(cc.Label) ], t.prototype, "diamondLabel", void 0);
__decorate([ X(cc.Node) ], t.prototype, "rankNode", void 0);
__decorate([ X(cc.Node) ], t.prototype, "noticeNode", void 0);
__decorate([ X(cc.Prefab) ], t.prototype, "privacyPrefab", void 0);
__decorate([ X(cc.Node) ], t.prototype, "bg", void 0);
__decorate([ X(cc.Node) ], t.prototype, "mainBtns", void 0);
__decorate([ X(cc.Node) ], t.prototype, "shopBtn", void 0);
__decorate([ X(cc.Node) ], t.prototype, "feedbackBtn", void 0);
__decorate([ X(cc.Node) ], t.prototype, "copyLevelBtn", void 0);
__decorate([ X(cc.Node) ], t.prototype, "bottomHideBar", void 0);
__decorate([ X(cc.Node) ], t.prototype, "firstChargeBtn", void 0);
__decorate([ X(cc.Node) ], t.prototype, "halloweenBtn", void 0);
__decorate([ X(cc.Node) ], t.prototype, "fashionPackBtn", void 0);
__decorate([ X(cc.Node) ], t.prototype, "chapterPackBtn", void 0);
return __decorate([ z, o.RegisterView("HallUI", r.ViewLayer.NormalLayer, r.ViewShowRule.HideAllView, r.ViewHideRule.SaveToStack) ], t);
}(i.default);
n.default = Z;
cc._RF.pop();
}, {
"../../../Privacy/Script/PrivacyEnUI": void 0,
"../../../Privacy/Script/PrivacyUI": void 0,
"../../Framework/Core/Resource/MyComponent": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Framework/UI/MessageBoxUI": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/AccountManager": void 0,
"../../Service/IPlatformProxy": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"../Config/LevelConfig": "LevelConfig",
"../Config/ShopConfig": "ShopConfig",
"../Config/WeaponConfig": "WeaponConfig",
"../Config/WeaponData": "WeaponData",
"./ChapterPackUI": "ChapterPackUI",
"./CollectionUI": "CollectionUI",
"./CopyLevelUI": "CopyLevelUI",
"./FashionPackUI": "FashionPackUI",
"./FeedbackUI": "FeedbackUI",
"./FirstChargePackUI": "FirstChargePackUI",
"./GiftUI": "GiftUI",
"./HalloweenPackUI": "HalloweenPackUI",
"./LeaderboardUI": "LeaderboardUI",
"./LevelUI": "LevelUI",
"./LoginUI": "LoginUI",
"./MailUI": "MailUI",
"./MissionUI": "MissionUI",
"./NoticeUI": "NoticeUI",
"./RewardsUI": "RewardsUI",
"./SettingUI": "SettingUI",
"./ShareAssistUI": "ShareAssistUI",
"./ShopUI": "ShopUI",
"./TalentUI": "TalentUI",
"./WeaponUI": "WeaponUI"
} ],
HalloweenPackUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "27085fabGlDkqQsjYERqsbN", "HalloweenPackUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Localize/LocalizeManager"), l = e("../../Service/RemoteSetting"), s = e("../Config/ShopConfig"), c = e("./MyPayButton"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.goldLabel = null;
t.btn = null;
return t;
}
t.prototype.onLoad = function() {
var e = s.ShopConfig.GetPackData(s.ShopItemType.HallweenPack), t = this.btn.getComponent(c.default);
t.payId = e.moneyIndex + "";
t.productName = s.ShopItemName[e.type];
};
t.prototype.OnSetParams = function() {
var e = s.ShopConfig.GetPackData(s.ShopItemType.HallweenPack), t = l.default.GetPayItem(e.moneyIndex + "");
t && t.price > 0 ? this.goldLabel.string = a.TXT("金币") + " x" + (t ? t.count : e.num) : this.HideView();
};
__decorate([ d(cc.Label) ], t.prototype, "goldLabel", void 0);
__decorate([ d(cc.Node) ], t.prototype, "btn", void 0);
return __decorate([ p, o.RegisterView("HalloweenPackUI", r.ViewLayer.PopupLayer, r.ViewShowRule.HideAllView) ], t);
}(i.default);
n.default = f;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Service/RemoteSetting": void 0,
"../Config/ShopConfig": "ShopConfig",
"./MyPayButton": "MyPayButton"
} ],
HanBingFoMo2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c9bcfm7evlJ678wM6WQcdgH", "HanBingFoMo2");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.incBuffRatio = 2;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IncreaseBuffRatio = this.incBuffRatio;
n.IsActive = !0;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IncreaseBuffRatio = 0;
n.IsActive = !1;
};
var n;
t.IncreaseBuffRatio = 0;
t.IsActive = !1;
__decorate([ a() ], t.prototype, "incBuffRatio", void 0);
return n = __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
HanBingFoMo: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "82a29WduW1Ncaa09+/QWjbW", "HanBingFoMo");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.HBFMContext = void 0;
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../BaseSkill"), i = e("../SkillContext"), a = e("./HanBingFoMo2"), l = cc._decorator, s = l.ccclass, c = (l.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bullet = null;
return t;
}
t.prototype.CalcBuffRatio = function(e) {
return e * Math.max(0, 1 - this.GetBulletBuffDescPercent());
};
t.prototype.CalcBuffTime = function(e) {
return e * Math.max(0, 1 - this.GetBulletBuffDescPercent());
};
t.prototype.GetBulletBuffDescPercent = function() {
if (!this.bullet) return 0;
var e = 0;
e += this.bullet.isThroughTarget ? this.bullet.hittedCount : 0;
return (10 * (e += this.bullet.bounceCount) + this.bullet.buffDescPercent) / 100;
};
return t;
}(i.default));
n.HBFMContext = c;
var u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.initBuffRatio = 0;
t.context = new c();
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
this.initBuffRatio = this.buffRatio;
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
this.buffRatio = this.initBuffRatio;
};
t.prototype.OnHitEntity = function(e) {
e.target;
if (e.target && e.context.owner == this.context.owner && e.context.isBulletSkill) {
this.context.bullet = e.bullet;
this.buffRatio = this.initBuffRatio + (a.default.IsActive ? a.default.IncreaseBuffRatio : 0);
this.context.TryBuff(e.target);
}
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ s ], t);
}(r.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill",
"../SkillContext": "SkillContext",
"./HanBingFoMo2": "HanBingFoMo2"
} ],
HanBingSuiPian: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "123datg8HJBqp87DFddjEcs", "HanBingSuiPian");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../BulletSkill"), i = e("../BulletSkill_Multi"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnPlayerFireBullet = function(e) {
0 == e.bulletNum && e.weaponSkill instanceof r.default && this.Trigger();
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnPlayerFireBullet", null);
return __decorate([ l ], t);
}(i.default));
n.default = s;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BulletSkill": "BulletSkill",
"../BulletSkill_Multi": "BulletSkill_Multi"
} ],
Healing: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "52182o4kK1AvZHQU9v37xwh", "Healing");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("./BaseTalentSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.basePerKill = 1500;
t.reducePerLv = 100;
t.addHp = 1;
t.killCnt = 0;
t.perKill = t.basePerKill;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnStartTalent = function() {
this.killCnt = 0;
this.perKill = this.basePerKill - (this.context.talentData.lv - 1) * this.reducePerLv;
};
t.prototype.OnKillEnemy = function() {
this.killCnt++;
if (this.killCnt % this.perKill == 0) {
this.killCnt = 0;
r.LevelContext.Instance.mainPlayer.AddHealth(this.addHp);
}
};
t.prototype.OnSave = function() {
return {
t: this.killCnt
};
};
t.prototype.OnLoad = function(e) {
this.killCnt = e.t;
};
__decorate([ s() ], t.prototype, "basePerKill", void 0);
__decorate([ s() ], t.prototype, "reducePerLv", void 0);
__decorate([ s() ], t.prototype, "addHp", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
HeroConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b805flmRehEBa6vRYvcv92q", "HeroConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.HeroConfig = n.HeroProto = void 0;
var o = e("./SkillConfig"), r = function() {
function e(e, t, n, o, r, i, a, l, s, c, u, p) {
this.id = e;
this.name = t;
this.desc = n;
this.icon_ = o;
this.price = r;
this.health = i;
this.speed = a;
this.resPath_ = l;
this.headIcon_ = s;
this.activeSkillCnt = c;
this.passitiveSkillCnt = u;
this.featureSkill = p;
}
Object.defineProperty(e.prototype, "icon", {
get: function() {
return "Unpack/Hero/" + this.icon_;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "headIcon", {
get: function() {
return "Unpack/Hero/" + this.headIcon_;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "resPath", {
get: function() {
return "Prefabs/Hero/" + this.resPath_;
},
enumerable: !1,
configurable: !0
});
e.prototype.GetLevelExp = function(e) {
return i.levelupExp[Math.clamp(e - 1, 0, i.levelupExp.length - 1)];
};
return e;
}();
n.HeroProto = r;
var i = function() {
function e() {}
e.GetHeroes = function() {
return e.heroes;
};
e.GetHero = function(t) {
return e.heroes.find(function(e) {
return e.id == t;
});
};
e.GetHeroBySkillId = function(t) {
for (var n = 0; n < e.heroes.length; n++) {
var o = e.heroes[n];
if (o.featureSkill && o.featureSkill.id == t) return o;
}
return null;
};
e.DeathId = 9;
e.levelupExp = [ 0, 55, 135, 215, 318, 420, 520, 630, 740, 850, 960, 1070, 1180, 1290, 1430, 1570, 1700, 1830, 1960, 2110, 2260, 2410, 2560, 2710, 2880, 3050, 3220, 3390, 3560, 3760, 3960, 4160, 4360, 4560, 4810, 5060, 5310, 5560, 5810, 6110, 6410, 6710, 7010, 7310, 7810, 8310, 8810, 9310, 9810, 10310, 10910, 11510, 12110, 12710, 13310, 14010, 14710, 15410, 16110, 16810, 17610, 18410, 2e4, 3e4, 5e4 ];
e.heroes = [ new r(1, "艾达", "神秘的美女特工", "Ada_Show", 0, 4, 150, "Ada/Ada", "Ada_Show", 5, 5), new r(2, "里昂", "艾达男友，每3次射击发射一个火球，对敌人每秒造成3点燃烧伤害", "Lion_Show", 500, 3, 150, "Lion/Lion", "Lion_Show", 5, 5, new o.SkillProto(2002, 1, 0, o.SkillType.Other, "里昂", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Hero/Lion/FeatureSkill")), new r(3, "爱丽丝", "克隆人，当敌人死亡后，发射一枚骷髅子弹追踪附近敌人，造成5点伤害", "Alice_Show", 3200, 3, 150, "Alice/Alice", "Alice_Show", 5, 5, new o.SkillProto(3002, 1, 0, o.SkillType.Other, "爱丽丝", "", "", "", 0, 5, 0, 0, 0, "Prefabs/Hero/Alice/FeatureSkill")), new r(4, "威斯克", "艾达同事，发射的子弹击中目标时追加3点电击伤害", "Wix_Show", 6800, 3, 150, "Wix/Wix", "Wix_Show", 5, 5, new o.SkillProto(4002, 1, 0, o.SkillType.Lightning, "威斯克", "", "", "", 0, 3, 0, 0, 0, "Prefabs/Hero/Wix/FeatureSkill")), new r(5, "代号:2C", "量产型人工智能，冲刺后留下幻影并挥舞巨剑对附近敌人产生子弹同等伤害", "2B_Show", 6800, 3, 150, "B2/B2", "2B_Show", 5, 5, new o.SkillProto(5002, 1, 0, o.SkillType.Lightning, "代号:2C", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Hero/B2/FeatureSkill")) ];
return e;
}();
n.HeroConfig = i;
cc._RF.pop();
}, {
"./SkillConfig": "SkillConfig"
} ],
HeroData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "6a1faTf9EtDLbkeD1IIPXSP", "HeroData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.HeroData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../../Service/Analys"), i = e("./HeroConfig"), a = e("./SafeBool"), l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.unlock = new a.default(!1);
t.level = 1;
t.visible = !0;
t.fragment = 0;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = i.HeroConfig.GetHero(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
t.prototype.Unlock = function(e) {
this.unlock.boolValue = !0;
r.default.LogModifyItem(e, null, this.proto.name, 1);
};
t.Clone = function(e) {
var n = new t();
n.id = e.id;
n.unlock.boolValue = e.unlock.boolValue;
n.level = e.level;
n.visible = e.visible;
n.fragment = e.fragment;
n.proto;
return n;
};
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b", a.default) ], t.prototype, "unlock", void 0);
__decorate([ o.SerializeField("c") ], t.prototype, "level", void 0);
__decorate([ o.SerializeField("e") ], t.prototype, "visible", void 0);
__decorate([ o.SerializeField("f") ], t.prototype, "fragment", void 0);
return t;
}(o.default);
n.HeroData = l;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../../Service/Analys": void 0,
"./HeroConfig": "HeroConfig",
"./SafeBool": "SafeBool"
} ],
HeroUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3f93aqLX+pJnZmw39E1ZnQn", "HeroUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Core/Views/ViewUIManager"), l = e("../../Framework/UI/PromptUI"), s = e("../Battle/Util"), c = e("../Config/ArchivementConfig"), u = e("../Config/Config"), p = e("../Config/GameModel"), d = e("../Config/GiftConfig"), f = e("../Config/LevelConfig"), h = e("./FreeCoinsUI"), m = e("./LevelUI"), w = e("./RewardsUI"), y = e("./WeaponInfoUI"), g = e("./WeaponUI"), v = cc._decorator, S = v.ccclass, M = v.property, k = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.heroContent = null;
t.curHeroSprite = null;
t.curHeroNode = null;
t.curHeroName = null;
t.curHeroHP = null;
t.curHeroDesc = null;
t.curHeroCoin = null;
t.curHeroBtn = null;
t.weaponScrollView = null;
t.weaponInfoUI = null;
t.weaponContent = null;
t.coinLabel = null;
t.startBtn = null;
t.weaponBtn = null;
t.curHero = null;
t.curWeapon = null;
t.mode = u.BattleMode.Level;
t.levelProto = null;
t.lock = !1;
t.weaponList = new Array();
return t;
}
t.prototype.update = function() {
this.coinLabel.string = p.default.Instance.coin.intValue.toFixed(0);
};
t.prototype.onDisable = function() {
this.curHeroNode.destroyAllChildren();
};
t.prototype.OnSetParams = function(e, t) {
var n = this, o = p.default.Instance;
this.curHero = o.GetHero(o.selectedHeroId);
this.curWeapon = o.GetWeapon(o.selectedWeaponId);
this.mode = e;
this.levelProto = t;
this.lock = !1;
this.weaponList.clear();
for (var r = 0; r < p.default.Instance.weaponList.length; r++) {
var i = p.default.Instance.weaponList[r];
i && i.unlock.boolValue && this.weaponList.push(i);
}
this.UpdateHeroList();
this.UpdateWeaponList();
this.scheduleOnce(function() {
n.weaponScrollView.scrollTo(cc.v2(n.weaponList.indexOf(n.curWeapon) / (n.weaponList.length - 1), 0));
}, .01);
};
t.prototype.OnHeroItemClick = function(e) {
var t = Number.parseInt(e.target.name);
this.curHero = p.default.Instance.GetHero(t);
this.UpdateCurItem();
};
t.prototype.OnWeaponItemClick = function(e) {
var t = Number.parseInt(e.target.name);
this.curWeapon = p.default.Instance.GetWeapon(t);
this.UpdateCurWeapon();
};
t.prototype.OnMoreWeaponClick = function() {
a.default.ShowView(g.default);
};
t.prototype.OnHeroBuyClick = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function(t) {
switch (t.label) {
case 0:
if ((e = p.default.Instance).coin.intValue < this.curHero.proto.price) {
p.default.Instance.dailyAdFreeCoinsCnt.value > 0 ? a.default.ShowView(h.default) : l.default.Show("金币不足");
return [ 2 ];
}
this.broadcastMessage("OnHeroBuy", this.curHero.id);
e.AddCoin(-this.curHero.proto.price, "购买英雄");
w.default.ShowView("购买英雄", [ new d.RewardProto(c.UnlockType.Hero, 1, this.curHero.proto.id) ]);
return [ 4, a.default.UntilHide(w.default) ];

case 1:
t.sent();
this.UpdateHeroList();
return [ 2 ];
}
});
});
};
t.prototype.OnConfirmClick = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
if (this.lock) return [ 2 ];
this.lock = !0;
(e = p.default.Instance).selectedHeroId = this.curHero.id;
e.selectedWeaponId = this.curWeapon.id;
switch (this.mode) {
case u.BattleMode.Fragment1:
case u.BattleMode.Fragment2:
case u.BattleMode.Fragment3:
return [ 3, 1 ];

case u.BattleMode.Endless:
return [ 3, 3 ];
}
return [ 3, 5 ];

case 1:
t = f.LevelConfig.FragmentLevelId[this.mode - u.BattleMode.Fragment1];
p.default.Instance.fragmentLevelCount.value++;
return [ 4, m.default.EnterBattle(this.curHero, this.curWeapon, f.LevelConfig.GetLevel(t), !1, null, this.mode) ];

case 2:
n.sent();
return [ 3, 7 ];

case 3:
return [ 4, m.default.EnterBattle(this.curHero, this.curWeapon, f.LevelConfig.GetLevel(f.LevelConfig.EndlessLevelId), !1, null, this.mode) ];

case 4:
n.sent();
return [ 3, 7 ];

case 5:
return [ 4, m.default.EnterBattle(this.curHero, this.curWeapon, this.levelProto, !1, null, this.mode) ];

case 6:
n.sent();
return [ 3, 7 ];

case 7:
this.HideView();
this.lock = !1;
return [ 2 ];
}
});
});
};
t.prototype.UpdateHeroList = function() {
for (var e = p.default.Instance.heroList, t = function(t) {
var o = e[t], r = s.default.GetOrCreateChild(t, n.heroContent);
r.active = o.visible;
if (!o) return "continue";
r.name = o.id.toFixed(0);
var i = r.findChild("HeroIcon"), a = o.unlock.boolValue ? cc.Color.WHITE : cc.Color.BLACK;
i.color = a;
s.default.SetImage(o.proto.icon, i.getComponent(cc.Sprite));
if (n.curHero == o || null == n.curHero && 0 == t) {
n.scheduleOnce(function() {
r.getComponent(cc.Toggle).check();
}, .05);
n.curHero = o;
n.UpdateCurItem();
}
}, n = this, o = 0; o < e.length; o++) t(o);
};
t.prototype.UpdateWeaponList = function() {
this.weaponBtn.parent = this.node;
for (var e = this.weaponList, t = 0, n = function(n) {
var r = e[n], i = s.default.GetOrCreateChild(t++, o.weaponContent);
i.name = r.id.toFixed(0);
var a = i.findChild("icon"), l = r.unlock.boolValue ? cc.Color.WHITE : cc.Color.BLACK;
a.color = l;
i.findChild("Lock").active = !r.unlock.boolValue;
s.default.SetImage(r.iconPath, a.getComponent(cc.Sprite));
if (o.curWeapon == r || null == o.curWeapon && 0 == n) {
o.scheduleOnce(function() {
i.getComponent(cc.Toggle).check();
}, .05);
o.curWeapon = r;
o.UpdateCurWeapon();
}
}, o = this, r = 0; r < e.length; r++) n(r);
this.weaponBtn.parent = this.weaponContent;
};
t.prototype.UpdateCurItem = function() {
this.curHeroName.string = this.curHero.proto.name;
this.curHeroDesc.string = this.curHero.proto.desc;
this.curHeroHP.string = this.curHero.proto.health + "";
this.curHeroNode.destroyAllChildren();
this.curHeroSprite.node.active = !this.curHero.unlock.boolValue;
if (this.curHero.unlock.boolValue) y.default.UpdateHeroNode(this.curHeroNode, this.curHero, this.curWeapon); else {
s.default.SetImage(this.curHero.proto.icon, this.curHeroSprite);
this.curHeroSprite.node.color = cc.Color.BLACK;
}
var e = p.default.Instance.heroList.indexOf(this.curHero), t = null;
e > 0 && (t = p.default.Instance.heroList[e - 1]);
this.curHeroCoin.string = this.curHero.proto.price.toFixed(0);
this.curHeroBtn.active = !this.curHero.unlock.boolValue && (null == t || t.unlock.boolValue);
this.startBtn.active = this.curHero.unlock.boolValue && this.curWeapon.unlock.boolValue;
};
t.prototype.UpdateCurWeapon = function() {
this.weaponInfoUI.Update(this.curWeapon);
y.default.UpdateHeroNode(this.curHeroNode, this.curHero, this.curWeapon);
};
__decorate([ M(cc.Node) ], t.prototype, "heroContent", void 0);
__decorate([ M(cc.Sprite) ], t.prototype, "curHeroSprite", void 0);
__decorate([ M(cc.Node) ], t.prototype, "curHeroNode", void 0);
__decorate([ M(cc.Label) ], t.prototype, "curHeroName", void 0);
__decorate([ M(cc.Label) ], t.prototype, "curHeroHP", void 0);
__decorate([ M(cc.RichText) ], t.prototype, "curHeroDesc", void 0);
__decorate([ M(cc.Label) ], t.prototype, "curHeroCoin", void 0);
__decorate([ M(cc.Node) ], t.prototype, "curHeroBtn", void 0);
__decorate([ M(cc.ScrollView) ], t.prototype, "weaponScrollView", void 0);
__decorate([ M(y.default) ], t.prototype, "weaponInfoUI", void 0);
__decorate([ M(cc.Node) ], t.prototype, "weaponContent", void 0);
__decorate([ M(cc.Label) ], t.prototype, "coinLabel", void 0);
__decorate([ M(cc.Node) ], t.prototype, "startBtn", void 0);
__decorate([ M(cc.Node) ], t.prototype, "weaponBtn", void 0);
return __decorate([ S, o.RegisterView("HeroUI", r.ViewLayer.NormalLayer, r.ViewShowRule.HideSameLayerView) ], t);
}(i.default);
n.default = k;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/PromptUI": void 0,
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"../Config/LevelConfig": "LevelConfig",
"./FreeCoinsUI": "FreeCoinsUI",
"./LevelUI": "LevelUI",
"./RewardsUI": "RewardsUI",
"./WeaponInfoUI": "WeaponInfoUI",
"./WeaponUI": "WeaponUI"
} ],
HitMask: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3348a2FyBZM2rbKK3ogVRb+", "HitMask");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.HitMask = void 0;
(function(e) {
e[e.Black = 1] = "Black";
e[e.White = 2] = "White";
e[e.All = 65535] = "All";
e[e.None = 0] = "None";
})(n.HitMask || (n.HitMask = {}));
cc._RF.pop();
}, {} ],
HuanLeiChong: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e2298elwOtG9IPYHf+TEVvV", "HuanLeiChong");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("../TimerSkill"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.enemyNum = 2;
return t;
}
t.prototype.OnTimeOut = function() {
for (var e = 0; e < this.enemyNum; e++) {
var t = this.context.GetFireEnemy();
t && this.context.PlayEffectHandler(this.fireEffect, this.fireSound, t.body.position, 0, o.LevelContext.Instance.effectLayer, null);
}
};
__decorate([ l() ], t.prototype, "enemyNum", void 0);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"../TimerSkill": "TimerSkill"
} ],
HuanRanYiXin: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "6e41etARRxAE76C8e99VU0c", "HuanRanYiXin");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 1;
t.accel = 30;
t.taskId = null;
return t;
}
t.prototype.AddAcceledValue = function(e, t) {
var n = this.context.owner;
n.AddFeatureEx(o.SkillFeature.BulletDamageUpPercent, e);
t && n.ResetFeatures();
};
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnBulletReloadEnd = function() {
var e = this;
if (this.taskId) {
this.CancelRun(this.taskId);
this.AddAcceledValue(-this.accel, !1);
}
this.AddAcceledValue(this.accel, !0);
this.taskId = this.DelayRun(this.intervel, function() {
e.AddAcceledValue(-e.accel, !0);
e.taskId = null;
});
};
__decorate([ s() ], t.prototype, "intervel", void 0);
__decorate([ s() ], t.prototype, "accel", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnBulletReloadEnd", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill"
} ],
HuoYanChongCi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fc2ceLqX2JCPZ5DW/A6SCW/", "HuoYanChongCi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/SoundsManager"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../../LevelContext"), a = e("../EffectSkill"), l = e("./NuHuoChongJi2"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.delayDestoryTime = 3;
t.fireIntervel = .04;
t.passedTime = 0;
t.isDashing = !1;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnUpdate = function(e) {
if (this.isDashing) {
this.passedTime += e;
if (this.passedTime >= this.fireIntervel) {
this.passedTime -= this.fireIntervel;
this.OnFire();
}
}
};
t.prototype.OnFire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
e = this.context.CreateEffectHandler(this.fireEffect, null, this.context.owner.body.position, 0, i.LevelContext.Instance.playerLayer, !0, null);
t = null != this.context.owner.GetSkillProto(this.context.skillData.id + 1);
return [ 4, this.waitForTime(this.delayDestoryTime * (t ? 2 : 1)) ];

case 1:
n.sent();
this.context.cache.DestroyNode(e);
return [ 2 ];
}
});
});
};
t.prototype.OnDashBegin = function() {
o.default.instance.PlayEffectSync(this.fireSound);
this.isDashing = !0;
this.passedTime = 0;
};
t.prototype.OnDashEnd = function() {
this.isDashing = !1;
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return n.context.skillData.proto.damage * (1 + (l.default.IsActive ? l.default.AddDamageRate : 0));
};
return [ 2 ];
});
});
};
__decorate([ u() ], t.prototype, "delayDestoryTime", void 0);
__decorate([ u() ], t.prototype, "fireIntervel", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnDashBegin", null);
__decorate([ r.BroadcastHandler ], t.prototype, "OnDashEnd", null);
return __decorate([ c ], t);
}(a.default);
n.default = p;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/SoundsManager": void 0,
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../EffectSkill": "EffectSkill",
"./NuHuoChongJi2": "NuHuoChongJi2"
} ],
HuoYanFuMo: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0f8adeTmGNLKo6EBMoX06NQ", "HuoYanFuMo");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../BaseSkill"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnHitEntity = function(e) {
e.target && e.context.owner == this.context.owner && e.context.isBulletSkill && this.context.TryBuff(e.target);
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ a ], t);
}(r.default));
n.default = l;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill"
} ],
HuoYanXinXing: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b3f12WaMkVAwY7c8+o3yZCx", "HuoYanXinXing");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../BulletSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 4;
t.cnt = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.DoFire = function(t, n, r) {
var i = e.prototype.DoFire.call(this, t, n, r);
i.node.scale = 1 + .01 * this.context.GetFeature(o.SkillFeature.FireBallScaleUpPercent);
return i;
};
t.prototype.OnPlayerFireBullet = function() {
this.cnt++;
this.cnt % this.intervel == 0 && this.Trigger();
};
__decorate([ s() ], t.prototype, "intervel", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnPlayerFireBullet", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BulletSkill": "BulletSkill"
} ],
IAgent: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c8c63OwNnlG3oAUfYXtuidY", "IAgent");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AgentFactory = void 0;
var o = function() {
function e() {}
e.CreateAgent = null;
return e;
}();
n.AgentFactory = o;
cc._RF.pop();
}, {} ],
IBody: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bc682xhOqVD6ZF+RJiSO8xF", "IBody");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.IBody = n.AccelForce = n.IForce = void 0;
var o = e("../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function() {
function e(e, t, n, o) {
this.normal = new cc.Vec2();
this.force = new cc.Vec2();
this.passTime = 0;
this.onCompelete = null;
this.force.x = e;
this.force.y = t;
this.force.normalize(this.normal);
this.duration = n;
this.passTime = 0;
this.onCompelete = o;
}
e.prototype.Update = function(e) {
this.passTime += e;
};
e.prototype.IsFinish = function() {
return this.passTime >= this.duration;
};
return e;
}());
n.IForce = a;
var l = function(e) {
__extends(t, e);
function t(t, n, o, r, i) {
var a = e.call(this, t, n, o, i) || this;
a.accel = 100;
a.accel = r;
return a;
}
t.prototype.Update = function(t) {
e.prototype.Update.call(this, t);
this.force.x += this.normal.x * this.accel * t;
this.force.y += this.normal.y * this.accel * t;
};
return t;
}(a);
n.AccelForce = l;
var s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.forward = new cc.Vec2(1, 0);
t.finalVelocity = new cc.Vec2();
t.velocity_ = new cc.Vec2();
t.forceList = [];
t.pos = cc.v2();
return t;
}
Object.defineProperty(t.prototype, "velocity", {
get: function() {
return this.velocity_;
},
set: function(e) {
this.velocity_.set(e);
if (0 != e.x || 0 != e.y) {
this.forward.x = e.x;
this.forward.y = e.y;
this.forward.normalizeSelf();
}
},
enumerable: !1,
configurable: !0
});
t.prototype.onEnable = function() {
this.ClearForce();
e.prototype.onEnable.call(this);
};
t.prototype.AddForce = function(e, t, n, o) {
this.AddForce1(new a(e, t, n, o));
};
t.prototype.AddForce1 = function(e) {
this.forceList.push(e);
};
t.prototype.RemoveForce = function(e) {
var t = this.forceList.indexOf(e);
t >= 0 && this.forceList.splice(t, 1);
};
t.prototype.ClearForce = function() {
this.forceList = [];
};
Object.defineProperty(t.prototype, "position", {
get: function() {
this.node.getPosition(this.pos);
return this.pos;
},
set: function(e) {
this.node.setPosition(e);
},
enumerable: !1,
configurable: !0
});
return __decorate([ i ], t);
}(o.MyComponent);
n.IBody = s;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0
} ],
IKdTree: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e092btWrgdDYYgO1U7yYZSC", "IKdTree");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.KdTreeFactory = void 0;
var o = function() {
function e() {}
e.CreateKdTree = null;
return e;
}();
n.KdTreeFactory = o;
cc._RF.pop();
}, {} ],
ISkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9bee3/31ixLSo+LnDvOTEiL", "ISkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.HitResult = void 0;
n.HitResult = function() {};
cc._RF.pop();
}, {} ],
ItemConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "78420N5amVGmLuMbA9aY6Nb", "ItemConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ItemConfig = n.ItemProto = n.ItemFeatureProto = void 0;
var o = function(e) {
__extends(t, e);
function t(t, n, o, r, i) {
var a = e.call(this, n, o, r, i) || this;
a.coin = 0;
a.coin = t;
return a;
}
return t;
}(e("./SkillConfig").SkillFeatureProto);
n.ItemFeatureProto = o;
var r = function() {
function e(e, t, n, o) {
this.id = e;
this.name = t;
this.icon = n;
this.levelFeature = o;
}
Object.defineProperty(e.prototype, "type", {
get: function() {
return this.levelFeature[0].type;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "iconPath", {
get: function() {
return "Battle/Texture/SkillEF/Skill/" + this.icon;
},
enumerable: !1,
configurable: !0
});
return e;
}();
n.ItemProto = r;
var i = function() {
function e() {}
e.GetItem = function(t) {
return e.items.find(function(e) {
return e.id == t;
});
};
e.items = [ new r(1, "力量", "Spinach", []) ];
return e;
}();
n.ItemConfig = i;
cc._RF.pop();
}, {
"./SkillConfig": "SkillConfig"
} ],
ItemContainer: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a9eb5HwQaZNK43hmgkvKR1r", "ItemContainer");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ItemContainer = void 0;
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../../Service/kl"), i = e("../../Service/RemoteSetting"), a = e("../Config/BattleItemConfig"), l = e("../Config/BattleSkillData"), s = e("../Config/Config"), c = e("../Config/DropItemConfig"), u = e("../Config/SkillConfig"), p = e("./Item"), d = e("./LevelContext"), f = e("./MapItem"), h = e("./Skill/BaseSkill"), m = cc._decorator, w = m.ccclass, y = m.property, g = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.view = null;
t.aimPnt = null;
t.maxHealth = 1;
t.skillIdx = 0;
t.collider = null;
t.health = 1;
t.dead = !1;
t.hitTween = null;
return t;
}
n = t;
Object.defineProperty(t.prototype, "aimPos", {
get: function() {
if (!this.aimPnt || !this.node.parent) return this.node.getPosition();
var e = this.aimPnt.convertToWorldSpaceAR(cc.Vec2.ZERO);
return this.node.parent.convertToNodeSpaceAR(e);
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
this.collider = this.node.getComponentInChildren(cc.Collider);
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.health = this.maxHealth;
this.dead = !1;
};
t.prototype.ShowHitEffet = function() {
this.hitTween && this.hitTween.stop();
this.view.color = cc.color(0, 0, 0, 255);
this.hitTween = cc.tween(this.view).delay(.05).to(.1, {
color: cc.Color.WHITE
}).start();
};
t.prototype.Damage = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
this.health = Math.max(0, this.health - 1);
this.ShowHitEffet();
if (!(this.health <= 0) || this.dead) return [ 3, 4 ];
this.dead = !0;
return [ 4, this.waitForTime(.15) ];

case 1:
e.sent();
this.broadcastMessage("OnItemContainerDestroy", this);
return [ 4, r.default.catchAsync(this, this.DropItem) ];

case 2:
e.sent();
return [ 4, r.default.catchAsync(this, this.FireSkill) ];

case 3:
e.sent();
o.default.Default.DestroyNode(this.node);
e.label = 4;

case 4:
return [ 2 ];
}
});
});
};
t.prototype.FireSkill = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, r, i;
return __generator(this, function(a) {
switch (a.label) {
case 0:
return (e = n.skills[this.skillIdx]) ? [ 4, o.default.Default.CreateNode(e.resPath) ] : [ 2 ];

case 1:
t = a.sent();
r = t.getComponent(h.default);
i = new l.BattleSkillData(e);
r.context.skillData = i;
r.OnInit(null);
i.skill = r;
t.setParent(this.node.parent);
t.setPosition(this.node.position);
return [ 4, r.Trigger() ];

case 2:
a.sent();
o.default.Default.DestroyNode(t);
return [ 2 ];
}
});
});
};
t.prototype.DropItem = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, r, l;
return __generator(this, function(u) {
switch (u.label) {
case 0:
if ((e = c.DropItemConfig.GetDropItemId(d.LevelContext.Instance.totalTime)) == a.BattleItemConfig.VehicleItemId) {
if (!i.default.Get("enableVehicle", !0)) return [ 2 ];
if (d.LevelContext.Instance.vehicleCnt >= s.Config.MaxVehicleCount) return [ 2 ];
if (d.LevelContext.Instance.vehicles.length > 0 || d.LevelContext.Instance.mainPlayer.vehicle) return [ 2 ];
d.LevelContext.Instance.vehicleCnt++;
t = d.LevelContext.Instance.GetValidVehiclePnt(d.LevelContext.Instance.mainPlayer.body.position);
o.default.Default.CreateNode("Prefabs/Vehicle/1/1", d.LevelContext.Instance.playerLayer, t);
return [ 2 ];
}
if (!(n = a.BattleItemConfig.GetItem(e))) return [ 2 ];
if (n.id == a.BattleItemConfig.GoldCloverItemId) {
d.LevelContext.Instance.goldCloverCnt++;
if (d.LevelContext.Instance.goldCloverCnt > s.Config.MaxGoldCloverCount) return [ 2 ];
}
r = this.node.getPosition();
o.default.Default.DestroyNode(this.node);
return [ 4, d.LevelContext.itemCache.CreateNode(n.resPath, null, r) ];

case 1:
(l = u.sent()).getComponent(p.Item).itemProto = n;
l.setParent(d.LevelContext.Instance.playerLayer);
return [ 2 ];
}
});
});
};
var n;
t.skills = [ new u.SkillProto(0, 1, 0, u.SkillType.Other, "", "", "", "", 0, 50, 0, 0, 0, "Prefabs/Enemy/YouTong/Skill", []) ];
__decorate([ y(cc.Node) ], t.prototype, "view", void 0);
__decorate([ y(cc.Node) ], t.prototype, "aimPnt", void 0);
__decorate([ y() ], t.prototype, "maxHealth", void 0);
__decorate([ y() ], t.prototype, "skillIdx", void 0);
return n = __decorate([ w ], t);
}(f.MapItem);
n.ItemContainer = g;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Service/RemoteSetting": void 0,
"../../Service/kl": void 0,
"../Config/BattleItemConfig": "BattleItemConfig",
"../Config/BattleSkillData": "BattleSkillData",
"../Config/Config": "Config",
"../Config/DropItemConfig": "DropItemConfig",
"../Config/SkillConfig": "SkillConfig",
"./Item": "Item",
"./LevelContext": "LevelContext",
"./MapItem": "MapItem",
"./Skill/BaseSkill": "BaseSkill"
} ],
ItemData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c4333ROxtlOrZ+/90vvAlhv", "ItemData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ItemData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("./ItemConfig"), i = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.level = 0;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "value", {
get: function() {
return this.level * this.proto.levelFeature[0].value;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = r.ItemConfig.GetItem(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "level", void 0);
return t;
}(o.default);
n.ItemData = i;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"./ItemConfig": "ItemConfig"
} ],
ItemRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "159087r3Q5JTaJyOTqK9A4s", "ItemRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/GameModel"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cntLable = null;
t.timeCounter = 0;
return t;
}
n = t;
t.prototype.update = function(e) {
this.timeCounter -= e;
if (this.timeCounter <= 0) {
var t = n.redCnt;
this.node.opacity = t > 0 ? 255 : 0;
this.cntLable.string = t.toFixed(0);
this.timeCounter = 1;
}
};
Object.defineProperty(t, "redCnt", {
get: function() {
for (var e = 0, t = o.default.Instance, n = t.talentList, r = 0; r < n.length; r++) {
var i = n[r], a = !i.isLock && i.lv < i.proto.maxLv ? i.proto.coin[i.lv] : Number.MAX_SAFE_INTEGER;
t.coin.intValue >= a && e++;
}
return e;
},
enumerable: !1,
configurable: !0
});
var n;
__decorate([ a(cc.Label) ], t.prototype, "cntLable", void 0);
return n = __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../Config/GameModel": "GameModel"
} ],
ItemSpawner: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "75bbbljMpNHjrlurP6pPVjh", "ItemSpawner");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ItemSpawner = void 0;
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../../Service/kl"), i = e("../Config/Config"), a = e("../Messaging/MessageBroadcastReceiver"), l = e("./LevelContext"), s = e("../../Framework/Core/Resource/MyComponent"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.itemPrefab = null;
t.range = 80;
t.ins = null;
t.startSpawn = !0;
t.startSpawnTime = 0;
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
t.prototype.onLoad = function() {
a.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
this.ins = null;
a.RemoveBroadcastReceiver(this);
};
t.prototype.OnUpdate = function() {
if (null != this.ins) {
if (!(cc.Vec2.squaredDistance(this.ins.getPosition(this.v1), l.LevelContext.Instance.mainPlayer.node.getPosition(this.v2)) > 4e6)) return;
o.default.Default.DestroyNode(this.ins);
this.ins = null;
}
this.startSpawn || (this.startSpawn = Date.now() - this.startSpawnTime > 1e3 * i.Config.ItemRespawnIntervel && cc.Vec2.squaredDistance(this.node.getPosition(this.v1), l.LevelContext.Instance.mainPlayer.node.getPosition(this.v2)) > i.Config.ItemRespawnDistance * i.Config.ItemRespawnDistance);
if (this.startSpawn) {
this.ins = o.default.Default.CreateNodeSync(this.itemPrefab, l.LevelContext.Instance.playerLayer);
this.ins.setPosition(this.node.x + r.default.RandomInt(-this.range, this.range), this.node.y + r.default.RandomInt(-this.range, this.range));
this.startSpawn = !1;
this.startSpawnTime = Date.now();
}
};
t.prototype.OnItemContainerDestroy = function(e) {
e.node == this.ins && (this.ins = null);
};
t.prototype.OnLevelFinish = function() {
this.ins && o.default.Default.DestroyNode(this.ins);
this.ins = null;
};
__decorate([ p(cc.Prefab) ], t.prototype, "itemPrefab", void 0);
__decorate([ p() ], t.prototype, "range", void 0);
__decorate([ a.BroadcastHandler ], t.prototype, "OnItemContainerDestroy", null);
__decorate([ a.BroadcastHandler ], t.prototype, "OnLevelFinish", null);
return __decorate([ u ], t);
}(s.MyComponent);
n.ItemSpawner = d;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/Resource/MyComponent": void 0,
"../../Service/kl": void 0,
"../Config/Config": "Config",
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./LevelContext": "LevelContext"
} ],
Item_Box: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "84cefh2BxNCfpKqXpOshc5d", "Item_Box");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Item_Box = void 0;
var o = e("../Config/BattleItemConfig"), r = e("./Item"), i = e("./LevelContext"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.r = Math.sqrt(800);
return t;
}
Object.defineProperty(t.prototype, "collisionRadius", {
get: function() {
return this.r;
},
enumerable: !1,
configurable: !0
});
t.prototype.onEnable = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.onEnable.call(this);
i.LevelContext.Instance.boxes.indexOf(this) < 0 && i.LevelContext.Instance.boxes.push(this);
return [ 2 ];
});
});
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
var t = i.LevelContext.Instance.boxes.indexOf(this);
t >= 0 && i.LevelContext.Instance.boxes.splice(t, 1);
};
t.prototype.onCollision = function() {
this.isFlying = !0;
this.broadcastMessage("OnGetBattleItem", i.LevelContext.Instance.levelProto.id, this.itemProto.id);
i.LevelContext.itemCache.DestroyNode(this.node);
this.itemProto.id == o.BattleItemConfig.BookItemId ? i.LevelContext.Instance.mainPlayer.OpenBook() : i.LevelContext.Instance.mainPlayer.OpenBox();
};
return __decorate([ l ], t);
}(r.Item));
n.Item_Box = s;
cc._RF.pop();
}, {
"../Config/BattleItemConfig": "BattleItemConfig",
"./Item": "Item",
"./LevelContext": "LevelContext"
} ],
Item: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8de0euW1ClObbq7uth7Dhvs", "Item");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Item = void 0;
var o = e("../../Framework/Core/Resource/SoundsManager"), r = e("../Config/BattleItemConfig"), i = e("../Config/GameModel"), a = e("./LevelContext"), l = e("./MapItem"), s = e("../../Framework/Core/Resource/AssetManager"), c = e("./View/FollowMovement"), u = e("../../Service/kl"), p = e("./LinearBody"), d = e("../Config/SkillConfig"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.canRecycle = !0;
t.shadow = null;
t.itemRadius = 15;
t.tail = null;
t.follow = null;
t.body = null;
t.itemProto = null;
t.monsterProto = null;
t.isFlying = !1;
t.spawnTime = 0;
t.id = 0;
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
n = t;
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
this.tail = this.getComponent(cc.MotionStreak);
this.follow = this.getComponent(c.default);
this.body = this.getComponent(p.default);
};
t.prototype.onEnable = function() {
return __awaiter(this, void 0, void 0, function() {
var t;
return __generator(this, function(o) {
switch (o.label) {
case 0:
e.prototype.onEnable.call(this);
this.id = n.idCnter++ % 5 + 1;
this.spawnTime = a.LevelContext.Instance.totalTime;
a.LevelContext.Instance.items.indexOf(this) < 0 && a.LevelContext.Instance.items.push(this);
this.follow && (this.follow.enabled = !1);
this.shadow && (this.shadow.active = !0);
this.body && (this.body.velocity = cc.Vec2.ZERO);
(t = i.default.Instance.GetBattleItem(this.itemProto.id)) && (t.unlock = !0);
this.tail && (this.tail.enabled = !1);
this.isFlying = !0;
return [ 4, this.waitForTime(.2) ];

case 1:
o.sent();
this.isFlying = !1;
return [ 2 ];
}
});
});
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
this.tail && (this.tail.enabled = !1);
var t = a.LevelContext.Instance.items.indexOf(this);
t >= 0 && a.LevelContext.Instance.items.splice(t, 1);
};
t.prototype.OnUpdate = function() {
a.LevelContext.Instance.mainPlayer.pickableCnt > 0 && this.UpdatePlayerCollision();
this.isFlying || this.isExp && a.LevelContext.Instance.crazyCoinLeftTime > 0 && this.Trigger();
};
t.prototype.GetAllExpItem = function() {
for (var e = a.LevelContext.Instance.mainPlayer.firePos, t = 0; t < a.LevelContext.Instance.items.length; t++) {
var n = a.LevelContext.Instance.items[t];
if (n.itemProto.id == r.BattleItemConfig.ExpItemId || n.itemProto.id == r.BattleItemConfig.ExpItemId1 || n.itemProto.id == r.BattleItemConfig.ExpItemId2 || n.itemProto.id == r.BattleItemConfig.ExpItemId3) {
var o = cc.Vec2.distance(e, n.node.getPosition()) / 1200;
cc.tween(n.node).to(o, {
x: e.x,
y: e.y
}).start();
}
}
};
Object.defineProperty(t.prototype, "collisionRadius", {
get: function() {
return a.LevelContext.Instance.mainPlayer.pickItemRadius + this.itemRadius;
},
enumerable: !1,
configurable: !0
});
t.prototype.UpdatePlayerCollision = function() {
if (!this.isFlying && cc.director.getTotalFrames() % this.id == 0) {
var e = a.LevelContext.Instance.mainPlayer.node.getPosition(this.v1), t = this.node.getPosition(this.v2), n = this.collisionRadius;
cc.Vec2.squaredDistance(e, t) <= n * n && this.Trigger();
}
};
t.prototype.Trigger = function() {
if (!this.isFlying) {
var e = a.LevelContext.Instance.mainPlayer;
this.isFlying = !0;
this.tail && (this.tail.enabled = !0);
this.shadow && (this.shadow.active = !1);
if (this.follow) {
var t = this.node.getPosition().sub(cc.v2(), e.body.position).normalizeSelf();
t.rotateSelf(cc.misc.degreesToRadians(u.default.Random(-180, 180)));
this.follow.Start(e.node, t, this.onCollision.bind(this));
}
}
};
Object.defineProperty(t.prototype, "isExp", {
get: function() {
return this.itemProto.id == r.BattleItemConfig.ExpItemId || this.itemProto.id == r.BattleItemConfig.ExpItemId1 || this.itemProto.id == r.BattleItemConfig.ExpItemId2 || this.itemProto.id == r.BattleItemConfig.ExpItemId3;
},
enumerable: !1,
configurable: !0
});
t.prototype.onCollision = function() {
this.isFlying = !0;
var e = a.LevelContext.Instance.mainPlayer;
this.broadcastMessage("OnGetBattleItem", a.LevelContext.Instance.levelProto.id, this.itemProto.id);
var t = this.itemProto, n = this.monsterProto;
switch (t.id) {
case r.BattleItemConfig.ExpItemId:
case r.BattleItemConfig.ExpItemId1:
case r.BattleItemConfig.ExpItemId2:
case r.BattleItemConfig.ExpItemId3:
n && e.AddExp(n.exp * (1 + .01 * e.GetFeature(d.SkillFeature.MonsterSpawnExpUpPercent)));
break;

case r.BattleItemConfig.Coin100ItemId:
a.LevelContext.Instance.AddCoin(100);
o.default.instance.PlayEffect("get_coin");
break;

case r.BattleItemConfig.GoldCloverItemId:
a.LevelContext.Instance.crazyCoinLeftTime = e.crazyCoinTime;
a.LevelContext.Instance.crazyGoldEft.active = !0;
break;

case r.BattleItemConfig.FateCoinItemId:
i.default.Instance.fateCoinCnt.intValue += 1;
break;

case r.BattleItemConfig.EqupBpItemId:
a.LevelContext.Instance.totalEquipBlueprints += 1;
}
this.PlayerGetItemEft();
a.LevelContext.itemCache.DestroyNode(this.node);
};
t.prototype.PlayerGetItemEft = function() {
o.default.instance.PlayEffect("get_exp");
i.default.Instance.enableFxEffect && s.default.Default.CreateNode("Prefabs/Effect/GetItem_Eft", a.LevelContext.Instance.mainPlayer.aimPnt, cc.Vec2.ZERO);
};
t.prototype.Recycle = function() {
var e = this;
if (!this.isFlying) {
this.isFlying = !0;
cc.tween(this.node).to(.2, {
opacity: 0,
scale: 0
}).call(function() {
e.node.opacity = 255;
e.node.scale = 1;
a.LevelContext.itemCache.DestroyNode(e.node);
}).start();
}
};
var n;
t.idCnter = 0;
__decorate([ m() ], t.prototype, "canRecycle", void 0);
__decorate([ m(cc.Node) ], t.prototype, "shadow", void 0);
return n = __decorate([ h ], t);
}(l.MapItem);
n.Item = w;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Service/kl": void 0,
"../Config/BattleItemConfig": "BattleItemConfig",
"../Config/GameModel": "GameModel",
"../Config/SkillConfig": "SkillConfig",
"./LevelContext": "LevelContext",
"./LinearBody": "LinearBody",
"./MapItem": "MapItem",
"./View/FollowMovement": "FollowMovement"
} ],
JiBingLieYan: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "490e9Sy+NpJeZ3l69S3XRaP", "JiBingLieYan");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Buff/Buff_Burning"), r = e("../../Buff/Buff_Freeze"), i = e("../../LevelContext"), a = e("../BaseSkill"), l = cc._decorator, s = l.ccclass, c = (l.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.start = function() {
var e = this;
this.RepeatRun(this.context.skillData.cd, function() {
e.context.skillData.proto.damage;
for (var t = i.LevelContext.Instance.enemies.length - 1; t >= 0; t--) {
var n = i.LevelContext.Instance.enemies[t];
n.HasBuff(o.Buff_Burning) && n.HasBuff(r.Buff_Freeze) && e.context.Damage(n.collider.node, cc.Vec2.ZERO);
}
});
};
return __decorate([ s ], t);
}(a.default));
n.default = c;
cc._RF.pop();
}, {
"../../Buff/Buff_Burning": "Buff_Burning",
"../../Buff/Buff_Freeze": "Buff_Freeze",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill"
} ],
JianRen: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "647a4xV2fxGwpG9m+iWOEUK", "JianRen");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./BaseTalentSkill"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../../../Config/SkillConfig"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletIntervelUpPercent = 3;
t.bulletHitBackUpPercent = 3;
t.isAdded = !1;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.context.owner.AddListener(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDisable = function() {
this.context.owner.RemoveListener(this);
r.RemoveBroadcastReceiver(this);
e.prototype.onDisable.call(this);
};
t.prototype.OnStartTalent = function() {
this.isAdded = !1;
this.OnDamage(this.context.owner);
};
t.prototype.OnDamage = function(e, t, n, o, r) {
void 0 === t && (t = 0);
void 0 === n && (n = 100);
void 0 === o && (o = null);
void 0 === r && (r = cc.Vec2.ZERO);
var a = this.context.owner, l = e.health / e.maxHealth <= .5;
if (!l && this.isAdded) {
this.isAdded = !1;
a.AddFeatureEx(i.SkillFeature.BulletIntervelUpPercent, -this.bulletIntervelUpPercent * this.context.talentData.lv);
a.AddFeatureEx(i.SkillFeature.BulletHitBackUpPercent, -this.bulletHitBackUpPercent * this.context.talentData.lv);
a.ResetFeatures();
} else if (l && !this.isAdded) {
this.isAdded = !0;
a.AddFeatureEx(i.SkillFeature.BulletIntervelUpPercent, this.bulletIntervelUpPercent * this.context.talentData.lv);
a.AddFeatureEx(i.SkillFeature.BulletHitBackUpPercent, this.bulletHitBackUpPercent * this.context.talentData.lv);
a.ResetFeatures();
}
};
t.prototype.OnRelive = function() {
this.OnDamage(this.context.owner);
};
__decorate([ s() ], t.prototype, "bulletIntervelUpPercent", void 0);
__decorate([ s() ], t.prototype, "bulletHitBackUpPercent", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnRelive", null);
return __decorate([ l ], t);
}(o.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
JoystickUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "57ec21EvYVPL4sIzycp75qC", "JoystickUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Service/Extension/Input/TouchInput"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.root = null;
t.stick = null;
t.radius = 100;
t.enableOpacity = 100;
t.disableOpacity = 100;
t.OnStartMoving = null;
t.isMoving = !1;
return t;
}
t.prototype.onLoad = function() {
var e = this;
o.default.instance.OnTouchDown.Add(function(t) {
var n = e.node.getParent().convertToNodeSpaceAR(t);
e.node.setPosition(n.x, n.y);
});
};
t.prototype.onEnable = function() {
this.node.opacity = this.disableOpacity;
this.isMoving = !1;
};
t.prototype.update = function() {
if (o.default.instance) {
var e = o.default.instance.joystick;
if (e) {
e.joystickRadius = this.radius;
if (this.isMoving != e.IsTouching) {
var t = e.IsTouching ? this.enableOpacity : this.disableOpacity;
this.node.opacity = t;
e.IsTouching && this.OnStartMoving && this.OnStartMoving();
this.isMoving = e.IsTouching;
}
var n = e.IsTouching ? e.joystickValue.mul(e.joystickRadius) : cc.Vec2.ZERO;
this.stick.setPosition(n);
}
}
};
__decorate([ a(cc.Node) ], t.prototype, "root", void 0);
__decorate([ a(cc.Node) ], t.prototype, "stick", void 0);
__decorate([ a() ], t.prototype, "radius", void 0);
__decorate([ a() ], t.prototype, "enableOpacity", void 0);
__decorate([ a() ], t.prototype, "disableOpacity", void 0);
return __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../../Service/Extension/Input/TouchInput": void 0
} ],
JuJiao: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "333edAqBHNO+LBFMIDa/7oM", "JuJiao");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
Object.defineProperty(t.prototype, "summonFeatureOpt", {
get: function() {
return this.context.skillData.proto.summonFeaturesOpt;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n, o;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
if (!(n = this.context.owner.GetSummon(this.summonFeatureOpt.summonId))) return [ 2 ];
n.doubleDamageUpCnt++;
o = .5 * n.node.scale;
n.node.setScale(o, o);
return [ 2 ];
});
});
};
return __decorate([ i ], t);
}(o.default));
n.default = a;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
KdTree: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7467ajKLyZCeKG2coJQD1YG", "KdTree");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.KdTree = void 0;
var o = e("./Obstacle"), r = e("./RVOMath"), i = e("./Vector2"), a = e("./IKdTree"), l = function() {}, s = function() {
function e(e, t) {
this.a = e;
this.b = t;
}
e.Less = function(e, t) {
return e.a < t.a || !(t.a < e.a) && e.b < t.b;
};
e.LessEqual = function(t, n) {
return t.a == n.a && t.b == n.b || e.Less(t, n);
};
e.Greater = function(t, n) {
return !e.LessEqual(t, n);
};
e.GreaterEqual = function(t, n) {
return !e.Less(t, n);
};
return e;
}(), c = function() {}, u = function() {
function e(e) {
this.sim_ = null;
this.sim_ = e;
}
e.prototype.buildAgentTree = function() {
var e = this.sim_.agents_.length;
if (null == this.agents_ || this.agents_.length != e) {
this.agents_ = new Array(e);
for (var t = 0; t < e; ++t) this.agents_[t] = this.sim_.agents_[t];
this.agentTree_ = new Array(2 * this.agents_.length);
for (t = 0; t < this.agentTree_.length; ++t) this.agentTree_[t] = new l();
}
0 != this.agents_.length && this.buildAgentTreeRecursive(0, this.agents_.length, 0);
};
e.prototype.buildObstacleTree = function() {
this.obstacleTree_ = new c();
for (var e = new Array(this.sim_.obstacles_.length), t = 0; t < this.sim_.obstacles_.length; ++t) e[t] = this.sim_.obstacles_[t];
this.obstacleTree_ = this.buildObstacleTreeRecursive(e);
};
e.prototype.computeAgentNeighbors = function(e, t) {
return this.queryAgentTreeRecursive3(e, t, 0);
};
e.prototype.computeObstacleNeighbors = function(e, t) {
this.queryObstacleTreeRecursive(e, t, this.obstacleTree_);
};
e.prototype.queryVisibility = function(e, t, n) {
return this.queryVisibilityRecursive(e, t, n, this.obstacleTree_);
};
e.prototype.queryNearAgent = function(e, t) {
var n = this.queryAgentTreeRecursive4(e, Number.MAX_VALUE, -1, 0);
return n.rangeSq < t * t ? n.agentNo : -1;
};
e.prototype.buildAgentTreeRecursive = function(t, n, o) {
var r = this.agentTree_[o];
r.begin_ = t;
r.end_ = n;
r.minX_ = r.maxX_ = this.agents_[t].position_.x;
r.minY_ = r.maxY_ = this.agents_[t].position_.y;
for (var i = t + 1; i < n; ++i) {
r.maxX_ = Math.max(r.maxX_, this.agents_[i].position_.x);
r.minX_ = Math.min(r.minX_, this.agents_[i].position_.x);
r.maxY_ = Math.max(r.maxY_, this.agents_[i].position_.y);
r.minY_ = Math.min(r.minY_, this.agents_[i].position_.y);
}
if (n - t > e.MAX_LEAF_SIZE) {
for (var a = r.maxX_ - r.minX_ > r.maxY_ - r.minY_, l = .5 * (a ? r.maxX_ + r.minX_ : r.maxY_ + r.minY_), s = t, c = n; s < c; ) {
for (;s < c && (a ? this.agents_[s].position_.x : this.agents_[s].position_.y) < l; ) ++s;
for (;c > s && (a ? this.agents_[c - 1].position_.x : this.agents_[c - 1].position_.y) >= l; ) --c;
if (s < c) {
var u = this.agents_[s];
this.agents_[s] = this.agents_[c - 1];
this.agents_[c - 1] = u;
++s;
--c;
}
}
var p = s - t;
if (0 == p) {
++p;
++s;
++c;
}
r.left_ = o + 1;
r.right_ = o + 2 * p;
this.buildAgentTreeRecursive(t, s, r.left_);
this.buildAgentTreeRecursive(s, n, r.right_);
}
};
e.prototype.buildObstacleTreeRecursive = function(e) {
if (0 == e.length) return null;
for (var t = new c(), n = 0, a = e.length, l = e.length, u = 0; u < e.length; ++u) {
for (var p = 0, d = 0, f = (g = e[u]).next_, h = 0; h < e.length; ++h) if (u != h) {
var m = (C = e[h]).next_, w = r.RVOMath.LeftOf(g.point_, f.point_, C.point_), y = r.RVOMath.LeftOf(g.point_, f.point_, m.point_);
if (w >= -r.RVOMath.RVO_EPSILON && y >= -r.RVOMath.RVO_EPSILON) ++p; else if (w <= r.RVOMath.RVO_EPSILON && y <= r.RVOMath.RVO_EPSILON) ++d; else {
++p;
++d;
}
if (s.GreaterEqual(new s(Math.max(p, d), Math.min(p, d)), new s(Math.max(a, l), Math.min(a, l)))) break;
}
if (s.Less(new s(Math.max(p, d), Math.min(p, d)), new s(Math.max(a, l), Math.min(a, l)))) {
a = p;
l = d;
n = u;
}
}
var g, v = new Array(a), S = new Array(l), M = 0, k = 0;
for (f = (g = e[u = n]).next_, h = 0; h < e.length; ++h) if (u != h) {
var C;
m = (C = e[h]).next_, w = r.RVOMath.LeftOf(g.point_, f.point_, C.point_), y = r.RVOMath.LeftOf(g.point_, f.point_, m.point_);
if (w >= -r.RVOMath.RVO_EPSILON && y >= -r.RVOMath.RVO_EPSILON) v[M++] = e[h]; else if (w <= r.RVOMath.RVO_EPSILON && y <= r.RVOMath.RVO_EPSILON) S[k++] = e[h]; else {
var P = i.Vector2.Subtract(f.point_, g.point_), _ = i.Vector2.Subtract(C.point_, g.point_), O = i.Vector2.Subtract(C.point_, m.point_), b = r.RVOMath.Det(P, _) / r.RVOMath.Det(P, O), F = i.Vector2.Subtract(m.point_, C.point_);
F = i.Vector2.Multiply(F, b, F);
var I = i.Vector2.Add(C.point_, F, F), E = new o.Obstacle();
E.point_ = I;
E.previous_ = C;
E.next_ = m;
E.convex_ = !0;
E.direction_ = C.direction_.Clone();
E.id_ = this.sim_.obstacles_.length;
this.sim_.obstacles_.push(E);
C.next_ = E;
m.previous_ = E;
if (w > 0) {
v[M++] = C;
S[k++] = E;
} else {
S[k++] = C;
v[M++] = E;
}
}
}
t.obstacle_ = g;
t.left_ = this.buildObstacleTreeRecursive(v);
t.right_ = this.buildObstacleTreeRecursive(S);
return t;
};
e.prototype.queryAgentTreeRecursive4 = function(t, n, o, a) {
var l = {
rangeSq: n,
agentNo: o
}, s = this.agentTree_[a];
if (s.end_ - s.begin_ <= e.MAX_LEAF_SIZE) for (var c = new i.Vector2(), u = s.begin_; u < s.end_; ++u) {
var p = r.RVOMath.AbsSq(i.Vector2.Subtract(t, this.agents_[u].position_, c));
if (p < l.rangeSq) {
l.rangeSq = p;
l.agentNo = this.agents_[u].id_;
}
} else {
var d = this.agentTree_[s.left_], f = this.agentTree_[s.right_], h = r.RVOMath.Sqr(Math.max(0, d.minX_ - t.x)) + r.RVOMath.Sqr(Math.max(0, t.x - d.maxX_)) + r.RVOMath.Sqr(Math.max(0, d.minY_ - t.y)) + r.RVOMath.Sqr(Math.max(0, t.y - d.maxY_)), m = r.RVOMath.Sqr(Math.max(0, f.minX_ - t.x)) + r.RVOMath.Sqr(Math.max(0, t.x - f.maxX_)) + r.RVOMath.Sqr(Math.max(0, f.minY_ - t.y)) + r.RVOMath.Sqr(Math.max(0, t.y - f.maxY_));
h < m ? h < l.rangeSq && m < (l = this.queryAgentTreeRecursive4(t, l.rangeSq, l.agentNo, s.left_)).rangeSq && (l = this.queryAgentTreeRecursive4(t, l.rangeSq, l.agentNo, s.right_)) : m < l.rangeSq && h < (l = this.queryAgentTreeRecursive4(t, l.rangeSq, l.agentNo, s.right_)).rangeSq && (l = this.queryAgentTreeRecursive4(t, l.rangeSq, l.agentNo, s.left_));
}
return l;
};
e.prototype.queryAgentTreeRecursive3 = function(t, n, o) {
var i = this.agentTree_[o];
if (i.end_ - i.begin_ <= e.MAX_LEAF_SIZE) for (var a = i.begin_; a < i.end_; ++a) {
var l = this.agents_[a];
t.canCollideAgent(l) && (n = t.insertAgentNeighbor(l, n));
} else {
var s = this.agentTree_[i.left_], c = this.agentTree_[i.right_], u = r.RVOMath.Sqr(Math.max(0, s.minX_ - t.position_.x)) + r.RVOMath.Sqr(Math.max(0, t.position_.x - s.maxX_)) + r.RVOMath.Sqr(Math.max(0, s.minY_ - t.position_.y)) + r.RVOMath.Sqr(Math.max(0, t.position_.y - s.maxY_)), p = r.RVOMath.Sqr(Math.max(0, c.minX_ - t.position_.x)) + r.RVOMath.Sqr(Math.max(0, t.position_.x - c.maxX_)) + r.RVOMath.Sqr(Math.max(0, c.minY_ - t.position_.y)) + r.RVOMath.Sqr(Math.max(0, t.position_.y - c.maxY_));
u < p ? u < n && p < (n = this.queryAgentTreeRecursive3(t, n, i.left_)) && (n = this.queryAgentTreeRecursive3(t, n, i.right_)) : p < n && u < (n = this.queryAgentTreeRecursive3(t, n, i.right_)) && (n = this.queryAgentTreeRecursive3(t, n, i.left_));
}
return n;
};
e.prototype.queryObstacleTreeRecursive = function(e, t, n) {
if (null != n && e.canCollideObstacle(n.obstacle_)) {
var o = n.obstacle_, a = o.next_, l = r.RVOMath.LeftOf(o.point_, a.point_, e.position_);
this.queryObstacleTreeRecursive(e, t, l >= 0 ? n.left_ : n.right_);
if (r.RVOMath.Sqr(l) / r.RVOMath.AbsSq(i.Vector2.Subtract(a.point_, o.point_)) < t) {
l < 0 && e.insertObstacleNeighbor(n.obstacle_, t);
this.queryObstacleTreeRecursive(e, t, l >= 0 ? n.right_ : n.left_);
}
}
};
e.prototype.queryVisibilityRecursive = function(e, t, n, o) {
if (null == o) return !0;
var a = new i.Vector2(), l = o.obstacle_, s = l.next_, c = r.RVOMath.LeftOf(l.point_, s.point_, e), u = r.RVOMath.LeftOf(l.point_, s.point_, t), p = 1 / r.RVOMath.AbsSq(i.Vector2.Subtract(s.point_, l.point_, a));
if (c >= 0 && u >= 0) return this.queryVisibilityRecursive(e, t, n, o.left_) && (r.RVOMath.Sqr(c) * p >= r.RVOMath.Sqr(n) && r.RVOMath.Sqr(u) * p >= r.RVOMath.Sqr(n) || this.queryVisibilityRecursive(e, t, n, o.right_));
if (c <= 0 && u <= 0) return this.queryVisibilityRecursive(e, t, n, o.right_) && (r.RVOMath.Sqr(c) * p >= r.RVOMath.Sqr(n) && r.RVOMath.Sqr(u) * p >= r.RVOMath.Sqr(n) || this.queryVisibilityRecursive(e, t, n, o.left_));
if (c >= 0 && u <= 0) return this.queryVisibilityRecursive(e, t, n, o.left_) && this.queryVisibilityRecursive(e, t, n, o.right_);
var d = r.RVOMath.LeftOf(e, t, l.point_), f = r.RVOMath.LeftOf(e, t, s.point_), h = 1 / r.RVOMath.AbsSq(i.Vector2.Subtract(t, e, a));
return d * f >= 0 && r.RVOMath.Sqr(d) * h > r.RVOMath.Sqr(n) && r.RVOMath.Sqr(f) * h > r.RVOMath.Sqr(n) && this.queryVisibilityRecursive(e, t, n, o.left_) && this.queryVisibilityRecursive(e, t, n, o.right_);
};
e.MAX_LEAF_SIZE = 10;
return e;
}();
n.KdTree = u;
a.KdTreeFactory.CreateKdTree = function(e) {
return new u(e);
};
cc._RF.pop();
}, {
"./IKdTree": "IKdTree",
"./Obstacle": "Obstacle",
"./RVOMath": "RVOMath",
"./Vector2": "Vector2"
} ],
KeepRatioSprite: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8fd8bDi20FOEZqA4/j+Ky0F", "KeepRatioSprite");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, r = o.ccclass, i = (o.property, o.requireComponent), a = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.srcSize = null;
t.sprite = null;
t.oldFrame = null;
return t;
}
t.prototype.onLoad = function() {
this.srcSize = this.node.getContentSize();
this.sprite = this.getComponent(cc.Sprite);
};
t.prototype.update = function() {
if (this.oldFrame != this.sprite.spriteFrame) {
this.oldFrame = this.sprite.spriteFrame;
this.ResetSize();
}
};
t.prototype.ResetSize = function() {
if (this.sprite.spriteFrame) {
var e = this.sprite.spriteFrame.getRect(), t = cc.size(this.srcSize.width, e.height / e.width * this.srcSize.width);
if (t.height > this.srcSize.height) {
t.height = this.srcSize.height;
t.width = e.width / e.height * this.srcSize.height;
}
this.node.setContentSize(t);
}
};
return __decorate([ r, i(cc.Sprite) ], t);
}(cc.Component);
n.default = a;
cc._RF.pop();
}, {} ],
KeyValuePair: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "63debg8BldKd4XLknVasra2", "KeyValuePair");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.KeyValuePair = void 0;
n.KeyValuePair = function(e, t) {
this.key = e;
this.value = t;
};
cc._RF.pop();
}, {} ],
KuaiSuBaQiang: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b1e3b981gJDTb8atPL84O6U", "KuaiSuBaQiang");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Messaging/MessageBroadcastReceiver"), r = e("../../BaseSkill"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnDashEnd = function() {
this.context.owner.curBulletCd = 0;
this.context.owner.AddBulletNumber(this.context.owner.maxBulletNum);
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnDashEnd", null);
return __decorate([ a ], t);
}(r.default));
n.default = l;
cc._RF.pop();
}, {
"../../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../BaseSkill": "BaseSkill"
} ],
LastStand: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c0791KxlOJO9Z2GU0ZG363T", "LastStand");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("./BaseTalentSkill"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.minHp = 1;
t.wudiSeconds = 5;
t.isTrick = !1;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.context.owner.AddListener(this);
};
t.prototype.onDisable = function() {
this.context.owner.RemoveListener(this);
e.prototype.onDisable.call(this);
};
t.prototype.OnStartTalent = function() {
this.isTrick = !1;
};
t.prototype.OnDamage = function(e, t, n, r, i) {
void 0 === t && (t = 0);
void 0 === n && (n = 100);
void 0 === r && (r = null);
void 0 === i && (i = cc.Vec2.ZERO);
if (e == o.LevelContext.Instance.mainPlayer && !this.isTrick && e.health <= this.minHp) {
o.LevelContext.Instance.mainPlayer.AddWudiTime(this.wudiSeconds * this.context.talentData.lv);
this.isTrick = !0;
}
};
t.prototype.OnSave = function() {
return {
t: this.isTrick
};
};
t.prototype.OnLoad = function(e) {
this.isTrick = e.t;
};
__decorate([ l() ], t.prototype, "minHp", void 0);
__decorate([ l() ], t.prototype, "wudiSeconds", void 0);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
LeaderboardItemUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b4699RP799KQ4nO88fIl19d", "LeaderboardItemUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/HeroData"), r = e("../Config/WeaponData"), i = e("./WeaponInfoUI"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.rankLabel = null;
t.headerImage = null;
t.heroNode = null;
t.weaponImage = null;
t.playerNameLabel = null;
t.cupLabel = null;
t.replaceStr2 = function(e, t, n) {
return e.substring(0, t) + n + e.substring(t + 1);
};
return t;
}
t.prototype.UpdateUI = function(e, t, n) {
var a;
this.SetRankValue(e);
var l = new o.HeroData();
l.id = t.userData.heroId;
var s = new r.WeaponData();
s.id = t.userData.weaponId;
s.classLevel.intValue = t.userData.weaponClassLevel;
i.default.UpdateHeroNode(this.heroNode, l, s, null !== (a = t.userData.equipIds) && void 0 !== a ? a : []);
var c = t.nick, u = c.length < 5 ? c : c.substring(0, 5);
this.playerNameLabel.string = c.length > 5 ? u + "..." : u;
this.cupLabel.string = n;
};
t.prototype.SetRankValue = function(e) {
this.rankLabel.string = "" + e;
};
__decorate([ s(cc.Label) ], t.prototype, "rankLabel", void 0);
__decorate([ s(cc.Sprite) ], t.prototype, "headerImage", void 0);
__decorate([ s(cc.Node) ], t.prototype, "heroNode", void 0);
__decorate([ s(cc.Sprite) ], t.prototype, "weaponImage", void 0);
__decorate([ s(cc.Label) ], t.prototype, "playerNameLabel", void 0);
__decorate([ s(cc.Label) ], t.prototype, "cupLabel", void 0);
return __decorate([ l ], t);
}(cc.Component);
n.default = c;
cc._RF.pop();
}, {
"../Config/HeroData": "HeroData",
"../Config/WeaponData": "WeaponData",
"./WeaponInfoUI": "WeaponInfoUI"
} ],
LeaderboardUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "39147qAFjhAXJmyjgzV59SK", "LeaderboardUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/UI/WaitingUI"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Framework/Localize/LocalizeManager"), c = e("../../Framework/UI/ScrollViewUtility"), u = e("../../Service/AccountManager"), p = e("../../Service/Leaderboard"), d = e("../Config/Config"), f = e("./LeaderboardItemUI"), h = cc._decorator, m = h.ccclass, w = h.property, y = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.scrollView = null;
t.selfItem = null;
t.tipNode = null;
t.toggleContainer = null;
t.type = d.Config.RankKill;
return t;
}
n = t;
t.prototype.OnSetParams = function() {
this.RequestData(this.type);
};
t.prototype.UpdateUI = function(e, t) {
var n = this;
this.FliterAry(t);
this.tipNode.active = 0 == t.length;
this.scrollView.scrollView.scrollTo(cc.Vec2.ZERO, 0);
e.InitCellDataList(t, function(e, t, o) {
return n.UpdateItemUI(e, t, o);
});
};
t.prototype.FliterAry = function(e) {
for (var t = e.length - 1; t >= 0; t--) {
var n = e[t], o = !1;
this.type == d.Config.RankLevel ? o = n.score >= 999 : this.type == d.Config.RankKill && (o = n.score >= 999e3);
o && e.splice(t, 1);
}
};
t.prototype.GetText = function(e) {
return this.type == d.Config.RankLevel ? s.LFTXT("{0}级", e.score) : this.type == d.Config.RankEndless ? s.LFTXT("{0}秒", e.score.toFixed(1)) : e.score.toFixed(0);
};
t.prototype.UpdateItemUI = function(e, t, n) {
var o = n.getComponent(f.default);
t && o.UpdateUI(e + 1, t, this.GetText(t), t.id == u.default.userInfo.id);
};
t.prototype.UpdateSelfData = function(e, t, n) {
if (n) {
e.active = !0;
this.tipNode.active = !1;
e.getComponent(f.default).UpdateUI(t, n, this.GetText(n), !0);
} else {
e.active = !1;
this.tipNode.active = !0;
}
};
t.prototype.RequestData = function(e) {
var t = this;
this.type = e;
this.scrollView.node.active = !1;
if (d.Config.EnableRankUI) {
l.default.ShowView(o.default);
p.default.QueryScores(e, d.Config.LeaderboardType, function(e) {
t.scrollView.node.active = !0;
t.UpdateUI(t.scrollView, e.rankData);
t.UpdateSelfData(t.selfItem, e.userData ? e.userData.rankIndex : -1, e.userData);
l.default.HideView(o.default);
}, function() {
console.log("QueryScores failed", e);
l.default.HideView(o.default);
}, 0, 100);
}
};
t.prototype.OnTabClick = function(e, t) {
this.RequestData(t);
};
t.prototype.OnCloseClick = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.HideView() ];

case 1:
e.sent();
l.default.DestoryView(n);
return [ 2 ];
}
});
});
};
var n;
t.CupKey = "CupScore";
__decorate([ w(c.default) ], t.prototype, "scrollView", void 0);
__decorate([ w(cc.Node) ], t.prototype, "selfItem", void 0);
__decorate([ w(cc.Node) ], t.prototype, "tipNode", void 0);
__decorate([ w(cc.ToggleContainer) ], t.prototype, "toggleContainer", void 0);
return n = __decorate([ m, r.RegisterView("LeaderboardUI", i.ViewLayer.NormalLayer, i.ViewShowRule.HideSameLayerView) ], t);
}(a.default);
n.default = y;
cc._RF.pop();
}, {
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Framework/UI/ScrollViewUtility": void 0,
"../../Service/AccountManager": void 0,
"../../Service/Leaderboard": void 0,
"../Config/Config": "Config",
"./LeaderboardItemUI": "LeaderboardItemUI"
} ],
LeiDianZhiPei: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4add8TNRD5IQqiZGfOHdIFL", "LeiDianZhiPei");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 2;
t.cnt = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnPlayerFireBullet = function() {
this.cnt++;
if (this.cnt % this.intervel == 0) {
var e = this.context.GetFireEnemy();
e && this.context.PlayEffectHandler(this.fireEffect, this.fireSound, e.body.position, 0, r.LevelContext.Instance.effectLayer, null);
}
};
__decorate([ s() ], t.prototype, "intervel", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnPlayerFireBullet", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill"
} ],
LeiTingChongCi2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e5b8aw7rF5HZ5AoEHynPsjN", "LeiTingChongCi2");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.eftScale = 3;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IsActive = !0;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IsActive = !1;
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
n.EffectScale = this.eftScale;
n.Damage = this.context.skillData.proto.damage;
return [ 2 ];
});
});
};
var n;
t.IsActive = !1;
t.Damage = 0;
t.EffectScale = 0;
__decorate([ a() ], t.prototype, "eftScale", void 0);
return n = __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
LeiTingChongCi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f0494yT7GdAiI8BShuphnYe", "LeiTingChongCi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../../Util"), a = e("../EffectSkill"), l = e("./LeiTingChongCi2"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.duration = 3;
t.minLen = 150;
t.v1 = cc.v2();
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return l.default.IsActive ? l.default.Damage : n.context.skillData.proto.damage;
};
return [ 2 ];
});
});
};
t.prototype.OnDashBegin = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, o, a;
return __generator(this, function(s) {
switch (s.label) {
case 0:
e = this.context.owner.body.position;
(t = r.LevelContext.Instance.GetNearestEnemy(e, this.v1)) && this.v1.x <= this.minLen * this.minLen && (e = t.body.position);
n = i.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, e, 0, r.LevelContext.Instance.effectLayer);
this.context.InitEffectHandler(n, null, !1);
o = l.default.IsActive ? l.default.EffectScale : 1;
n.setScale(o, o);
return [ 4, this.waitForTime(this.duration) ];

case 1:
s.sent();
a = this.context.cache;
cc.tween(n).to(.2, {
opacity: 0
}).call(function() {
n.opacity = 255;
a.DestroyNode(n);
}).start();
return [ 2 ];
}
});
});
};
__decorate([ u() ], t.prototype, "duration", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnDashBegin", null);
return __decorate([ c ], t);
}(a.default);
n.default = p;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../EffectSkill": "EffectSkill",
"./LeiTingChongCi2": "LeiTingChongCi2"
} ],
LengJing: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "23c8c2x1m5Bq4mDN54N+Nwm", "LengJing");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletBounceCount = 1;
return t;
}
Object.defineProperty(t.prototype, "summonFeatureOpt", {
get: function() {
return this.context.skillData.proto.summonFeaturesOpt;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
if (!(n = this.context.owner.GetSummon(this.summonFeatureOpt.summonId))) return [ 2 ];
n.bulletBounceCount += this.bulletBounceCount;
return [ 2 ];
});
});
};
__decorate([ a() ], t.prototype, "bulletBounceCount", void 0);
return __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
LeveFixedBg: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3259bSj9UhEboOd3vcsMXjl", "LeveFixedBg");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LeveFixedBg = void 0;
var o = cc._decorator, r = o.ccclass, i = o.property, a = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cam = null;
return t;
}
t.prototype.update = function() {
this.node.x = this.cam.node.x;
};
__decorate([ i(cc.Camera) ], t.prototype, "cam", void 0);
return __decorate([ r ], t);
}(cc.Component);
n.LeveFixedBg = a;
cc._RF.pop();
}, {} ],
LeveFixedScrollBg: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "13d65wS17JDZJH83LgpFGFe", "LeveFixedScrollBg");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LeveFixedScrollBg = void 0;
var o = cc._decorator, r = o.ccclass, i = o.property, a = (o.executeInEditMode, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cam = null;
t.bg = null;
t.speed = 0;
t.lastCamPos = cc.v2();
return t;
}
t.prototype.onLoad = function() {
this.cam.node.getPosition(this.lastCamPos);
};
t.prototype.update = function() {
var e = (this.cam.node.x - this.lastCamPos.x) * this.speed;
this.lastCamPos.x = this.node.x;
for (var t = this.node.children.length, n = 0; n < t; n++) {
var o = this.node.children[n];
o.x += e;
if (o.x >= 1350) {
o.x = this.node.children[0].x - 900;
o.setSiblingIndex(0);
}
}
this.node.x = this.cam.node.x;
};
__decorate([ i(cc.Camera) ], t.prototype, "cam", void 0);
__decorate([ i(cc.Sprite) ], t.prototype, "bg", void 0);
__decorate([ i() ], t.prototype, "speed", void 0);
return __decorate([ r ], t);
}(cc.Component));
n.LeveFixedScrollBg = a;
cc._RF.pop();
}, {} ],
LevelBgItem: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7220fwOHD1AaYPt3K5IA4lO", "LevelBgItem");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelBgItem = void 0;
var o = e("../../RVO2/IBody"), r = e("../LevelContext"), i = e("../MapItem"), a = e("../RenderSorter"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.tileBg = null;
t.topBg = null;
t.children = [];
t.poses = [];
t.bodies = [];
t.sorteres = [];
t.v1 = cc.v2();
t.curOpacity = -1;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
for (var t = 0; t < this.node.children.length; t++) {
var n = this.node.children[t];
this.children.push(n);
this.bodies.push(n.getComponent(o.IBody));
this.sorteres.push(n.getComponent(a.default));
this.poses.push(n.getPosition().clone());
}
};
t.prototype.OnInit = function(e, t) {
for (var n, o = 0; o < this.children.length; o++) {
var i, a = this.children[o], l = this.bodies[o], s = this.sorteres[o];
i = this.tileBg == a ? r.LevelContext.Instance.groundLayer : this.topBg == a ? null !== (n = r.LevelContext.Instance.textLayer) && void 0 !== n ? n : r.LevelContext.Instance.topLayer : s ? r.LevelContext.Instance.playerLayer : r.LevelContext.Instance.groundLayer;
a.parent != i && a.setParent(i);
this.v1.x = e + this.poses[o].x;
this.v1.y = t + this.poses[o].y;
l ? l.position = this.v1 : a.setPosition(e + this.poses[o].x, t + this.poses[o].y);
if (this.tileBg == a) {
this.tileBg.setSiblingIndex(0);
this.tileBg.zIndex = cc.macro.MIN_ZINDEX;
}
}
this.node.setPosition(e, t);
};
t.prototype.lateUpdate = function(t) {
e.prototype.lateUpdate.call(this, t);
if (this.curOpacity != this.node.opacity) {
this.curOpacity = this.node.opacity;
for (var n = 0; n < this.children.length; n++) this.children[n].opacity = this.curOpacity;
}
};
__decorate([ c(cc.Node) ], t.prototype, "tileBg", void 0);
__decorate([ c(cc.Node) ], t.prototype, "topBg", void 0);
return __decorate([ s ], t);
}(i.MapItem);
n.LevelBgItem = u;
cc._RF.pop();
}, {
"../../RVO2/IBody": "IBody",
"../LevelContext": "LevelContext",
"../MapItem": "MapItem",
"../RenderSorter": "RenderSorter"
} ],
LevelBgManager_3_v: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2d822rqdytFMpOZkav9qji3", "LevelBgManager_3_v");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelBgManager_3_v = void 0;
var o = e("../LevelContext"), r = e("./LevelBgManager"), i = cc._decorator, a = i.ccclass, l = i.property, s = (i.executeInEditMode, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.tileSize = cc.v2(1280, 800);
return t;
}
t.prototype.onLoad = function() {
this.cellSize.set(this.tileSize);
e.prototype.onLoad.call(this);
};
t.prototype.GetCoord = function(e) {
return (3 * Math.ceil(Math.abs(e) / 3) + e) % 3 + 1 - 1;
};
t.prototype.update = function() {
if (o.LevelContext.Instance && (!o.LevelContext.Instance.isFightingBoss || !o.LevelContext.Instance.bossRoom)) {
var e = o.LevelContext.Instance.camera;
if (e) {
var t = e.node.y, n = Math.round(t / this.cellSize.y);
if (this.curTile.x != n) {
this.curTile.x = n;
for (var r = -1; r < 2; r++) {
var i = n + r, a = this.GetCoord(i, i) % this.node.childrenCount, l = this.items[a], s = i * this.cellSize.y;
l.OnInit(l.node.x, s);
}
}
}
}
};
__decorate([ l() ], t.prototype, "tileSize", void 0);
return __decorate([ a ], t);
}(r.LevelBgManager));
n.LevelBgManager_3_v = s;
cc._RF.pop();
}, {
"../LevelContext": "LevelContext",
"./LevelBgManager": "LevelBgManager"
} ],
LevelBgManager_3: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7c9a7L3uvFJYIAY2uPW1NCx", "LevelBgManager_3");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelBgManager_3 = void 0;
var o = e("../LevelContext"), r = e("./LevelBgManager"), i = cc._decorator, a = i.ccclass, l = i.property, s = (i.executeInEditMode, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.tileSize = cc.v2(1024, 700);
return t;
}
t.prototype.onLoad = function() {
this.cellSize.set(this.tileSize);
e.prototype.onLoad.call(this);
};
t.prototype.GetCoord = function(e) {
return (3 * Math.ceil(Math.abs(e) / 3) + e) % 3 + 1 - 1;
};
t.prototype.update = function() {
if (o.LevelContext.Instance && (!o.LevelContext.Instance.isFightingBoss || !o.LevelContext.Instance.bossRoom)) {
var e = o.LevelContext.Instance.camera;
if (e) {
var t = e.node.x, n = Math.round(t / this.cellSize.x);
if (this.curTile.y != n) {
this.curTile.y = n;
for (var r = -1; r < 2; r++) {
var i = n + r, a = this.GetCoord(i, i) % this.node.childrenCount, l = this.items[a], s = i * this.cellSize.x;
l.OnInit(s, l.node.y);
}
}
}
}
};
__decorate([ l() ], t.prototype, "tileSize", void 0);
return __decorate([ a ], t);
}(r.LevelBgManager));
n.LevelBgManager_3 = s;
cc._RF.pop();
}, {
"../LevelContext": "LevelContext",
"./LevelBgManager": "LevelBgManager"
} ],
LevelBgManager_Static: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "23a3c6Q46tEeaLwfTJmo2Xw", "LevelBgManager_Static");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelBgManager_Static = void 0;
var o = e("./LevelBgManager"), r = cc._decorator, i = r.ccclass, a = (r.property, 
r.executeInEditMode, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.start = function() {
e.prototype.start.call(this);
for (var t = 0; t < this.items.length; t++) {
var n = this.items[t];
n.OnInit(n.node.x, n.node.y);
}
};
t.prototype.update = function() {};
return __decorate([ i ], t);
}(o.LevelBgManager));
n.LevelBgManager_Static = a;
cc._RF.pop();
}, {
"./LevelBgManager": "LevelBgManager"
} ],
LevelBgManager: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "30515BYKAdCm59bbadgfKaA", "LevelBgManager");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelBgManager = void 0;
var o = e("../LevelContext"), r = e("./LevelBgItem"), i = cc._decorator, a = i.ccclass, l = i.property, s = (i.executeInEditMode, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.mat = null;
t.cellSize = cc.v2(1024, 1024);
t.curTile = cc.v2(999, 999);
t.items = [];
return t;
}
t.prototype.onLoad = function() {
for (var e = 0; e < this.node.children.length; e++) {
var t = this.node.children[e];
this.items.push(t.getComponent(r.LevelBgItem));
}
};
t.prototype.start = function() {
this.update(0);
this.node.setSiblingIndex(this.node.parent.childrenCount - 1);
};
t.prototype.GetCoord = function(e, t) {
return (3 * Math.ceil(Math.abs(e) / 3) + e) % 3 + 1 + (3 * Math.ceil(Math.abs(t) / 3) - t) % 3 * 3 - 1;
};
t.prototype.update = function() {
if (o.LevelContext.Instance && (!o.LevelContext.Instance.isFightingBoss || !o.LevelContext.Instance.bossRoom)) {
var e = o.LevelContext.Instance.camera;
if (e) {
var t = e.node.x, n = e.node.y, r = Math.round(n / this.cellSize.y), i = Math.round(t / this.cellSize.x);
if (this.curTile.x != r || this.curTile.y != i) {
this.curTile.x = r;
this.curTile.y = i;
for (var a = -1; a < 2; a++) for (var l = -1; l < 2; l++) {
var s = i + l, c = r + a, u = this.GetCoord(s, c) % this.node.childrenCount, p = this.items[u], d = s * this.cellSize.y, f = c * this.cellSize.x;
p.OnInit(d, f);
}
}
}
}
};
__decorate([ l(cc.Material) ], t.prototype, "mat", void 0);
__decorate([ l(cc.Vec2) ], t.prototype, "cellSize", void 0);
return __decorate([ a ], t);
}(cc.Component));
n.LevelBgManager = s;
cc._RF.pop();
}, {
"../LevelContext": "LevelContext",
"./LevelBgItem": "LevelBgItem"
} ],
LevelConfig_Activity: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "387c59PO15K97y3LQam4m98", "LevelConfig_Activity");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./LevelConfig");
o.LevelConfig.AddLevelConfig(new o.LevelProto(11, -1, "初级试炼", "", "Unpack/Level/1", "Prefabs/Level/Level1", cc.v2(3470, 2290), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new o.LevelSpawnInfo([ new o.ContinusSpawnMonster(0, [ 1.01 ], 40, [ 4, 5 ], 1.3), new o.ContinusSpawnMonster(30, [ 1.01 ], 50, [ 4, 5 ], 1), new o.ContinusSpawnMonster(60, [ 2.01 ], 60, [ 6, 7 ], 1), new o.ContinusSpawnMonster(120, [ 4.01 ], 40, [ 5, 6 ], 1), new o.ContinusSpawnMonster(180, [ 5.01 ], 70, [ 7, 8 ], 1), new o.ContinusSpawnMonster(240, [ 6.01 ], 80, [ 8, 8 ], 1), new o.ContinusSpawnMonster(300, [ 6.01 ], 40, [ 4, 4 ], 1) ], [ new o.OnceOneMonster(61, 3.01), new o.OnceOneMonster(64, 3.01), new o.OnceOneMonster(71, 3.01), new o.OnceOneMonster(77, 3.01), new o.OnceOneMonster(89, 3.01), new o.OnceOneMonster(104, 3.01), new o.OnceOneMonster(119, 3.01), new o.OnceOneMonster(123, 3.01), new o.OnceOneMonster(129, 3.01), new o.OnceOneMonster(137, 3.01), new o.OnceOneMonster(148, 3.01), new o.OnceOneMonster(155, 3.01), new o.OnceOneMonster(162, 3.01), new o.OnceOneMonster(175, 3.01), new o.OnceOneMonster(120, 1001.01), new o.OnceOneMonster(182, 3.01), new o.OnceOneMonster(188, 3.01), new o.OnceOneMonster(195, 3.01), new o.OnceOneMonster(203, 3.01), new o.OnceOneMonster(210, 3.01), new o.OnceOneMonster(215, 3.01), new o.OnceOneMonster(220, 3.01), new o.OnceOneMonster(240, 1002.01), new o.OnceOneMonster(243, 3.01), new o.OnceOneMonster(252, 3.01), new o.OnceOneMonster(262, 3.01), new o.OnceOneMonster(269, 3.01), new o.OnceOneMonster(275, 3.01), new o.OnceOneMonster(280, 3.01), new o.OnceOneMonster(285, 3.01), new o.OnceWanning(290), new o.OnceOneMonster(300, 1003.01) ], null, null, "Level1_Lighting"), null, null, null, null, {
types: [ 2, 2 ],
count: 3
}));
o.LevelConfig.AddLevelConfig(new o.LevelProto(12, -1, "中级试炼", "", "Unpack/Level/2", "Prefabs/Level/Level2", cc.v2(500, 300), !0, !1, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(-500, 350) ], new o.LevelSpawnInfo([ new o.ContinusSpawnMonster(0, [ 1.02 ], 40, [ 4, 5 ], 1.2), new o.ContinusSpawnMonster(30, [ 1.02 ], 50, [ 4, 5 ], 1), new o.ContinusSpawnMonster(60, [ 2.02 ], 60, [ 6, 7 ], 1), new o.ContinusSpawnMonster(120, [ 4.02 ], 40, [ 7, 8 ], 1), new o.ContinusSpawnMonster(180, [ 5.02 ], 70, [ 7, 8 ], 1), new o.ContinusSpawnMonster(240, [ 6.02 ], 80, [ 8, 10 ], 1), new o.ContinusSpawnMonster(300, [ 6.02 ], 60, [ 4, 4 ], 1) ], [ new o.OnceOneMonster(61, 3.02), new o.OnceOneMonster(64, 3.02), new o.OnceOneMonster(71, 3.02), new o.OnceOneMonster(77, 3.02), new o.OnceOneMonster(89, 3.02), new o.OnceOneMonster(104, 3.02), new o.OnceOneMonster(119, 3.02), new o.OnceOneMonster(123, 3.02), new o.OnceOneMonster(129, 3.02), new o.OnceOneMonster(137, 3.02), new o.OnceOneMonster(148, 3.02), new o.OnceOneMonster(155, 3.02), new o.OnceOneMonster(162, 3.02), new o.OnceOneMonster(175, 3.02), new o.OnceOneMonster(120, 1001.02), new o.OnceOneMonster(182, 3.02), new o.OnceOneMonster(188, 3.02), new o.OnceOneMonster(195, 3.02), new o.OnceOneMonster(203, 3.02), new o.OnceOneMonster(210, 3.02), new o.OnceOneMonster(215, 3.02), new o.OnceOneMonster(220, 3.02), new o.OnceOneMonster(240, 1002.02), new o.OnceOneMonster(243, 3.02), new o.OnceOneMonster(252, 3.02), new o.OnceOneMonster(262, 3.02), new o.OnceOneMonster(269, 3.02), new o.OnceOneMonster(270, 7.02), new o.OnceOneMonster(275, 3.02), new o.OnceOneMonster(280, 3.02), new o.OnceOneMonster(285, 3.02), new o.OnceWanning(290), new o.OnceOneMonster(300, 1003.02) ], null, null, "Level2_Lighting"), null, null, null, null, {
types: [ 2, 2 ],
count: 5
}));
o.LevelConfig.AddLevelConfig(new o.LevelProto(13, -1, "高级试炼", "", "Unpack/Level/2", "Prefabs/Level/Level3", cc.v2(0, 0), !1, !0, [ cc.v2(-550, 550), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new o.LevelSpawnInfo([ new o.ContinusSpawnMonster(0, [ 1.03 ], 40, [ 4, 5 ], 1), new o.ContinusSpawnMonster(30, [ 1.03 ], 50, [ 4, 5 ], 1), new o.ContinusSpawnMonster(60, [ 2.03 ], 60, [ 6, 7 ], 1), new o.ContinusSpawnMonster(120, [ 4.03 ], 50, [ 7, 8 ], 1), new o.ContinusSpawnMonster(180, [ 5.03 ], 70, [ 7, 8 ], 1), new o.ContinusSpawnMonster(240, [ 6.03 ], 80, [ 8, 10 ], 1), new o.ContinusSpawnMonster(300, [ 6.03 ], 40, [ 4, 4 ], 1) ], [ new o.OnceOneMonster(61, 3.03), new o.OnceOneMonster(64, 3.03), new o.OnceOneMonster(71, 3.03), new o.OnceOneMonster(77, 3.03), new o.OnceOneMonster(89, 3.03), new o.OnceOneMonster(104, 3.03), new o.OnceOneMonster(119, 3.03), new o.OnceOneMonster(123, 3.03), new o.OnceOneMonster(129, 3.03), new o.OnceOneMonster(137, 3.03), new o.OnceOneMonster(148, 3.03), new o.OnceOneMonster(155, 3.03), new o.OnceOneMonster(162, 3.03), new o.OnceOneMonster(175, 3.03), new o.OnceOneMonster(120, 1001.03), new o.OnceOneMonster(182, 3.03), new o.OnceOneMonster(188, 3.03), new o.OnceOneMonster(195, 3.03), new o.OnceOneMonster(203, 3.03), new o.OnceOneMonster(210, 3.03), new o.OnceOneMonster(215, 3.03), new o.OnceOneMonster(220, 3.03), new o.OnceOneMonster(240, 1002.03), new o.OnceOneMonster(243, 3.03), new o.OnceOneMonster(252, 3.03), new o.OnceOneMonster(262, 3.03), new o.OnceOneMonster(269, 3.03), new o.OnceOneMonster(270, 7.03), new o.OnceOneMonster(275, 3.03), new o.OnceOneMonster(280, 7.03), new o.OnceOneMonster(285, 3.03), new o.OnceWanning(290), new o.OnceOneMonster(300, 1003.03) ], null, null, "Level2_Lighting"), null, null, null, null, {
types: [ 2, 3 ],
count: 6
}));
cc._RF.pop();
}, {
"./LevelConfig": "LevelConfig"
} ],
LevelConfig_Chapter1: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "66939zG7wJCHr31tSNbYthX", "LevelConfig_Chapter1");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./LevelConfig"), r = e("./GiftConfig"), i = e("./ArchivementConfig"), a = e("./WeaponConfig");
o.LevelConfig.AddLevelConfig(new o.LevelProto(1, 1, "1-1", "", "Unpack/Level/1", "Prefabs/Level/Level1", cc.v2(3470, 2290), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new o.LevelSpawnInfo([ new o.ContinusSpawnMonster(0, [ 1 ], 10, [ 3, 3 ], 1.6), new o.ContinusSpawnMonster(20, [ 1 ], 15, [ 3, 3 ], 1.3), new o.ContinusSpawnMonster(30, [ 1 ], 20, [ 4, 4 ], 1.2), new o.ContinusSpawnMonster(60, [ 1 ], 30, [ 5, 5 ], 1), new o.ContinusSpawnMonster(86, [ 1 ], 9, [ 5, 5 ], 2), new o.ContinusSpawnMonster(90, [ 4 ], 17, [ 5, 6 ], 1), new o.ContinusSpawnMonster(120, [ 2 ], 40, [ 6, 7 ], 1), new o.ContinusSpawnMonster(180, [ 2 ], 9, [ 4, 4 ], 2), new o.ContinusSpawnMonster(184, [ 2 ], 50, [ 4, 6 ], 1.4), new o.ContinusSpawnMonster(240, [ 5 ], 80, [ 6, 8 ], 1.2), new o.ContinusSpawnMonster(300, [ 7 ], 20, [ 6, 7 ], 1), new o.ContinusSpawnMonster(360, [ 3 ], 80, [ 6, 8 ], 1), new o.ContinusSpawnMonster(390, [ 8 ], 40, [ 4, 5 ], 1), new o.ContinusSpawnMonster(420, [ 8 ], 9, [ 4, 4 ], 2), new o.ContinusSpawnMonster(424, [ 8 ], 80, [ 6, 8 ], 1), new o.ContinusSpawnMonster(480, [ 6 ], 40, [ 4, 5 ], 1.1), new o.ContinusSpawnMonster(540, [ 6 ], 100, [ 8, 12 ], 1), new o.ContinusSpawnMonster(600, [ 10 ], 40, [ 4, 5 ], 1.2), new o.ContinusSpawnMonster(660, [ 10 ], 9, [ 4, 4 ], 2), new o.ContinusSpawnMonster(664, [ 10 ], 80, [ 6, 8 ], 1), new o.ContinusSpawnMonster(720, [ 11 ], 60, [ 5, 5 ], 1), new o.ContinusSpawnMonster(780, [ 12 ], 9, [ 4, 4 ], 2), new o.ContinusSpawnMonster(784, [ 12 ], 50, [ 4, 5 ], 1.2), new o.ContinusSpawnMonster(840, [ 12 ], 100, [ 8, 12 ], 1), new o.ContinusSpawnMonster(900, [ 12 ], 0, [ 4, 5 ], 1) ], [ new o.OnceLeftRightMultiMonster(60, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(68, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(76, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(84, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceOneMonster(129, 13), new o.OnceOneMonster(137, 13), new o.OnceOneMonster(148, 13), new o.OnceOneMonster(155, 13), new o.OnceOneMonster(162, 13), new o.OnceOneMonster(174, 13), new o.OnceWanning1(175), new o.OnceOneMonster(179, 1001), new o.OnceOneMonster(188, 13), new o.OnceOneMonster(195, 13), new o.OnceOneMonster(203, 13), new o.OnceOneMonster(210, 13), new o.OnceOneMonster(215, 13), new o.OnceOneMonster(220, 13), new o.OnceWanning2(235), new o.OnceOneMonster(258, 13), new o.OnceOneMonster(269, 13), new o.OnceOneMonster(280, 13), new o.OnceOneMonster(285, 13), new o.OnceOneMonster(290, 13), new o.OnceLeftRightMultiMonster(305, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(318, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(326, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(334, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceOneMonster(340, 13), new o.OnceOneMonster(345, 13), new o.OnceOneMonster(366, 14), new o.OnceMultiMonster_Rush(370, [ 35 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(373, [ 35 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(376, 14), new o.OnceOneMonster(382, 14), new o.OnceOneMonster(387, 14), new o.OnceLeftRightMultiMonster(398, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(406, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(414, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceWanning1(415), new o.OnceOneMonster(419, 1002), new o.OnceOneMonster(430, 14), new o.OnceOneMonster(435, 14), new o.OnceOneMonster(438, 14), new o.OnceOneMonster(445, 14), new o.OnceOneMonster(451, 14), new o.OnceOneMonster(460, 14), new o.OnceOneMonster(470, 14), new o.OnceLeftRightMultiMonster(484, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(492, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(500, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(508, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceOneMonster(530, 15), new o.OnceWanning2(535), new o.OnceMultiMonster_Rush(550, [ 35 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(553, [ 35 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(556, [ 35 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceLeftRightMultiMonster(608, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(616, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(624, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceLeftRightMultiMonster(632, [ 21 ], "Prefabs/Level/EnemyGroup2", .01, !1), new o.OnceWanning1(655), new o.OnceOneMonster(659, 1003), new o.OnceOneMonster(687, 16), new o.OnceMultiMonster_Rush(723, [ 35 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(726, [ 35 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(729, [ 35 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(732, [ 35 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(780, 1004), new o.OnceWanning2(835), new o.OnceOneMonster(850, 17), new o.OnceOneMonster(860, 17), new o.OnceOneMonster(865, 17), new o.OnceOneMonster(870, 17), new o.OnceWanning(890), new o.OnceOneMonster(900, 1005) ], null, null, "Level1_Lighting"), null, null, null, null, null, [ new r.RewardProto(i.UnlockType.Coin, 1e3) ]));
o.LevelConfig.AddLevelConfig(new o.LevelProto(2, 1, "1-2", "", "Unpack/Level/1", "Prefabs/Level/Level1", cc.v2(3470, 2290), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new o.LevelSpawnInfo([ new o.ContinusSpawnMonster(0, [ 1.1 ], 25, [ 4, 4 ], 2), new o.ContinusSpawnMonster(60, [ 1.1 ], 50, [ 6, 7 ], 1), new o.ContinusSpawnMonster(120, [ 2.1 ], 60, [ 7, 8 ], 1.2), new o.ContinusSpawnMonster(180, [ 2.1 ], 80, [ 7, 8 ], 1), new o.ContinusSpawnMonster(240, [ 3.1 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(300, [ 6.1 ], 80, [ 6, 7 ], 1.2), new o.ContinusSpawnMonster(360, [ 7.1 ], 80, [ 6, 6 ], 1), new o.ContinusSpawnMonster(420, [ 7.1 ], 100, [ 8, 8 ], 1), new o.ContinusSpawnMonster(480, [ 16.1 ], 100, [ 6, 8 ], 1), new o.ContinusSpawnMonster(540, [ 17.1 ], 120, [ 8, 10 ], 1), new o.ContinusSpawnMonster(600, [ 21.1 ], 40, [ 4, 5 ], 1.2), new o.ContinusSpawnMonster(660, [ 21.1 ], 60, [ 6, 7 ], 1), new o.ContinusSpawnMonster(720, [ 22.1 ], 80, [ 7, 7 ], 1), new o.ContinusSpawnMonster(780, [ 23.1 ], 80, [ 8, 8 ], 1), new o.ContinusSpawnMonster(840, [ 23.1 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(900, [ 24.1 ], 80, [ 8, 10 ], 1), new o.ContinusSpawnMonster(960, [ 5.1 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(1020, [ 10.1 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(1080, [ 26.1 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(1140, [ 26.1 ], 100, [ 10, 10 ], 1), new o.ContinusSpawnMonster(1200, [ 27.1 ], 0, [ 4, 6 ], 1) ], [ new o.OnceOneMonster(61, 11.1), new o.OnceOneMonster(64, 11.1), new o.OnceOneMonster(65, 11.1), new o.OnceOneMonster(71, 11.1), new o.OnceOneMonster(77, 11.1), new o.OnceOneMonster(80, 11.1), new o.OnceOneMonster(89, 11.1), new o.OnceOneMonster(95, 11.1), new o.OnceOneMonster(98, 11.1), new o.OnceOneMonster(104, 11.1), new o.OnceOneMonster(119, 11.1), new o.OnceOneMonster(123, 11.1), new o.OnceOneMonster(129, 11.1), new o.OnceOneMonster(132, 11.1), new o.OnceOneMonster(137, 11.1), new o.OnceOneMonster(142, 11.1), new o.OnceOneMonster(148, 11.1), new o.OnceOneMonster(155, 11.1), new o.OnceOneMonster(162, 11.1), new o.OnceOneMonster(172, 11.1), new o.OnceOneMonster(174, 11.1), new o.OnceWanning1(175), new o.OnceOneMonster(180, 1001.1), new o.OnceOneMonster(182, 11.1), new o.OnceOneMonster(185, 11.1), new o.OnceOneMonster(188, 11.1), new o.OnceOneMonster(195, 11.1), new o.OnceOneMonster(203, 11.1), new o.OnceOneMonster(210, 11.1), new o.OnceOneMonster(215, 11.1), new o.OnceOneMonster(220, 11.1), new o.OnceOneMonster(243, 11.1), new o.OnceOneMonster(246, 11.1), new o.OnceOneMonster(252, 11.1), new o.OnceOneMonster(258, 11.1), new o.OnceOneMonster(262, 11.1), new o.OnceOneMonster(269, 11.1), new o.OnceOneMonster(275, 11.1), new o.OnceOneMonster(280, 11.1), new o.OnceOneMonster(285, 11.1), new o.OnceOneMonster(290, 11.1), new o.OnceMultiMonster_Rush(300, [ 36.1 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(306, 11.1), new o.OnceOneMonster(309, 11.1), new o.OnceOneMonster(315, 11.1), new o.OnceOneMonster(320, 11.1), new o.OnceOneMonster(326, 11.1), new o.OnceOneMonster(333, 11.1), new o.OnceOneMonster(340, 11.1), new o.OnceOneMonster(345, 11.1), new o.OnceOneMonster(363, 31.1), new o.OnceOneMonster(366, 12.1), new o.OnceOneMonster(369, 12.1), new o.OnceOneMonster(376, 12.1), new o.OnceOneMonster(382, 12.1), new o.OnceOneMonster(387, 12.1), new o.OnceOneMonster(395, 12.1), new o.OnceOneMonster(400, 31.1), new o.OnceOneMonster(403, 12.1), new o.OnceOneMonster(406, 12.1), new o.OnceWanning1(415), new o.OnceOneMonster(420, 1002.1), new o.OnceOneMonster(425, 12.1), new o.OnceOneMonster(427, 31.1), new o.OnceOneMonster(430, 12.1), new o.OnceOneMonster(435, 12.1), new o.OnceOneMonster(438, 12.1), new o.OnceOneMonster(445, 12.1), new o.OnceOneMonster(451, 12.1), new o.OnceOneMonster(460, 12.1), new o.OnceOneMonster(465, 31.1), new o.OnceOneMonster(470, 12.1), new o.OnceMultiMonster_Rush(480, [ 36.1 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(485, 13.1), new o.OnceOneMonster(492, 13.1), new o.OnceOneMonster(498, 13.1), new o.OnceOneMonster(503, 13.1), new o.OnceOneMonster(510, 13.1), new o.OnceOneMonster(512, 13.1), new o.OnceOneMonster(530, 13.1), new o.OnceMultiMonster_Rush(600, [ 36.1 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(620, 42.1), new o.OnceOneMonster(625, 42.1), new o.OnceOneMonster(630, 42.1), new o.OnceWanning1(655), new o.OnceOneMonster(660, 1003.1), new o.OnceOneMonster(661, 32.1), new o.OnceOneMonster(663, 14.1), new o.OnceOneMonster(666, 14.1), new o.OnceOneMonster(668, 14.1), new o.OnceOneMonster(680, 14.1), new o.OnceOneMonster(685, 32.1), new o.OnceOneMonster(687, 14.1), new o.OnceMultiMonster_Rush(718, [ 36.1 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(723, 15.1), new o.OnceOneMonster(725, 15.1), new o.OnceOneMonster(727, 32.1), new o.OnceOneMonster(730, 15.1), new o.OnceOneMonster(745, 15.1), new o.OnceOneMonster(760, 15.1), new o.OnceOneMonster(765, 32.1), new o.OnceOneMonster(790, 41.1), new o.OnceOneMonster(805, 41.1), new o.OnceOneMonster(820, 41.1), new o.OnceMultiMonster_Rush(838, [ 36.1 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(901, 32.1), new o.OnceOneMonster(903, 15.1), new o.OnceOneMonster(906, 15.1), new o.OnceOneMonster(909, 15.1), new o.OnceOneMonster(915, 15.1), new o.OnceOneMonster(923, 32.1), new o.OnceOneMonster(928, 15.1), new o.OnceWanning1(925), new o.OnceOneMonster(930, 1004.1), new o.OnceOneMonster(950, 15.1), new o.OnceOneMonster(955, 15.1), new o.OnceOneMonster(958, 15.1), new o.OnceMultiMonster_Rush(960, [ 36.1 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(963, 32.1), new o.OnceOneMonster(980, 32.1), new o.OnceOneMonster(1020, 32.1), new o.OnceMultiMonster_Rush(1050, [ 36.1 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(1080, 33.1), new o.OnceOneMonster(1107, 33.1), new o.OnceOneMonster(1130, 33.1), new o.OnceOneMonster(1165, 33.1), new o.OnceOneMonster(1186, 33.1), new o.OnceWanning(1190), new o.OnceOneMonster(1200, 1005.1) ], null, null, "Level1_Lighting"), null, null, null, null, null, [ new r.RewardProto(i.UnlockType.BluePrint, 5, a.WeaponType.HandGun) ]));
o.LevelConfig.AddLevelConfig(new o.LevelProto(3, 1, "1-3", "", "Unpack/Level/1", "Prefabs/Level/Level1", cc.v2(3470, 2290), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new o.LevelSpawnInfo([ new o.ContinusSpawnMonster(0, [ 1.2 ], 30, [ 4, 6 ], 2), new o.ContinusSpawnMonster(60, [ 1.2 ], 50, [ 6, 7 ], 1), new o.ContinusSpawnMonster(120, [ 2.2 ], 70, [ 7, 8 ], 1.2), new o.ContinusSpawnMonster(180, [ 2.2 ], 80, [ 7, 8 ], 1), new o.ContinusSpawnMonster(240, [ 3.2 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(300, [ 6.2 ], 80, [ 6, 6 ], 1), new o.ContinusSpawnMonster(360, [ 7.2 ], 80, [ 6, 6 ], 1), new o.ContinusSpawnMonster(420, [ 7.2 ], 100, [ 8, 8 ], 1), new o.ContinusSpawnMonster(480, [ 16.2 ], 100, [ 6, 8 ], 1), new o.ContinusSpawnMonster(540, [ 17.2 ], 120, [ 10, 12 ], 1), new o.ContinusSpawnMonster(600, [ 21.2 ], 40, [ 4, 5 ], 1.1), new o.ContinusSpawnMonster(660, [ 21.2 ], 60, [ 6, 7 ], 1), new o.ContinusSpawnMonster(720, [ 22.2 ], 80, [ 7, 8 ], 1), new o.ContinusSpawnMonster(780, [ 23.2 ], 100, [ 8, 9 ], 1), new o.ContinusSpawnMonster(840, [ 23.2 ], 120, [ 8, 10 ], 1), new o.ContinusSpawnMonster(900, [ 24.2 ], 80, [ 8, 10 ], 1), new o.ContinusSpawnMonster(960, [ 5.2 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(1020, [ 10.2 ], 120, [ 8, 10 ], 1), new o.ContinusSpawnMonster(1080, [ 26.2 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(1140, [ 26.2 ], 120, [ 10, 10 ], .8), new o.ContinusSpawnMonster(1200, [ 27.2 ], 0, [ 6, 8 ], 1) ], [ new o.OnceOneMonster(61, 11.2), new o.OnceOneMonster(64, 11.2), new o.OnceOneMonster(65, 11.2), new o.OnceOneMonster(71, 11.2), new o.OnceOneMonster(77, 11.2), new o.OnceOneMonster(80, 11.2), new o.OnceOneMonster(89, 11.2), new o.OnceOneMonster(95, 11.2), new o.OnceOneMonster(98, 11.2), new o.OnceOneMonster(104, 11.2), new o.OnceOneMonster(119, 11.2), new o.OnceOneMonster(123, 11.2), new o.OnceOneMonster(129, 11.2), new o.OnceOneMonster(132, 11.2), new o.OnceOneMonster(137, 11.2), new o.OnceOneMonster(142, 11.2), new o.OnceOneMonster(148, 11.2), new o.OnceOneMonster(155, 11.2), new o.OnceOneMonster(162, 11.2), new o.OnceOneMonster(172, 11.2), new o.OnceOneMonster(174, 11.2), new o.OnceWanning1(175), new o.OnceOneMonster(180, 1001.2), new o.OnceOneMonster(182, 11.2), new o.OnceOneMonster(185, 11.2), new o.OnceOneMonster(188, 11.2), new o.OnceOneMonster(195, 11.2), new o.OnceOneMonster(203, 11.2), new o.OnceOneMonster(210, 11.2), new o.OnceOneMonster(215, 11.2), new o.OnceOneMonster(220, 11.2), new o.OnceOneMonster(243, 11.2), new o.OnceOneMonster(246, 11.2), new o.OnceOneMonster(252, 11.2), new o.OnceOneMonster(258, 11.2), new o.OnceOneMonster(262, 11.2), new o.OnceOneMonster(269, 11.2), new o.OnceOneMonster(275, 11.2), new o.OnceOneMonster(280, 11.2), new o.OnceOneMonster(285, 11.2), new o.OnceOneMonster(290, 11.2), new o.OnceMultiMonster_Rush(300, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(306, 11.2), new o.OnceOneMonster(309, 11.2), new o.OnceOneMonster(315, 11.2), new o.OnceOneMonster(320, 11.2), new o.OnceOneMonster(326, 11.2), new o.OnceOneMonster(333, 11.2), new o.OnceOneMonster(340, 11.2), new o.OnceOneMonster(345, 11.2), new o.OnceMultiMonster_Rush(360, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(363, 31.2), new o.OnceOneMonster(366, 12.2), new o.OnceOneMonster(369, 12.2), new o.OnceOneMonster(376, 12.2), new o.OnceOneMonster(381, 31.2), new o.OnceOneMonster(382, 12.2), new o.OnceOneMonster(387, 12.2), new o.OnceOneMonster(395, 12.2), new o.OnceOneMonster(400, 31.2), new o.OnceOneMonster(403, 12.2), new o.OnceOneMonster(406, 12.2), new o.OnceWanning1(415), new o.OnceOneMonster(420, 1002.2), new o.OnceOneMonster(425, 12.2), new o.OnceOneMonster(427, 31.2), new o.OnceOneMonster(430, 12.2), new o.OnceOneMonster(435, 12.2), new o.OnceOneMonster(438, 12.2), new o.OnceOneMonster(442, 31.2), new o.OnceOneMonster(445, 12.2), new o.OnceOneMonster(451, 12.2), new o.OnceOneMonster(460, 12.2), new o.OnceOneMonster(465, 31.2), new o.OnceOneMonster(470, 12.2), new o.OnceMultiMonster_Rush(480, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(485, 13.2), new o.OnceOneMonster(492, 13.2), new o.OnceOneMonster(498, 13.2), new o.OnceOneMonster(503, 13.2), new o.OnceOneMonster(510, 13.2), new o.OnceOneMonster(512, 13.2), new o.OnceOneMonster(530, 13.2), new o.OnceOneMonster(550, 19.2), new o.OnceOneMonster(555, 19.2), new o.OnceOneMonster(570, 19.2), new o.OnceMultiMonster_Rush(600, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(620, 42.2), new o.OnceOneMonster(625, 42.2), new o.OnceOneMonster(630, 42.2), new o.OnceWanning1(655), new o.OnceOneMonster(660, 1003.2), new o.OnceOneMonster(661, 32.2), new o.OnceOneMonster(663, 14.2), new o.OnceOneMonster(666, 14.2), new o.OnceOneMonster(668, 14.2), new o.OnceOneMonster(670, 32.2), new o.OnceOneMonster(680, 14.2), new o.OnceOneMonster(685, 32.2), new o.OnceOneMonster(687, 14.2), new o.OnceMultiMonster_Rush(718, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(723, 15.2), new o.OnceOneMonster(725, 15.2), new o.OnceOneMonster(727, 32.2), new o.OnceOneMonster(730, 15.2), new o.OnceOneMonster(736, 32.2), new o.OnceOneMonster(745, 15.2), new o.OnceOneMonster(750, 32.2), new o.OnceOneMonster(760, 15.2), new o.OnceOneMonster(765, 32.2), new o.OnceOneMonster(790, 41.2), new o.OnceOneMonster(805, 41.2), new o.OnceOneMonster(820, 41.2), new o.OnceMultiMonster_Rush(838, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(850, 40.2), new o.OnceOneMonster(870, 40.2), new o.OnceOneMonster(890, 40.2), new o.OnceOneMonster(901, 32.2), new o.OnceOneMonster(903, 15.2), new o.OnceOneMonster(906, 15.2), new o.OnceOneMonster(907, 32.2), new o.OnceOneMonster(909, 15.2), new o.OnceOneMonster(915, 15.2), new o.OnceOneMonster(923, 32.2), new o.OnceOneMonster(928, 15.2), new o.OnceWanning1(925), new o.OnceOneMonster(930, 1004.2), new o.OnceOneMonster(940, 32.2), new o.OnceOneMonster(950, 15.2), new o.OnceOneMonster(955, 15.2), new o.OnceOneMonster(958, 15.2), new o.OnceMultiMonster_Rush(960, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(963, 32.2), new o.OnceOneMonster(980, 32.2), new o.OnceOneMonster(990, 32.2), new o.OnceOneMonster(1020, 32.2), new o.OnceOneMonster(1045, 32.2), new o.OnceMultiMonster_Rush(1050, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(1080, 33.2), new o.OnceOneMonster(1095, 33.2), new o.OnceOneMonster(1115, 33.2), new o.OnceOneMonster(1121, 33.2), new o.OnceOneMonster(1130, 33.2), new o.OnceOneMonster(1152, 33.2), new o.OnceOneMonster(1178, 33.2), new o.OnceOneMonster(1186, 33.2), new o.OnceWanning(1190), new o.OnceOneMonster(1200, 1005.2) ], null, null, "Level1_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(i.UnlockType.Diamond, 50) ]));
cc._RF.pop();
}, {
"./ArchivementConfig": "ArchivementConfig",
"./GiftConfig": "GiftConfig",
"./LevelConfig": "LevelConfig",
"./WeaponConfig": "WeaponConfig"
} ],
LevelConfig_Chapter2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "308deZWjbBGoIMHHEmZ9xbU", "LevelConfig_Chapter2");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./ArchivementConfig"), r = e("./GiftConfig"), i = e("./LevelConfig"), a = e("./WeaponConfig");
i.LevelConfig.AddLevelConfig(new i.LevelProto(5, 2, "2-1", "", "Unpack/Level/2", "Prefabs/Level/Level2", cc.v2(500, 300), !0, !1, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(-500, 350) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.4 ], 20, [ 4, 5 ], 1.4), new i.ContinusSpawnMonster(30, [ 1.4 ], 35, [ 4, 5 ], 1.2), new i.ContinusSpawnMonster(60, [ 1.4 ], 50, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 2.4 ], 50, [ 7, 8 ], 1.2), new i.ContinusSpawnMonster(180, [ 2.4 ], 60, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 3.4 ], 60, [ 8, 10 ], 1.4), new i.ContinusSpawnMonster(300, [ 60.4 ], 60, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.4 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.4 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.4 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 61.4 ], 60, [ 4, 4 ], .8), new i.ContinusSpawnMonster(510, [ 16.4 ], 100, [ 6, 7 ], 1.1), new i.ContinusSpawnMonster(540, [ 8.4 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.4 ], 40, [ 4, 6 ], 1.2), new i.ContinusSpawnMonster(660, [ 26.4 ], 60, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.4 ], 120, [ 6, 8 ], .5), new i.ContinusSpawnMonster(780, [ 27.4 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 27.4 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.4 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(960, [ 67.4 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.4 ], 60, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 46.4 ], 60, [ 4, 4 ], 1.2), new i.ContinusSpawnMonster(1110, [ 21.4 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.4 ], 120, [ 8, 8 ], 1), new i.ContinusSpawnMonster(1200, [ 21.4 ], 0, [ 8, 8 ], 1) ], [ new i.OnceOneMonster(61, 11.4), new i.OnceOneMonster(64, 11.4), new i.OnceOneMonster(71, 11.4), new i.OnceOneMonster(77, 11.4), new i.OnceOneMonster(89, 11.4), new i.OnceOneMonster(104, 11.4), new i.OnceOneMonster(119, 11.4), new i.OnceOneMonster(123, 11.4), new i.OnceOneMonster(129, 11.4), new i.OnceOneMonster(137, 11.4), new i.OnceOneMonster(148, 11.4), new i.OnceOneMonster(155, 11.4), new i.OnceOneMonster(162, 11.4), new i.OnceOneMonster(175, 11.4), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.4), new i.OnceOneMonster(182, 12.4), new i.OnceOneMonster(185, 12.4), new i.OnceOneMonster(188, 12.4), new i.OnceOneMonster(195, 12.4), new i.OnceOneMonster(203, 12.4), new i.OnceOneMonster(210, 12.4), new i.OnceOneMonster(215, 12.4), new i.OnceOneMonster(220, 12.4), new i.OnceOneMonster(243, 12.4), new i.OnceOneMonster(246, 12.4), new i.OnceOneMonster(252, 12.4), new i.OnceOneMonster(258, 12.4), new i.OnceOneMonster(262, 12.4), new i.OnceOneMonster(269, 12.4), new i.OnceOneMonster(275, 12.4), new i.OnceOneMonster(280, 12.4), new i.OnceOneMonster(285, 12.4), new i.OnceOneMonster(290, 12.4), new i.OnceOneMonster(306, 12.4), new i.OnceOneMonster(309, 12.4), new i.OnceOneMonster(315, 12.4), new i.OnceOneMonster(320, 12.4), new i.OnceOneMonster(326, 12.4), new i.OnceOneMonster(333, 12.4), new i.OnceOneMonster(340, 12.4), new i.OnceOneMonster(345, 12.4), new i.OnceOneMonster(363, 31.4), new i.OnceOneMonster(366, 12.4), new i.OnceOneMonster(369, 12.4), new i.OnceOneMonster(376, 12.4), new i.OnceOneMonster(381, 31.4), new i.OnceOneMonster(382, 12.4), new i.OnceOneMonster(387, 12.4), new i.OnceOneMonster(395, 12.4), new i.OnceOneMonster(400, 31.4), new i.OnceOneMonster(403, 12.4), new i.OnceOneMonster(406, 12.4), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.4), new i.OnceOneMonster(425, 12.4), new i.OnceOneMonster(427, 31.4), new i.OnceOneMonster(430, 12.4), new i.OnceOneMonster(435, 12.4), new i.OnceOneMonster(438, 12.4), new i.OnceOneMonster(442, 31.4), new i.OnceOneMonster(445, 12.4), new i.OnceOneMonster(451, 12.4), new i.OnceOneMonster(460, 12.4), new i.OnceOneMonster(465, 31.4), new i.OnceOneMonster(470, 12.4), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.4), new i.OnceOneMonster(492, 13.4), new i.OnceOneMonster(498, 13.4), new i.OnceOneMonster(503, 13.4), new i.OnceOneMonster(510, 13.4), new i.OnceOneMonster(512, 13.4), new i.OnceOneMonster(530, 13.4), new i.OnceOneMonster(610, 56.4), new i.OnceOneMonster(630, 56.4), new i.OnceOneMonster(650, 56.4), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.4), new i.OnceOneMonster(663, 13.4), new i.OnceOneMonster(666, 13.4), new i.OnceOneMonster(668, 13.4), new i.OnceOneMonster(670, 32.4), new i.OnceOneMonster(680, 13.4), new i.OnceOneMonster(687, 13.4), new i.OnceOneMonster(690, 32.4), new i.OnceOneMonster(723, 14.4), new i.OnceOneMonster(725, 14.4), new i.OnceOneMonster(727, 32.4), new i.OnceOneMonster(730, 14.4), new i.OnceOneMonster(736, 32.4), new i.OnceOneMonster(745, 14.4), new i.OnceOneMonster(750, 32.4), new i.OnceOneMonster(760, 14.4), new i.OnceOneMonster(765, 32.4), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.4), new i.OnceOneMonster(810, 57.4), new i.OnceOneMonster(860, 57.4), new i.OnceOneMonster(880, 57.4), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.4), new i.OnceOneMonster(901, 33.4), new i.OnceOneMonster(903, 15.4), new i.OnceOneMonster(906, 15.4), new i.OnceOneMonster(907, 33.4), new i.OnceOneMonster(909, 15.4), new i.OnceOneMonster(915, 15.4), new i.OnceOneMonster(923, 33.4), new i.OnceOneMonster(928, 15.4), new i.OnceOneMonster(940, 33.4), new i.OnceOneMonster(950, 15.4), new i.OnceOneMonster(958, 15.4), new i.OnceOneMonster(980, 33.4), new i.OnceOneMonster(1020, 33.4), new i.OnceOneMonster(1045, 33.4), new i.OnceOneMonster(1080, 34.4), new i.OnceOneMonster(1121, 34.4), new i.OnceOneMonster(1130, 34.4), new i.OnceOneMonster(1178, 34.4), new i.OnceOneMonster(1186, 34.4), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.4) ], null, null, "Level2_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Coin, 1500) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(6, 2, "2-2", "", "Unpack/Level/2", "Prefabs/Level/Level2", cc.v2(500, 300), !0, !1, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(-500, 350) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.5 ], 20, [ 4, 5 ], 1.3), new i.ContinusSpawnMonster(30, [ 1.5 ], 35, [ 4, 5 ], 1.1), new i.ContinusSpawnMonster(60, [ 1.5 ], 50, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 2.5 ], 50, [ 7, 8 ], 1.2), new i.ContinusSpawnMonster(180, [ 2.5 ], 60, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 3.5 ], 60, [ 8, 10 ], 1.4), new i.ContinusSpawnMonster(300, [ 60.5 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.5 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.5 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.5 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 61.5 ], 70, [ 4, 4 ], .8), new i.ContinusSpawnMonster(510, [ 16.5 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.5 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.5 ], 40, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.5 ], 60, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.5 ], 120, [ 8, 10 ], .5), new i.ContinusSpawnMonster(780, [ 27.5 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 27.5 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.5 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(960, [ 67.5 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.5 ], 60, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 46.5 ], 60, [ 4, 4 ], 1.2), new i.ContinusSpawnMonster(1110, [ 21.5 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.5 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.5 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(61, 11.5), new i.OnceOneMonster(64, 11.5), new i.OnceOneMonster(71, 11.5), new i.OnceOneMonster(77, 11.5), new i.OnceOneMonster(89, 11.5), new i.OnceOneMonster(104, 11.5), new i.OnceOneMonster(119, 11.5), new i.OnceOneMonster(123, 11.5), new i.OnceOneMonster(129, 11.5), new i.OnceOneMonster(137, 11.5), new i.OnceOneMonster(148, 11.5), new i.OnceOneMonster(155, 11.5), new i.OnceOneMonster(162, 11.5), new i.OnceOneMonster(175, 11.5), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.5), new i.OnceOneMonster(182, 12.5), new i.OnceOneMonster(185, 12.5), new i.OnceOneMonster(188, 12.5), new i.OnceOneMonster(195, 12.5), new i.OnceOneMonster(203, 12.5), new i.OnceOneMonster(210, 12.5), new i.OnceOneMonster(215, 12.5), new i.OnceOneMonster(220, 12.5), new i.OnceOneMonster(243, 12.5), new i.OnceOneMonster(246, 12.5), new i.OnceOneMonster(252, 12.5), new i.OnceOneMonster(258, 12.5), new i.OnceOneMonster(262, 12.5), new i.OnceOneMonster(269, 12.5), new i.OnceOneMonster(275, 12.5), new i.OnceOneMonster(280, 12.5), new i.OnceOneMonster(285, 12.5), new i.OnceOneMonster(290, 12.5), new i.OnceOneMonster(306, 12.5), new i.OnceOneMonster(309, 12.5), new i.OnceOneMonster(315, 12.5), new i.OnceOneMonster(320, 12.5), new i.OnceOneMonster(326, 12.5), new i.OnceOneMonster(333, 12.5), new i.OnceOneMonster(340, 12.5), new i.OnceOneMonster(345, 12.5), new i.OnceOneMonster(363, 31.5), new i.OnceOneMonster(366, 12.5), new i.OnceOneMonster(369, 12.5), new i.OnceOneMonster(376, 12.5), new i.OnceOneMonster(381, 31.5), new i.OnceOneMonster(382, 12.5), new i.OnceOneMonster(387, 12.5), new i.OnceOneMonster(395, 12.5), new i.OnceOneMonster(400, 31.5), new i.OnceOneMonster(403, 12.5), new i.OnceOneMonster(406, 12.5), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.5), new i.OnceOneMonster(425, 12.5), new i.OnceOneMonster(427, 31.5), new i.OnceOneMonster(430, 12.5), new i.OnceOneMonster(435, 12.5), new i.OnceOneMonster(438, 12.5), new i.OnceOneMonster(442, 31.5), new i.OnceOneMonster(445, 12.5), new i.OnceOneMonster(451, 12.5), new i.OnceOneMonster(460, 12.5), new i.OnceOneMonster(465, 31.5), new i.OnceOneMonster(470, 12.5), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.5), new i.OnceOneMonster(492, 13.5), new i.OnceOneMonster(498, 13.5), new i.OnceOneMonster(503, 13.5), new i.OnceOneMonster(510, 13.5), new i.OnceOneMonster(512, 13.5), new i.OnceOneMonster(530, 13.5), new i.OnceOneMonster(610, 56.5), new i.OnceOneMonster(630, 56.5), new i.OnceOneMonster(650, 56.5), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.5), new i.OnceOneMonster(663, 13.5), new i.OnceOneMonster(666, 13.5), new i.OnceOneMonster(668, 13.5), new i.OnceOneMonster(670, 32.5), new i.OnceOneMonster(680, 13.5), new i.OnceOneMonster(687, 13.5), new i.OnceOneMonster(690, 32.5), new i.OnceOneMonster(723, 14.5), new i.OnceOneMonster(725, 14.5), new i.OnceOneMonster(727, 32.5), new i.OnceOneMonster(730, 14.5), new i.OnceOneMonster(736, 32.5), new i.OnceOneMonster(745, 14.5), new i.OnceOneMonster(750, 32.5), new i.OnceOneMonster(760, 14.5), new i.OnceOneMonster(765, 32.5), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.5), new i.OnceOneMonster(810, 57.5), new i.OnceOneMonster(860, 57.5), new i.OnceOneMonster(880, 57.5), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.5), new i.OnceOneMonster(901, 33.5), new i.OnceOneMonster(903, 15.5), new i.OnceOneMonster(906, 15.5), new i.OnceOneMonster(907, 33.5), new i.OnceOneMonster(909, 15.5), new i.OnceOneMonster(915, 15.5), new i.OnceOneMonster(923, 33.5), new i.OnceOneMonster(928, 15.5), new i.OnceOneMonster(940, 33.5), new i.OnceOneMonster(950, 15.5), new i.OnceOneMonster(955, 15.5), new i.OnceOneMonster(958, 15.5), new i.OnceOneMonster(970, 33.5), new i.OnceOneMonster(990, 33.5), new i.OnceOneMonster(1020, 33.5), new i.OnceOneMonster(1045, 33.5), new i.OnceOneMonster(1080, 34.5), new i.OnceOneMonster(1095, 34.5), new i.OnceOneMonster(1121, 34.5), new i.OnceOneMonster(1130, 34.5), new i.OnceOneMonster(1142, 34.5), new i.OnceOneMonster(1165, 34.5), new i.OnceOneMonster(1178, 34.5), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.5) ], null, null, "Level2_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.BluePrint, 6, a.WeaponType.HandGun) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(7, 2, "2-3", "", "Unpack/Level/2", "Prefabs/Level/Level2", cc.v2(500, 300), !0, !1, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(-500, 350) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.6 ], 30, [ 4, 5 ], 1.2), new i.ContinusSpawnMonster(30, [ 1.6 ], 40, [ 5, 6 ], 1), new i.ContinusSpawnMonster(60, [ 1.6 ], 50, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 2.6 ], 50, [ 7, 8 ], 1.2), new i.ContinusSpawnMonster(180, [ 2.6 ], 60, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 3.6 ], 60, [ 8, 10 ], 1.4), new i.ContinusSpawnMonster(300, [ 60.6 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.6 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.6 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.6 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 61.6 ], 80, [ 4, 4 ], .8), new i.ContinusSpawnMonster(510, [ 16.6 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.6 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.6 ], 40, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.6 ], 70, [ 6, 6 ], 1), new i.ContinusSpawnMonster(720, [ 66.6 ], 120, [ 8, 10 ], .5), new i.ContinusSpawnMonster(780, [ 27.6 ], 100, [ 8, 8 ], 1), new i.ContinusSpawnMonster(840, [ 27.6 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.6 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(960, [ 67.6 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.6 ], 60, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 46.6 ], 60, [ 4, 4 ], 1), new i.ContinusSpawnMonster(1110, [ 21.6 ], 100, [ 6, 10 ], 1), new i.ContinusSpawnMonster(1140, [ 21.6 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.6 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(61, 11.6), new i.OnceOneMonster(64, 11.6), new i.OnceOneMonster(71, 11.6), new i.OnceOneMonster(77, 11.6), new i.OnceOneMonster(89, 11.6), new i.OnceOneMonster(104, 11.6), new i.OnceOneMonster(119, 11.6), new i.OnceOneMonster(123, 11.6), new i.OnceOneMonster(129, 11.6), new i.OnceOneMonster(137, 11.6), new i.OnceOneMonster(148, 11.6), new i.OnceOneMonster(155, 11.6), new i.OnceOneMonster(162, 11.6), new i.OnceOneMonster(175, 11.6), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.6), new i.OnceOneMonster(182, 12.6), new i.OnceOneMonster(185, 12.6), new i.OnceOneMonster(188, 12.6), new i.OnceOneMonster(195, 12.6), new i.OnceOneMonster(203, 12.6), new i.OnceOneMonster(210, 12.6), new i.OnceOneMonster(215, 12.6), new i.OnceOneMonster(220, 12.6), new i.OnceOneMonster(243, 12.6), new i.OnceOneMonster(246, 12.6), new i.OnceOneMonster(252, 12.6), new i.OnceOneMonster(258, 12.6), new i.OnceOneMonster(262, 12.6), new i.OnceOneMonster(269, 12.6), new i.OnceOneMonster(275, 12.6), new i.OnceOneMonster(280, 12.6), new i.OnceOneMonster(285, 12.6), new i.OnceOneMonster(290, 12.6), new i.OnceMultiMonster_Rush(293, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(296, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(299, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(306, 12.6), new i.OnceOneMonster(309, 12.6), new i.OnceOneMonster(315, 12.6), new i.OnceOneMonster(320, 12.6), new i.OnceOneMonster(326, 12.6), new i.OnceOneMonster(333, 12.6), new i.OnceOneMonster(340, 12.6), new i.OnceOneMonster(345, 12.6), new i.OnceOneMonster(363, 31.6), new i.OnceOneMonster(366, 12.6), new i.OnceOneMonster(369, 12.6), new i.OnceOneMonster(376, 12.6), new i.OnceOneMonster(381, 31.6), new i.OnceOneMonster(382, 12.6), new i.OnceOneMonster(387, 12.6), new i.OnceOneMonster(395, 12.6), new i.OnceOneMonster(400, 31.6), new i.OnceOneMonster(403, 12.6), new i.OnceOneMonster(406, 12.6), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.6), new i.OnceOneMonster(425, 12.6), new i.OnceOneMonster(427, 31.6), new i.OnceOneMonster(430, 12.6), new i.OnceOneMonster(435, 12.6), new i.OnceOneMonster(438, 12.6), new i.OnceOneMonster(442, 31.6), new i.OnceOneMonster(445, 12.6), new i.OnceOneMonster(451, 12.6), new i.OnceOneMonster(460, 12.6), new i.OnceOneMonster(465, 31.6), new i.OnceOneMonster(470, 12.6), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(486, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.6), new i.OnceOneMonster(492, 13.6), new i.OnceOneMonster(498, 13.6), new i.OnceOneMonster(503, 13.6), new i.OnceOneMonster(510, 13.6), new i.OnceOneMonster(512, 13.6), new i.OnceOneMonster(530, 13.6), new i.OnceOneMonster(610, 56.6), new i.OnceOneMonster(630, 56.6), new i.OnceOneMonster(650, 56.6), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.6), new i.OnceOneMonster(663, 13.6), new i.OnceOneMonster(666, 13.6), new i.OnceOneMonster(668, 13.6), new i.OnceOneMonster(670, 32.6), new i.OnceOneMonster(680, 13.6), new i.OnceOneMonster(687, 13.6), new i.OnceOneMonster(690, 32.6), new i.OnceOneMonster(723, 14.6), new i.OnceOneMonster(725, 14.6), new i.OnceOneMonster(727, 32.6), new i.OnceOneMonster(730, 14.6), new i.OnceOneMonster(736, 32.6), new i.OnceOneMonster(745, 14.6), new i.OnceOneMonster(750, 32.6), new i.OnceOneMonster(760, 14.6), new i.OnceOneMonster(765, 32.6), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.6), new i.OnceOneMonster(810, 57.6), new i.OnceOneMonster(860, 57.6), new i.OnceOneMonster(880, 57.6), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.6), new i.OnceOneMonster(901, 33.6), new i.OnceOneMonster(903, 15.6), new i.OnceOneMonster(906, 15.6), new i.OnceOneMonster(907, 33.6), new i.OnceOneMonster(909, 15.6), new i.OnceOneMonster(915, 15.6), new i.OnceOneMonster(923, 33.6), new i.OnceOneMonster(928, 15.6), new i.OnceOneMonster(940, 33.6), new i.OnceOneMonster(950, 15.6), new i.OnceOneMonster(955, 15.6), new i.OnceOneMonster(958, 15.6), new i.OnceOneMonster(963, 33.6), new i.OnceOneMonster(980, 33.6), new i.OnceOneMonster(1020, 33.6), new i.OnceOneMonster(1045, 33.6), new i.OnceOneMonster(1080, 34.6), new i.OnceOneMonster(1087, 34.6), new i.OnceOneMonster(1107, 34.6), new i.OnceOneMonster(1130, 34.6), new i.OnceOneMonster(1142, 34.6), new i.OnceOneMonster(1178, 34.6), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.6) ], null, null, "Level2_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Diamond, 50) ]));
cc._RF.pop();
}, {
"./ArchivementConfig": "ArchivementConfig",
"./GiftConfig": "GiftConfig",
"./LevelConfig": "LevelConfig",
"./WeaponConfig": "WeaponConfig"
} ],
LevelConfig_Chapter3: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "cdeebomrFBFjpyOxc45H9T4", "LevelConfig_Chapter3");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./ArchivementConfig"), r = e("./GiftConfig"), i = e("./LevelConfig"), a = e("./WeaponConfig");
i.LevelConfig.AddLevelConfig(new i.LevelProto(8, 3, "3-1", "", "Unpack/Level/4", "Prefabs/Level/Level3", cc.v2(0, 0), !1, !0, [ cc.v2(-550, 550), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.7 ], 20, [ 4, 5 ], 1.4), new i.ContinusSpawnMonster(30, [ 1.7 ], 35, [ 4, 5 ], 1.2), new i.ContinusSpawnMonster(60, [ 1.7 ], 50, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 2.7 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 2.7 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 3.7 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 60.7 ], 60, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.7 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.7 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.7 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 41.7 ], 60, [ 4, 4 ], .8), new i.ContinusSpawnMonster(510, [ 16.7 ], 100, [ 6, 7 ], 1.1), new i.ContinusSpawnMonster(540, [ 8.7 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.7 ], 60, [ 4, 6 ], 1.2), new i.ContinusSpawnMonster(660, [ 26.7 ], 75, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.7 ], 120, [ 6, 8 ], .7), new i.ContinusSpawnMonster(780, [ 27.7 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 27.7 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.7 ], 90, [ 8, 10 ], 1), new i.ContinusSpawnMonster(960, [ 67.7 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.7 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 46.7 ], 50, [ 4, 4 ], 1.2), new i.ContinusSpawnMonster(1110, [ 21.7 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.7 ], 120, [ 8, 8 ], 1), new i.ContinusSpawnMonster(1200, [ 21.7 ], 0, [ 8, 8 ], 1) ], [ new i.OnceOneMonster(61, 11.7), new i.OnceOneMonster(64, 11.7), new i.OnceOneMonster(71, 11.7), new i.OnceOneMonster(77, 11.7), new i.OnceOneMonster(89, 11.7), new i.OnceOneMonster(104, 11.7), new i.OnceOneMonster(119, 11.7), new i.OnceOneMonster(123, 11.7), new i.OnceOneMonster(129, 11.7), new i.OnceOneMonster(137, 11.7), new i.OnceOneMonster(148, 11.7), new i.OnceOneMonster(155, 11.7), new i.OnceOneMonster(162, 11.7), new i.OnceOneMonster(175, 11.7), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.7), new i.OnceOneMonster(182, 12.7), new i.OnceOneMonster(185, 12.7), new i.OnceOneMonster(188, 12.7), new i.OnceOneMonster(195, 12.7), new i.OnceOneMonster(203, 12.7), new i.OnceOneMonster(210, 12.7), new i.OnceOneMonster(215, 12.7), new i.OnceOneMonster(220, 12.7), new i.OnceOneMonster(243, 12.7), new i.OnceOneMonster(246, 12.7), new i.OnceOneMonster(252, 12.7), new i.OnceOneMonster(258, 12.7), new i.OnceOneMonster(262, 12.7), new i.OnceOneMonster(269, 12.7), new i.OnceOneMonster(275, 12.7), new i.OnceOneMonster(280, 12.7), new i.OnceOneMonster(285, 12.7), new i.OnceOneMonster(290, 12.7), new i.OnceOneMonster(306, 12.7), new i.OnceOneMonster(309, 12.7), new i.OnceOneMonster(315, 12.7), new i.OnceOneMonster(320, 12.7), new i.OnceOneMonster(326, 12.7), new i.OnceOneMonster(333, 12.7), new i.OnceOneMonster(340, 12.7), new i.OnceOneMonster(345, 12.7), new i.OnceOneMonster(363, 31.7), new i.OnceOneMonster(366, 12.7), new i.OnceOneMonster(369, 12.7), new i.OnceOneMonster(376, 12.7), new i.OnceOneMonster(381, 31.7), new i.OnceOneMonster(382, 12.7), new i.OnceOneMonster(387, 12.7), new i.OnceOneMonster(395, 12.7), new i.OnceOneMonster(400, 31.7), new i.OnceOneMonster(403, 12.7), new i.OnceOneMonster(406, 12.7), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.7), new i.OnceOneMonster(425, 12.7), new i.OnceOneMonster(427, 31.7), new i.OnceOneMonster(430, 12.7), new i.OnceOneMonster(435, 12.7), new i.OnceOneMonster(438, 12.7), new i.OnceOneMonster(442, 31.7), new i.OnceOneMonster(445, 12.7), new i.OnceOneMonster(451, 12.7), new i.OnceOneMonster(460, 12.7), new i.OnceOneMonster(465, 31.7), new i.OnceOneMonster(470, 12.7), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.7), new i.OnceOneMonster(492, 13.7), new i.OnceOneMonster(498, 13.7), new i.OnceOneMonster(503, 13.7), new i.OnceOneMonster(510, 13.7), new i.OnceOneMonster(512, 13.7), new i.OnceOneMonster(530, 13.7), new i.OnceOneMonster(610, 56.7), new i.OnceOneMonster(620, 56.7), new i.OnceOneMonster(630, 56.7), new i.OnceOneMonster(640, 56.7), new i.OnceOneMonster(650, 56.7), new i.OnceOneMonster(666, 13.7), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.7), new i.OnceOneMonster(663, 13.7), new i.OnceOneMonster(666, 13.7), new i.OnceOneMonster(668, 13.7), new i.OnceOneMonster(670, 32.7), new i.OnceOneMonster(680, 13.7), new i.OnceOneMonster(687, 13.7), new i.OnceOneMonster(690, 32.7), new i.OnceOneMonster(723, 14.7), new i.OnceOneMonster(725, 14.7), new i.OnceOneMonster(727, 32.7), new i.OnceOneMonster(730, 14.7), new i.OnceOneMonster(736, 32.7), new i.OnceOneMonster(745, 14.7), new i.OnceOneMonster(750, 32.7), new i.OnceOneMonster(760, 14.7), new i.OnceOneMonster(765, 32.7), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.7), new i.OnceOneMonster(810, 57.7), new i.OnceOneMonster(860, 57.7), new i.OnceOneMonster(880, 57.7), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.7), new i.OnceOneMonster(901, 33.7), new i.OnceOneMonster(903, 15.7), new i.OnceOneMonster(906, 15.7), new i.OnceOneMonster(907, 33.7), new i.OnceOneMonster(909, 15.7), new i.OnceOneMonster(915, 15.7), new i.OnceOneMonster(923, 33.7), new i.OnceOneMonster(928, 15.7), new i.OnceOneMonster(940, 33.7), new i.OnceOneMonster(950, 15.7), new i.OnceOneMonster(958, 15.7), new i.OnceOneMonster(980, 33.7), new i.OnceOneMonster(1020, 33.7), new i.OnceOneMonster(1045, 33.7), new i.OnceOneMonster(1080, 34.7), new i.OnceOneMonster(1121, 34.7), new i.OnceOneMonster(1130, 34.7), new i.OnceOneMonster(1178, 34.7), new i.OnceOneMonster(1186, 34.7), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.7, "Prefabs/Level/Level3BossFomation") ], null, null, "Level2_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Coin, 2e3) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(9, 3, "3-2", "", "Unpack/Level/4", "Prefabs/Level/Level3", cc.v2(0, 0), !1, !0, [ cc.v2(-550, 550), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.8 ], 20, [ 4, 5 ], 1.3), new i.ContinusSpawnMonster(30, [ 1.8 ], 35, [ 4, 5 ], 1), new i.ContinusSpawnMonster(60, [ 1.8 ], 50, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 2.8 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 2.8 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 3.8 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 60.8 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.8 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.8 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.8 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 41.8 ], 70, [ 4, 4 ], .8), new i.ContinusSpawnMonster(510, [ 16.8 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.8 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.8 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.8 ], 75, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.8 ], 120, [ 8, 10 ], .7), new i.ContinusSpawnMonster(780, [ 27.8 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 27.8 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.8 ], 90, [ 8, 10 ], 1), new i.ContinusSpawnMonster(960, [ 67.8 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.8 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 46.8 ], 50, [ 4, 4 ], 1.2), new i.ContinusSpawnMonster(1110, [ 21.8 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.8 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.8 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(61, 11.8), new i.OnceOneMonster(64, 11.8), new i.OnceOneMonster(71, 11.8), new i.OnceOneMonster(77, 11.8), new i.OnceOneMonster(89, 11.8), new i.OnceOneMonster(104, 11.8), new i.OnceOneMonster(119, 11.8), new i.OnceOneMonster(123, 11.8), new i.OnceOneMonster(129, 11.8), new i.OnceOneMonster(137, 11.8), new i.OnceOneMonster(148, 11.8), new i.OnceOneMonster(155, 11.8), new i.OnceOneMonster(162, 11.8), new i.OnceOneMonster(175, 11.8), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.8), new i.OnceOneMonster(182, 12.8), new i.OnceOneMonster(185, 12.8), new i.OnceOneMonster(188, 12.8), new i.OnceOneMonster(195, 12.8), new i.OnceOneMonster(203, 12.8), new i.OnceOneMonster(210, 12.8), new i.OnceOneMonster(215, 12.8), new i.OnceOneMonster(220, 12.8), new i.OnceOneMonster(243, 12.8), new i.OnceOneMonster(246, 12.8), new i.OnceOneMonster(252, 12.8), new i.OnceOneMonster(258, 12.8), new i.OnceOneMonster(262, 12.8), new i.OnceOneMonster(269, 12.8), new i.OnceOneMonster(275, 12.8), new i.OnceOneMonster(280, 12.8), new i.OnceOneMonster(285, 12.8), new i.OnceOneMonster(290, 12.8), new i.OnceMultiMonster_Rush(297, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(300, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(303, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(305, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(306, 12.8), new i.OnceOneMonster(309, 12.8), new i.OnceOneMonster(315, 12.8), new i.OnceOneMonster(320, 12.8), new i.OnceOneMonster(326, 12.8), new i.OnceOneMonster(333, 12.8), new i.OnceOneMonster(340, 12.8), new i.OnceOneMonster(345, 12.8), new i.OnceOneMonster(363, 31.8), new i.OnceOneMonster(366, 12.8), new i.OnceOneMonster(369, 12.8), new i.OnceOneMonster(376, 12.8), new i.OnceOneMonster(381, 31.8), new i.OnceOneMonster(382, 12.8), new i.OnceOneMonster(387, 12.8), new i.OnceOneMonster(395, 12.8), new i.OnceOneMonster(400, 31.8), new i.OnceOneMonster(403, 12.8), new i.OnceOneMonster(406, 12.8), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.8), new i.OnceOneMonster(425, 12.8), new i.OnceOneMonster(427, 31.8), new i.OnceOneMonster(430, 12.8), new i.OnceOneMonster(435, 12.8), new i.OnceOneMonster(438, 12.8), new i.OnceOneMonster(442, 31.8), new i.OnceOneMonster(445, 12.8), new i.OnceOneMonster(451, 12.8), new i.OnceOneMonster(460, 12.8), new i.OnceOneMonster(465, 31.8), new i.OnceOneMonster(470, 12.8), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.8), new i.OnceOneMonster(492, 13.8), new i.OnceOneMonster(498, 13.8), new i.OnceOneMonster(503, 13.8), new i.OnceOneMonster(510, 13.8), new i.OnceOneMonster(512, 13.8), new i.OnceOneMonster(530, 13.8), new i.OnceOneMonster(610, 56.8), new i.OnceOneMonster(620, 56.8), new i.OnceOneMonster(630, 56.8), new i.OnceOneMonster(640, 56.8), new i.OnceOneMonster(650, 56.8), new i.OnceOneMonster(666, 13.8), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.8), new i.OnceOneMonster(663, 13.8), new i.OnceOneMonster(666, 13.8), new i.OnceOneMonster(668, 13.8), new i.OnceOneMonster(670, 32.8), new i.OnceOneMonster(680, 13.8), new i.OnceOneMonster(687, 13.8), new i.OnceOneMonster(690, 32.8), new i.OnceOneMonster(723, 14.8), new i.OnceOneMonster(725, 14.8), new i.OnceOneMonster(727, 32.8), new i.OnceOneMonster(730, 14.8), new i.OnceOneMonster(736, 32.8), new i.OnceOneMonster(745, 14.8), new i.OnceOneMonster(750, 32.8), new i.OnceOneMonster(760, 14.8), new i.OnceOneMonster(765, 32.8), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.8), new i.OnceOneMonster(810, 57.8), new i.OnceOneMonster(860, 57.8), new i.OnceOneMonster(880, 57.8), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.8), new i.OnceOneMonster(901, 33.8), new i.OnceOneMonster(903, 15.8), new i.OnceOneMonster(906, 15.8), new i.OnceOneMonster(907, 33.8), new i.OnceOneMonster(909, 15.8), new i.OnceOneMonster(915, 15.8), new i.OnceOneMonster(923, 33.8), new i.OnceOneMonster(928, 15.8), new i.OnceOneMonster(940, 33.8), new i.OnceOneMonster(950, 15.8), new i.OnceOneMonster(955, 15.8), new i.OnceOneMonster(958, 15.8), new i.OnceOneMonster(970, 33.8), new i.OnceOneMonster(990, 33.8), new i.OnceOneMonster(1020, 33.8), new i.OnceOneMonster(1045, 33.8), new i.OnceOneMonster(1080, 34.8), new i.OnceOneMonster(1087, 71.8), new i.OnceOneMonster(1095, 34.8), new i.OnceOneMonster(1107, 71.8), new i.OnceOneMonster(1121, 34.8), new i.OnceOneMonster(1130, 34.8), new i.OnceOneMonster(1142, 34.8), new i.OnceOneMonster(1152, 71.8), new i.OnceOneMonster(1165, 34.8), new i.OnceOneMonster(1178, 34.8), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.8, "Prefabs/Level/Level3BossFomation") ], null, null, "Level2_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.BluePrint, 7, a.WeaponType.Bow) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(10, 3, "3-3", "", "Unpack/Level/4", "Prefabs/Level/Level3", cc.v2(0, 0), !1, !0, [ cc.v2(-550, 550), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.9 ], 25, [ 4, 5 ], 1), new i.ContinusSpawnMonster(30, [ 1.9 ], 40, [ 5, 6 ], 1), new i.ContinusSpawnMonster(60, [ 1.9 ], 50, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 2.9 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 2.9 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 3.9 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 60.9 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.9 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.9 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.9 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 41.9 ], 80, [ 4, 4 ], .8), new i.ContinusSpawnMonster(510, [ 16.9 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.9 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.9 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.9 ], 75, [ 6, 6 ], 1), new i.ContinusSpawnMonster(720, [ 66.9 ], 120, [ 8, 10 ], .7), new i.ContinusSpawnMonster(780, [ 27.9 ], 100, [ 8, 8 ], 1), new i.ContinusSpawnMonster(840, [ 27.9 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.9 ], 90, [ 8, 10 ], 1), new i.ContinusSpawnMonster(960, [ 67.9 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.9 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 46.9 ], 50, [ 4, 4 ], 1), new i.ContinusSpawnMonster(1110, [ 21.9 ], 100, [ 6, 10 ], 1), new i.ContinusSpawnMonster(1140, [ 21.9 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.9 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(61, 11.9), new i.OnceOneMonster(64, 11.9), new i.OnceOneMonster(71, 11.9), new i.OnceOneMonster(77, 11.9), new i.OnceOneMonster(89, 11.9), new i.OnceOneMonster(104, 11.9), new i.OnceOneMonster(119, 11.9), new i.OnceOneMonster(123, 11.9), new i.OnceOneMonster(129, 11.9), new i.OnceOneMonster(137, 11.9), new i.OnceOneMonster(148, 11.9), new i.OnceOneMonster(155, 11.9), new i.OnceOneMonster(162, 11.9), new i.OnceOneMonster(175, 11.9), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.9), new i.OnceOneMonster(182, 12.9), new i.OnceOneMonster(185, 12.9), new i.OnceOneMonster(188, 12.9), new i.OnceOneMonster(195, 12.9), new i.OnceOneMonster(203, 12.9), new i.OnceOneMonster(210, 12.9), new i.OnceOneMonster(215, 12.9), new i.OnceOneMonster(220, 12.9), new i.OnceOneMonster(243, 12.9), new i.OnceOneMonster(246, 12.9), new i.OnceOneMonster(252, 12.9), new i.OnceOneMonster(258, 12.9), new i.OnceOneMonster(262, 12.9), new i.OnceOneMonster(269, 12.9), new i.OnceOneMonster(275, 12.9), new i.OnceOneMonster(280, 12.9), new i.OnceOneMonster(285, 12.9), new i.OnceOneMonster(290, 12.9), new i.OnceMultiMonster_Rush(293, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(296, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(299, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(306, 12.9), new i.OnceOneMonster(309, 12.9), new i.OnceOneMonster(315, 12.9), new i.OnceOneMonster(320, 12.9), new i.OnceOneMonster(326, 12.9), new i.OnceOneMonster(333, 12.9), new i.OnceOneMonster(340, 12.9), new i.OnceOneMonster(345, 12.9), new i.OnceOneMonster(363, 31.9), new i.OnceOneMonster(366, 12.9), new i.OnceOneMonster(369, 12.9), new i.OnceOneMonster(376, 12.9), new i.OnceOneMonster(381, 31.9), new i.OnceOneMonster(382, 12.9), new i.OnceOneMonster(387, 12.9), new i.OnceOneMonster(395, 12.9), new i.OnceOneMonster(400, 31.9), new i.OnceOneMonster(403, 12.9), new i.OnceOneMonster(406, 12.9), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.9), new i.OnceOneMonster(425, 12.9), new i.OnceOneMonster(427, 31.9), new i.OnceOneMonster(430, 12.9), new i.OnceOneMonster(435, 12.9), new i.OnceOneMonster(438, 12.9), new i.OnceOneMonster(442, 31.9), new i.OnceOneMonster(445, 12.9), new i.OnceOneMonster(451, 12.9), new i.OnceOneMonster(460, 12.9), new i.OnceOneMonster(465, 31.9), new i.OnceOneMonster(470, 12.9), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(486, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.9), new i.OnceOneMonster(492, 13.9), new i.OnceOneMonster(498, 13.9), new i.OnceOneMonster(503, 13.9), new i.OnceOneMonster(510, 13.9), new i.OnceOneMonster(512, 13.9), new i.OnceOneMonster(530, 13.9), new i.OnceOneMonster(610, 56.9), new i.OnceOneMonster(620, 56.9), new i.OnceOneMonster(630, 56.9), new i.OnceOneMonster(640, 56.9), new i.OnceOneMonster(650, 56.9), new i.OnceOneMonster(666, 13.9), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.9), new i.OnceOneMonster(663, 13.9), new i.OnceOneMonster(666, 13.9), new i.OnceOneMonster(668, 13.9), new i.OnceOneMonster(670, 32.9), new i.OnceOneMonster(680, 13.9), new i.OnceOneMonster(687, 13.9), new i.OnceOneMonster(690, 32.9), new i.OnceOneMonster(723, 14.9), new i.OnceOneMonster(725, 14.9), new i.OnceOneMonster(727, 32.9), new i.OnceOneMonster(730, 14.9), new i.OnceOneMonster(736, 32.9), new i.OnceOneMonster(745, 14.9), new i.OnceOneMonster(750, 32.9), new i.OnceOneMonster(760, 14.9), new i.OnceOneMonster(765, 32.9), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.9), new i.OnceOneMonster(810, 57.9), new i.OnceOneMonster(860, 57.9), new i.OnceOneMonster(880, 57.9), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.9), new i.OnceOneMonster(901, 33.9), new i.OnceOneMonster(903, 15.9), new i.OnceOneMonster(906, 15.9), new i.OnceOneMonster(907, 33.9), new i.OnceOneMonster(909, 15.9), new i.OnceOneMonster(915, 15.9), new i.OnceOneMonster(923, 33.9), new i.OnceOneMonster(928, 15.9), new i.OnceOneMonster(940, 33.9), new i.OnceOneMonster(950, 15.9), new i.OnceOneMonster(955, 15.9), new i.OnceOneMonster(958, 15.9), new i.OnceOneMonster(963, 33.9), new i.OnceMultiMonster_Rush(968, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(971, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(974, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(977, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(980, 33.9), new i.OnceOneMonster(990, 71.9), new i.OnceOneMonster(1020, 33.9), new i.OnceOneMonster(1045, 33.9), new i.OnceOneMonster(1080, 34.9), new i.OnceOneMonster(1087, 34.9), new i.OnceOneMonster(1095, 71.9), new i.OnceOneMonster(1107, 34.9), new i.OnceOneMonster(1115, 71.9), new i.OnceOneMonster(1130, 34.9), new i.OnceOneMonster(1142, 34.9), new i.OnceOneMonster(1165, 71.9), new i.OnceOneMonster(1178, 34.9), new i.OnceOneMonster(1186, 71.9), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.9, "Prefabs/Level/Level3BossFomation") ], null, null, "Level2_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Diamond, 50) ]));
cc._RF.pop();
}, {
"./ArchivementConfig": "ArchivementConfig",
"./GiftConfig": "GiftConfig",
"./LevelConfig": "LevelConfig",
"./WeaponConfig": "WeaponConfig"
} ],
LevelConfig_Chapter4: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "37ac836GIxDB5klZTSGuhtK", "LevelConfig_Chapter4");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./ArchivementConfig"), r = e("./GiftConfig"), i = e("./LevelConfig"), a = e("./WeaponConfig");
i.LevelConfig.AddLevelConfig(new i.LevelProto(14, 4, "4-1", "", "Unpack/Level/5", "Prefabs/Level/Level4", cc.v2(3470, 2290), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.11 ], 20, [ 4, 5 ], 1.4), new i.ContinusSpawnMonster(30, [ 1.11 ], 40, [ 4, 5 ], 1), new i.ContinusSpawnMonster(60, [ 2.11 ], 60, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 3.11 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 3.11 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 4.11 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 60.11 ], 60, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.11 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.11 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.11 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 61.11 ], 60, [ 4, 4 ], 1), new i.ContinusSpawnMonster(510, [ 16.11 ], 100, [ 6, 7 ], 1.1), new i.ContinusSpawnMonster(540, [ 8.11 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.11 ], 60, [ 4, 6 ], 1.2), new i.ContinusSpawnMonster(660, [ 26.11 ], 75, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.11 ], 120, [ 6, 8 ], .7), new i.ContinusSpawnMonster(780, [ 27.11 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 27.11 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.11 ], 90, [ 8, 10 ], 1), new i.ContinusSpawnMonster(960, [ 67.11 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.11 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 21.11 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.11 ], 120, [ 8, 8 ], 1), new i.ContinusSpawnMonster(1200, [ 21.11 ], 0, [ 8, 8 ], 1) ], [ new i.OnceOneMonster(61, 11.11), new i.OnceOneMonster(64, 11.11), new i.OnceOneMonster(71, 11.11), new i.OnceOneMonster(77, 11.11), new i.OnceOneMonster(89, 11.11), new i.OnceOneMonster(104, 11.11), new i.OnceOneMonster(119, 11.11), new i.OnceOneMonster(123, 11.11), new i.OnceOneMonster(129, 11.11), new i.OnceOneMonster(137, 11.11), new i.OnceOneMonster(148, 11.11), new i.OnceOneMonster(155, 11.11), new i.OnceOneMonster(162, 11.11), new i.OnceOneMonster(175, 11.11), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.11), new i.OnceOneMonster(182, 12.11), new i.OnceOneMonster(185, 12.11), new i.OnceOneMonster(188, 12.11), new i.OnceOneMonster(195, 12.11), new i.OnceOneMonster(203, 12.11), new i.OnceOneMonster(210, 12.11), new i.OnceOneMonster(215, 12.11), new i.OnceOneMonster(220, 12.11), new i.OnceOneMonster(243, 12.11), new i.OnceOneMonster(246, 12.11), new i.OnceOneMonster(252, 12.11), new i.OnceOneMonster(258, 12.11), new i.OnceOneMonster(262, 12.11), new i.OnceOneMonster(269, 12.11), new i.OnceOneMonster(275, 12.11), new i.OnceOneMonster(280, 12.11), new i.OnceOneMonster(285, 12.11), new i.OnceOneMonster(290, 12.11), new i.OnceOneMonster(306, 12.11), new i.OnceOneMonster(309, 12.11), new i.OnceOneMonster(310, 75.11), new i.OnceOneMonster(315, 12.11), new i.OnceOneMonster(320, 12.11), new i.OnceOneMonster(326, 12.11), new i.OnceOneMonster(327, 75.11), new i.OnceOneMonster(333, 12.11), new i.OnceOneMonster(340, 12.11), new i.OnceOneMonster(345, 12.11), new i.OnceOneMonster(363, 72.11), new i.OnceOneMonster(366, 12.11), new i.OnceOneMonster(369, 12.11), new i.OnceOneMonster(376, 12.11), new i.OnceOneMonster(381, 72.11), new i.OnceOneMonster(382, 12.11), new i.OnceOneMonster(387, 12.11), new i.OnceOneMonster(395, 12.11), new i.OnceOneMonster(400, 72.11), new i.OnceOneMonster(403, 12.11), new i.OnceOneMonster(406, 12.11), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.11), new i.OnceOneMonster(425, 12.11), new i.OnceOneMonster(427, 72.11), new i.OnceOneMonster(430, 12.11), new i.OnceOneMonster(435, 12.11), new i.OnceOneMonster(438, 12.11), new i.OnceOneMonster(442, 72.11), new i.OnceOneMonster(445, 12.11), new i.OnceOneMonster(451, 12.11), new i.OnceOneMonster(460, 12.11), new i.OnceOneMonster(465, 72.11), new i.OnceOneMonster(470, 12.11), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.11), new i.OnceOneMonster(492, 13.11), new i.OnceOneMonster(498, 13.11), new i.OnceOneMonster(503, 13.11), new i.OnceOneMonster(510, 13.11), new i.OnceOneMonster(512, 13.11), new i.OnceOneMonster(530, 13.11), new i.OnceOneMonster(610, 56.11), new i.OnceOneMonster(620, 56.11), new i.OnceOneMonster(630, 56.11), new i.OnceOneMonster(640, 56.11), new i.OnceOneMonster(650, 56.11), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.11), new i.OnceOneMonster(663, 13.11), new i.OnceOneMonster(666, 13.11), new i.OnceOneMonster(668, 13.11), new i.OnceOneMonster(670, 73.11), new i.OnceOneMonster(680, 13.11), new i.OnceOneMonster(687, 13.11), new i.OnceOneMonster(690, 73.11), new i.OnceOneMonster(723, 14.11), new i.OnceOneMonster(725, 14.11), new i.OnceOneMonster(727, 73.11), new i.OnceOneMonster(730, 14.11), new i.OnceOneMonster(736, 73.11), new i.OnceOneMonster(745, 14.11), new i.OnceOneMonster(750, 73.11), new i.OnceOneMonster(760, 14.11), new i.OnceOneMonster(765, 73.11), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.11), new i.OnceOneMonster(810, 57.11), new i.OnceOneMonster(860, 57.11), new i.OnceOneMonster(880, 57.11), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.11), new i.OnceOneMonster(901, 33.11), new i.OnceOneMonster(903, 15.11), new i.OnceOneMonster(906, 15.11), new i.OnceOneMonster(907, 33.11), new i.OnceOneMonster(909, 15.11), new i.OnceOneMonster(915, 15.11), new i.OnceOneMonster(923, 33.11), new i.OnceOneMonster(928, 15.11), new i.OnceOneMonster(940, 33.11), new i.OnceOneMonster(950, 15.11), new i.OnceOneMonster(958, 15.11), new i.OnceOneMonster(980, 33.11), new i.OnceOneMonster(1020, 33.11), new i.OnceOneMonster(1045, 33.11), new i.OnceOneMonster(1080, 34.11), new i.OnceOneMonster(1121, 34.11), new i.OnceOneMonster(1130, 34.11), new i.OnceOneMonster(1178, 34.11), new i.OnceOneMonster(1186, 34.11), new i.OnceWanning(1190), new i.OnceOneMonster(1199, 1005.11), new i.OnceOneMonster(1200, 1006.11) ], null, null, "Level4_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Coin, 2e3) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(15, 4, "4-2", "", "Unpack/Level/5", "Prefabs/Level/Level4", cc.v2(3470, 2290), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.12 ], 25, [ 4, 5 ], 1.3), new i.ContinusSpawnMonster(30, [ 1.12 ], 40, [ 4, 5 ], 1), new i.ContinusSpawnMonster(60, [ 2.12 ], 50, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 3.12 ], 60, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 3.12 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 4.12 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 60.12 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.12 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.12 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.12 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 61.12 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(510, [ 16.12 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.12 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.12 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.12 ], 75, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.12 ], 120, [ 8, 10 ], .7), new i.ContinusSpawnMonster(780, [ 27.12 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 27.12 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.12 ], 90, [ 8, 10 ], 1), new i.ContinusSpawnMonster(960, [ 67.12 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.12 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 21.12 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.12 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.12 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(61, 11.12), new i.OnceOneMonster(64, 11.12), new i.OnceOneMonster(71, 11.12), new i.OnceOneMonster(77, 11.12), new i.OnceOneMonster(89, 11.12), new i.OnceOneMonster(104, 11.12), new i.OnceOneMonster(119, 11.12), new i.OnceOneMonster(123, 11.12), new i.OnceOneMonster(129, 11.12), new i.OnceOneMonster(137, 11.12), new i.OnceOneMonster(148, 11.12), new i.OnceOneMonster(155, 11.12), new i.OnceOneMonster(162, 11.12), new i.OnceOneMonster(175, 11.12), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.12), new i.OnceOneMonster(182, 12.12), new i.OnceOneMonster(185, 12.12), new i.OnceOneMonster(188, 12.12), new i.OnceOneMonster(195, 12.12), new i.OnceOneMonster(203, 12.12), new i.OnceOneMonster(210, 12.12), new i.OnceOneMonster(215, 12.12), new i.OnceOneMonster(220, 12.12), new i.OnceOneMonster(243, 12.12), new i.OnceOneMonster(246, 12.12), new i.OnceOneMonster(252, 12.12), new i.OnceOneMonster(258, 12.12), new i.OnceOneMonster(262, 12.12), new i.OnceOneMonster(269, 12.12), new i.OnceOneMonster(275, 12.12), new i.OnceOneMonster(280, 12.12), new i.OnceOneMonster(285, 12.12), new i.OnceOneMonster(290, 12.12), new i.OnceMultiMonster_Rush(297, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(300, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(303, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(305, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(306, 12.12), new i.OnceOneMonster(309, 12.12), new i.OnceOneMonster(310, 75.12), new i.OnceOneMonster(315, 12.12), new i.OnceOneMonster(320, 12.12), new i.OnceOneMonster(326, 12.12), new i.OnceOneMonster(310, 75.12), new i.OnceOneMonster(333, 12.12), new i.OnceOneMonster(340, 12.12), new i.OnceOneMonster(345, 12.12), new i.OnceOneMonster(363, 72.12), new i.OnceOneMonster(366, 12.12), new i.OnceOneMonster(369, 12.12), new i.OnceOneMonster(376, 12.12), new i.OnceOneMonster(381, 72.12), new i.OnceOneMonster(382, 12.12), new i.OnceOneMonster(387, 12.12), new i.OnceOneMonster(395, 12.12), new i.OnceOneMonster(400, 72.12), new i.OnceOneMonster(403, 12.12), new i.OnceOneMonster(406, 12.12), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.12), new i.OnceOneMonster(425, 12.12), new i.OnceOneMonster(427, 72.12), new i.OnceOneMonster(430, 12.12), new i.OnceOneMonster(435, 12.12), new i.OnceOneMonster(438, 12.12), new i.OnceOneMonster(442, 72.12), new i.OnceOneMonster(445, 12.12), new i.OnceOneMonster(451, 12.12), new i.OnceOneMonster(460, 12.12), new i.OnceOneMonster(465, 72.12), new i.OnceOneMonster(470, 12.12), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.12), new i.OnceOneMonster(492, 13.12), new i.OnceOneMonster(498, 13.12), new i.OnceOneMonster(503, 13.12), new i.OnceOneMonster(510, 13.12), new i.OnceOneMonster(512, 13.12), new i.OnceOneMonster(530, 13.12), new i.OnceOneMonster(610, 56.12), new i.OnceOneMonster(620, 56.12), new i.OnceOneMonster(630, 56.12), new i.OnceOneMonster(640, 56.12), new i.OnceOneMonster(650, 56.12), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.12), new i.OnceOneMonster(663, 13.12), new i.OnceOneMonster(666, 13.12), new i.OnceOneMonster(668, 13.12), new i.OnceOneMonster(670, 73.12), new i.OnceOneMonster(680, 13.12), new i.OnceOneMonster(687, 13.12), new i.OnceOneMonster(690, 73.12), new i.OnceOneMonster(723, 14.12), new i.OnceOneMonster(725, 14.12), new i.OnceOneMonster(727, 73.12), new i.OnceOneMonster(730, 14.12), new i.OnceOneMonster(736, 73.12), new i.OnceOneMonster(745, 14.12), new i.OnceOneMonster(750, 73.12), new i.OnceOneMonster(760, 14.12), new i.OnceOneMonster(765, 73.12), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.12), new i.OnceOneMonster(810, 57.12), new i.OnceOneMonster(860, 57.12), new i.OnceOneMonster(880, 57.12), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.12), new i.OnceOneMonster(901, 33.12), new i.OnceOneMonster(903, 15.12), new i.OnceOneMonster(906, 15.12), new i.OnceOneMonster(907, 33.12), new i.OnceOneMonster(909, 15.12), new i.OnceOneMonster(915, 15.12), new i.OnceOneMonster(923, 33.12), new i.OnceOneMonster(928, 15.12), new i.OnceOneMonster(940, 33.12), new i.OnceOneMonster(950, 15.12), new i.OnceOneMonster(955, 15.12), new i.OnceOneMonster(958, 15.12), new i.OnceOneMonster(970, 33.12), new i.OnceOneMonster(990, 33.12), new i.OnceOneMonster(1020, 33.12), new i.OnceOneMonster(1045, 33.12), new i.OnceOneMonster(1080, 34.12), new i.OnceOneMonster(1087, 71.12), new i.OnceOneMonster(1095, 34.12), new i.OnceOneMonster(1107, 71.12), new i.OnceOneMonster(1121, 34.12), new i.OnceOneMonster(1130, 34.12), new i.OnceOneMonster(1142, 34.12), new i.OnceOneMonster(1152, 71.12), new i.OnceOneMonster(1165, 34.12), new i.OnceOneMonster(1178, 34.12), new i.OnceWanning(1190), new i.OnceOneMonster(1199, 1005.12), new i.OnceOneMonster(1200, 1006.12) ], null, null, "Level4_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.BluePrint, 7, a.WeaponType.Bow) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(16, 4, "4-3", "", "Unpack/Level/5", "Prefabs/Level/Level4", cc.v2(3470, 2290), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.13 ], 30, [ 4, 5 ], 1.2), new i.ContinusSpawnMonster(30, [ 1.13 ], 50, [ 5, 6 ], 1), new i.ContinusSpawnMonster(60, [ 2.13 ], 60, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 3.13 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 3.13 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 4.13 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 60.13 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.13 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.13 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.13 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 61.13 ], 80, [ 4, 4 ], 1), new i.ContinusSpawnMonster(510, [ 16.13 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.13 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.13 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.13 ], 75, [ 6, 6 ], 1), new i.ContinusSpawnMonster(720, [ 66.13 ], 120, [ 8, 10 ], .7), new i.ContinusSpawnMonster(780, [ 27.13 ], 100, [ 8, 8 ], 1), new i.ContinusSpawnMonster(840, [ 27.13 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.13 ], 90, [ 8, 10 ], 1), new i.ContinusSpawnMonster(960, [ 67.13 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.13 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 21.13 ], 100, [ 6, 10 ], 1), new i.ContinusSpawnMonster(1140, [ 21.13 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.13 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(61, 11.13), new i.OnceOneMonster(64, 11.13), new i.OnceOneMonster(71, 11.13), new i.OnceOneMonster(77, 11.13), new i.OnceOneMonster(89, 11.13), new i.OnceOneMonster(104, 11.13), new i.OnceOneMonster(119, 11.13), new i.OnceOneMonster(123, 11.13), new i.OnceOneMonster(129, 11.13), new i.OnceOneMonster(137, 11.13), new i.OnceOneMonster(148, 11.13), new i.OnceOneMonster(155, 11.13), new i.OnceOneMonster(162, 11.13), new i.OnceOneMonster(175, 11.13), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.13), new i.OnceOneMonster(182, 12.13), new i.OnceOneMonster(185, 12.13), new i.OnceOneMonster(188, 12.13), new i.OnceOneMonster(195, 12.13), new i.OnceOneMonster(203, 12.13), new i.OnceOneMonster(210, 12.13), new i.OnceOneMonster(215, 12.13), new i.OnceOneMonster(220, 12.13), new i.OnceOneMonster(243, 12.13), new i.OnceOneMonster(246, 12.13), new i.OnceOneMonster(252, 12.13), new i.OnceOneMonster(258, 12.13), new i.OnceOneMonster(262, 12.13), new i.OnceOneMonster(269, 12.13), new i.OnceOneMonster(275, 12.13), new i.OnceOneMonster(280, 12.13), new i.OnceOneMonster(285, 12.13), new i.OnceOneMonster(290, 12.13), new i.OnceMultiMonster_Rush(293, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(296, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(299, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(306, 12.13), new i.OnceOneMonster(309, 12.13), new i.OnceOneMonster(310, 75.13), new i.OnceOneMonster(315, 12.13), new i.OnceOneMonster(320, 12.13), new i.OnceOneMonster(326, 12.13), new i.OnceOneMonster(310, 75.13), new i.OnceOneMonster(333, 12.13), new i.OnceOneMonster(340, 12.13), new i.OnceOneMonster(345, 12.13), new i.OnceOneMonster(363, 72.13), new i.OnceOneMonster(366, 12.13), new i.OnceOneMonster(369, 12.13), new i.OnceOneMonster(376, 12.13), new i.OnceOneMonster(381, 72.13), new i.OnceOneMonster(382, 12.13), new i.OnceOneMonster(387, 12.13), new i.OnceOneMonster(395, 12.13), new i.OnceOneMonster(400, 72.13), new i.OnceOneMonster(403, 12.13), new i.OnceOneMonster(406, 12.13), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.13), new i.OnceOneMonster(425, 12.13), new i.OnceOneMonster(427, 72.13), new i.OnceOneMonster(430, 12.13), new i.OnceOneMonster(435, 12.13), new i.OnceOneMonster(438, 12.13), new i.OnceOneMonster(442, 72.13), new i.OnceOneMonster(445, 12.13), new i.OnceOneMonster(451, 12.13), new i.OnceOneMonster(460, 12.13), new i.OnceOneMonster(465, 72.13), new i.OnceOneMonster(470, 12.13), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(486, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.13), new i.OnceOneMonster(492, 13.13), new i.OnceOneMonster(498, 13.13), new i.OnceOneMonster(503, 13.13), new i.OnceOneMonster(510, 13.13), new i.OnceOneMonster(512, 13.13), new i.OnceOneMonster(530, 13.13), new i.OnceOneMonster(610, 56.13), new i.OnceOneMonster(620, 56.13), new i.OnceOneMonster(630, 56.13), new i.OnceOneMonster(640, 56.13), new i.OnceOneMonster(650, 56.13), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.13), new i.OnceOneMonster(663, 13.13), new i.OnceOneMonster(666, 13.13), new i.OnceOneMonster(668, 13.13), new i.OnceOneMonster(670, 73.13), new i.OnceOneMonster(680, 13.13), new i.OnceOneMonster(687, 13.13), new i.OnceOneMonster(690, 73.13), new i.OnceOneMonster(723, 14.13), new i.OnceOneMonster(725, 14.13), new i.OnceOneMonster(727, 73.13), new i.OnceOneMonster(730, 14.13), new i.OnceOneMonster(736, 73.13), new i.OnceOneMonster(745, 14.13), new i.OnceOneMonster(750, 73.13), new i.OnceOneMonster(760, 14.13), new i.OnceOneMonster(765, 73.13), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.13), new i.OnceOneMonster(810, 57.13), new i.OnceOneMonster(860, 57.13), new i.OnceOneMonster(880, 57.13), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.13), new i.OnceOneMonster(901, 33.13), new i.OnceOneMonster(903, 15.13), new i.OnceOneMonster(906, 15.13), new i.OnceOneMonster(907, 33.13), new i.OnceOneMonster(909, 15.13), new i.OnceOneMonster(915, 15.13), new i.OnceOneMonster(923, 33.13), new i.OnceOneMonster(928, 15.13), new i.OnceOneMonster(940, 33.13), new i.OnceOneMonster(950, 15.13), new i.OnceOneMonster(955, 15.13), new i.OnceOneMonster(958, 15.13), new i.OnceOneMonster(963, 33.13), new i.OnceMultiMonster_Rush(968, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(971, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(974, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(977, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(980, 33.13), new i.OnceOneMonster(990, 71.13), new i.OnceOneMonster(1020, 33.13), new i.OnceOneMonster(1045, 33.13), new i.OnceOneMonster(1080, 34.13), new i.OnceOneMonster(1087, 34.13), new i.OnceOneMonster(1095, 71.13), new i.OnceOneMonster(1107, 34.13), new i.OnceOneMonster(1115, 71.13), new i.OnceOneMonster(1130, 34.13), new i.OnceOneMonster(1142, 34.13), new i.OnceOneMonster(1165, 71.13), new i.OnceOneMonster(1178, 34.13), new i.OnceOneMonster(1186, 71.13), new i.OnceWanning(1190), new i.OnceOneMonster(1199, 1005.13), new i.OnceOneMonster(1200, 1006.13) ], null, null, "Level4_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Diamond, 50) ]));
cc._RF.pop();
}, {
"./ArchivementConfig": "ArchivementConfig",
"./GiftConfig": "GiftConfig",
"./LevelConfig": "LevelConfig",
"./WeaponConfig": "WeaponConfig"
} ],
LevelConfig_Chapter5: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b044bbJRuFLto02wijB8zrX", "LevelConfig_Chapter5");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./ArchivementConfig"), r = e("./GiftConfig"), i = e("./LevelConfig"), a = e("./WeaponConfig");
i.LevelConfig.AddLevelConfig(new i.LevelProto(17, 5, "5-1", "", "Unpack/Level/6", "Prefabs/Level/Level5", cc.v2(0, 0), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.14 ], 25, [ 4, 5 ], 1.4), new i.ContinusSpawnMonster(30, [ 1.14 ], 50, [ 4, 5 ], 1), new i.ContinusSpawnMonster(60, [ 2.14 ], 60, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 3.14 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 3.14 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 4.14 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 60.14 ], 60, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.14 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.14 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.14 ], 50, [ 5, 5 ], 1), new i.ContinusSpawnMonster(450, [ 7.14 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 36.14 ], 60, [ 4, 4 ], 1), new i.ContinusSpawnMonster(510, [ 16.14 ], 100, [ 6, 7 ], 1.1), new i.ContinusSpawnMonster(540, [ 8.14 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.14 ], 60, [ 4, 6 ], 1.2), new i.ContinusSpawnMonster(660, [ 26.14 ], 75, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.14 ], 120, [ 6, 8 ], .7), new i.ContinusSpawnMonster(780, [ 27.14 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 27.14 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.14 ], 40, [ 4, 5 ], 1), new i.ContinusSpawnMonster(930, [ 28.14 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(960, [ 67.14 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.14 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 21.14 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.14 ], 120, [ 8, 8 ], 1), new i.ContinusSpawnMonster(1200, [ 21.14 ], 0, [ 8, 8 ], 1) ], [ new i.OnceOneMonster(61, 11.14), new i.OnceOneMonster(64, 11.14), new i.OnceOneMonster(71, 11.14), new i.OnceOneMonster(77, 11.14), new i.OnceOneMonster(89, 11.14), new i.OnceOneMonster(104, 11.14), new i.OnceOneMonster(119, 11.14), new i.OnceOneMonster(123, 11.14), new i.OnceOneMonster(129, 11.14), new i.OnceOneMonster(137, 11.14), new i.OnceOneMonster(148, 11.14), new i.OnceOneMonster(155, 11.14), new i.OnceOneMonster(162, 11.14), new i.OnceOneMonster(175, 11.14), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.14), new i.OnceOneMonster(182, 12.14), new i.OnceOneMonster(185, 12.14), new i.OnceOneMonster(188, 12.14), new i.OnceOneMonster(195, 12.14), new i.OnceOneMonster(203, 12.14), new i.OnceOneMonster(210, 12.14), new i.OnceOneMonster(215, 12.14), new i.OnceOneMonster(220, 12.14), new i.OnceOneMonster(243, 12.14), new i.OnceOneMonster(246, 12.14), new i.OnceOneMonster(252, 12.14), new i.OnceOneMonster(258, 12.14), new i.OnceOneMonster(262, 12.14), new i.OnceOneMonster(269, 12.14), new i.OnceOneMonster(275, 12.14), new i.OnceOneMonster(280, 12.14), new i.OnceOneMonster(285, 12.14), new i.OnceOneMonster(290, 12.14), new i.OnceOneMonster(306, 12.14), new i.OnceOneMonster(309, 12.14), new i.OnceOneMonster(310, 75.14), new i.OnceOneMonster(315, 12.14), new i.OnceOneMonster(320, 12.14), new i.OnceOneMonster(326, 12.14), new i.OnceOneMonster(327, 75.14), new i.OnceOneMonster(333, 12.14), new i.OnceOneMonster(340, 12.14), new i.OnceOneMonster(345, 12.14), new i.OnceOneMonster(363, 72.14), new i.OnceOneMonster(366, 12.14), new i.OnceOneMonster(369, 12.14), new i.OnceOneMonster(376, 12.14), new i.OnceOneMonster(381, 72.14), new i.OnceOneMonster(382, 12.14), new i.OnceOneMonster(387, 12.14), new i.OnceOneMonster(395, 12.14), new i.OnceOneMonster(400, 72.14), new i.OnceOneMonster(403, 12.14), new i.OnceOneMonster(406, 12.14), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.14), new i.OnceOneMonster(425, 12.14), new i.OnceOneMonster(427, 78.14), new i.OnceOneMonster(430, 12.14), new i.OnceOneMonster(435, 12.14), new i.OnceOneMonster(438, 12.14), new i.OnceOneMonster(442, 78.14), new i.OnceOneMonster(445, 12.14), new i.OnceOneMonster(451, 12.14), new i.OnceOneMonster(460, 12.14), new i.OnceOneMonster(465, 78.14), new i.OnceOneMonster(470, 12.14), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.14), new i.OnceOneMonster(492, 13.14), new i.OnceOneMonster(498, 13.14), new i.OnceOneMonster(510, 13.14), new i.OnceOneMonster(530, 13.14), new i.OnceOneMonster(610, 56.14), new i.OnceOneMonster(620, 56.14), new i.OnceOneMonster(630, 56.14), new i.OnceOneMonster(640, 56.14), new i.OnceOneMonster(650, 56.14), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.14), new i.OnceOneMonster(663, 13.14), new i.OnceOneMonster(668, 13.14), new i.OnceOneMonster(670, 73.14), new i.OnceOneMonster(680, 13.14), new i.OnceOneMonster(687, 13.14), new i.OnceOneMonster(690, 73.14), new i.OnceOneMonster(723, 14.14), new i.OnceOneMonster(727, 73.14), new i.OnceOneMonster(730, 14.14), new i.OnceOneMonster(736, 73.14), new i.OnceOneMonster(745, 14.14), new i.OnceOneMonster(750, 73.14), new i.OnceOneMonster(760, 14.14), new i.OnceOneMonster(765, 73.14), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.14), new i.OnceOneMonster(810, 57.14), new i.OnceOneMonster(860, 57.14), new i.OnceOneMonster(880, 57.14), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.14), new i.OnceOneMonster(901, 33.14), new i.OnceOneMonster(903, 15.14), new i.OnceOneMonster(906, 15.14), new i.OnceOneMonster(907, 33.14), new i.OnceOneMonster(909, 15.14), new i.OnceOneMonster(915, 15.14), new i.OnceOneMonster(923, 33.14), new i.OnceOneMonster(928, 15.14), new i.OnceOneMonster(940, 33.14), new i.OnceOneMonster(950, 15.14), new i.OnceOneMonster(958, 15.14), new i.OnceOneMonster(980, 33.14), new i.OnceOneMonster(1020, 33.14), new i.OnceOneMonster(1045, 33.14), new i.OnceOneMonster(1080, 34.14), new i.OnceOneMonster(1121, 34.14), new i.OnceOneMonster(1130, 34.14), new i.OnceOneMonster(1178, 34.14), new i.OnceOneMonster(1186, 34.14), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.14) ], null, null, "Level5_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Coin, 2e3) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(18, 5, "5-2", "", "Unpack/Level/6", "Prefabs/Level/Level5", cc.v2(0, 0), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.15 ], 25, [ 4, 5 ], 1.3), new i.ContinusSpawnMonster(30, [ 1.15 ], 40, [ 4, 5 ], 1), new i.ContinusSpawnMonster(60, [ 2.15 ], 50, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 3.15 ], 60, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 3.15 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 4.15 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 60.15 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.15 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.15 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.15 ], 50, [ 5, 5 ], 1), new i.ContinusSpawnMonster(450, [ 7.15 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 36.15 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(510, [ 16.15 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.15 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.15 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.15 ], 75, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.15 ], 120, [ 8, 10 ], .7), new i.ContinusSpawnMonster(780, [ 27.15 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 27.15 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.15 ], 40, [ 4, 5 ], 1), new i.ContinusSpawnMonster(930, [ 28.15 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(960, [ 67.15 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.15 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 21.15 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.15 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.15 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(61, 11.15), new i.OnceOneMonster(64, 11.15), new i.OnceOneMonster(71, 11.15), new i.OnceOneMonster(77, 11.15), new i.OnceOneMonster(89, 11.15), new i.OnceOneMonster(104, 11.15), new i.OnceOneMonster(119, 11.15), new i.OnceOneMonster(123, 11.15), new i.OnceOneMonster(129, 11.15), new i.OnceOneMonster(137, 11.15), new i.OnceOneMonster(148, 11.15), new i.OnceOneMonster(155, 11.15), new i.OnceOneMonster(162, 11.15), new i.OnceOneMonster(175, 11.15), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.15), new i.OnceOneMonster(182, 12.15), new i.OnceOneMonster(185, 12.15), new i.OnceOneMonster(188, 12.15), new i.OnceOneMonster(195, 12.15), new i.OnceOneMonster(203, 12.15), new i.OnceOneMonster(210, 12.15), new i.OnceOneMonster(215, 12.15), new i.OnceOneMonster(220, 12.15), new i.OnceOneMonster(243, 12.15), new i.OnceOneMonster(246, 12.15), new i.OnceOneMonster(252, 12.15), new i.OnceOneMonster(258, 12.15), new i.OnceOneMonster(262, 12.15), new i.OnceOneMonster(269, 12.15), new i.OnceOneMonster(275, 12.15), new i.OnceOneMonster(280, 12.15), new i.OnceOneMonster(285, 12.15), new i.OnceOneMonster(290, 12.15), new i.OnceMultiMonster_Rush(297, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(300, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(303, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(305, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(306, 12.15), new i.OnceOneMonster(309, 12.15), new i.OnceOneMonster(310, 75.15), new i.OnceOneMonster(315, 12.15), new i.OnceOneMonster(320, 12.15), new i.OnceOneMonster(326, 12.15), new i.OnceOneMonster(310, 75.15), new i.OnceOneMonster(333, 12.15), new i.OnceOneMonster(340, 12.15), new i.OnceOneMonster(345, 12.15), new i.OnceOneMonster(363, 72.15), new i.OnceOneMonster(366, 12.15), new i.OnceOneMonster(369, 12.15), new i.OnceOneMonster(376, 12.15), new i.OnceOneMonster(381, 72.15), new i.OnceOneMonster(382, 12.15), new i.OnceOneMonster(387, 12.15), new i.OnceOneMonster(395, 12.15), new i.OnceOneMonster(400, 72.15), new i.OnceOneMonster(403, 12.15), new i.OnceOneMonster(406, 12.15), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.15), new i.OnceOneMonster(425, 12.15), new i.OnceOneMonster(427, 78.15), new i.OnceOneMonster(430, 12.15), new i.OnceOneMonster(435, 12.15), new i.OnceOneMonster(438, 12.15), new i.OnceOneMonster(442, 78.15), new i.OnceOneMonster(445, 12.15), new i.OnceOneMonster(451, 12.15), new i.OnceOneMonster(460, 12.15), new i.OnceOneMonster(465, 78.15), new i.OnceOneMonster(470, 12.15), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.15), new i.OnceOneMonster(492, 13.15), new i.OnceOneMonster(498, 13.15), new i.OnceOneMonster(510, 13.15), new i.OnceOneMonster(530, 13.15), new i.OnceOneMonster(610, 56.15), new i.OnceOneMonster(620, 56.15), new i.OnceOneMonster(630, 56.15), new i.OnceOneMonster(640, 56.15), new i.OnceOneMonster(650, 56.15), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.15), new i.OnceOneMonster(663, 13.15), new i.OnceOneMonster(668, 13.15), new i.OnceOneMonster(670, 73.15), new i.OnceOneMonster(680, 13.15), new i.OnceOneMonster(687, 13.15), new i.OnceOneMonster(690, 73.15), new i.OnceOneMonster(725, 14.15), new i.OnceOneMonster(727, 73.15), new i.OnceOneMonster(730, 14.15), new i.OnceOneMonster(736, 73.15), new i.OnceOneMonster(745, 14.15), new i.OnceOneMonster(750, 73.15), new i.OnceOneMonster(760, 14.15), new i.OnceOneMonster(765, 73.15), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.15), new i.OnceOneMonster(810, 57.15), new i.OnceOneMonster(860, 57.15), new i.OnceOneMonster(880, 57.15), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.15), new i.OnceOneMonster(903, 15.15), new i.OnceOneMonster(906, 15.15), new i.OnceOneMonster(907, 33.15), new i.OnceOneMonster(909, 15.15), new i.OnceOneMonster(915, 15.15), new i.OnceOneMonster(923, 33.15), new i.OnceOneMonster(928, 15.15), new i.OnceOneMonster(940, 33.15), new i.OnceOneMonster(950, 15.15), new i.OnceOneMonster(955, 15.15), new i.OnceOneMonster(958, 15.15), new i.OnceOneMonster(970, 33.15), new i.OnceOneMonster(990, 33.15), new i.OnceOneMonster(1020, 33.15), new i.OnceOneMonster(1045, 33.15), new i.OnceOneMonster(1080, 34.15), new i.OnceOneMonster(1087, 71.15), new i.OnceOneMonster(1095, 34.15), new i.OnceOneMonster(1121, 34.15), new i.OnceOneMonster(1130, 34.15), new i.OnceOneMonster(1142, 34.15), new i.OnceOneMonster(1152, 71.15), new i.OnceOneMonster(1178, 34.15), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.15) ], null, null, "Level5_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.BluePrint, 8, a.WeaponType.Cannon) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(19, 5, "5-3", "", "Unpack/Level/6", "Prefabs/Level/Level5", cc.v2(0, 0), !0, !0, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.16 ], 30, [ 4, 5 ], 1), new i.ContinusSpawnMonster(30, [ 1.16 ], 50, [ 5, 6 ], 1), new i.ContinusSpawnMonster(60, [ 2.16 ], 60, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 3.16 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 3.16 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 4.16 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 60.16 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.16 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.16 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.16 ], 50, [ 5, 5 ], 1), new i.ContinusSpawnMonster(450, [ 7.16 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 36.16 ], 80, [ 4, 4 ], 1), new i.ContinusSpawnMonster(510, [ 16.16 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.16 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.16 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.16 ], 75, [ 6, 6 ], 1), new i.ContinusSpawnMonster(720, [ 66.16 ], 120, [ 8, 10 ], .7), new i.ContinusSpawnMonster(780, [ 27.16 ], 100, [ 8, 8 ], 1), new i.ContinusSpawnMonster(840, [ 27.16 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 28.16 ], 40, [ 4, 5 ], 1), new i.ContinusSpawnMonster(930, [ 28.16 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(960, [ 67.16 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.16 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 21.16 ], 100, [ 6, 10 ], 1), new i.ContinusSpawnMonster(1140, [ 21.16 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.16 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(61, 11.16), new i.OnceOneMonster(64, 11.16), new i.OnceOneMonster(71, 11.16), new i.OnceOneMonster(77, 11.16), new i.OnceOneMonster(89, 11.16), new i.OnceOneMonster(104, 11.16), new i.OnceOneMonster(119, 11.16), new i.OnceOneMonster(123, 11.16), new i.OnceOneMonster(129, 11.16), new i.OnceOneMonster(137, 11.16), new i.OnceOneMonster(148, 11.16), new i.OnceOneMonster(155, 11.16), new i.OnceOneMonster(162, 11.16), new i.OnceOneMonster(175, 11.16), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.16), new i.OnceOneMonster(182, 12.16), new i.OnceOneMonster(185, 12.16), new i.OnceOneMonster(188, 12.16), new i.OnceOneMonster(195, 12.16), new i.OnceOneMonster(203, 12.16), new i.OnceOneMonster(210, 12.16), new i.OnceOneMonster(215, 12.16), new i.OnceOneMonster(220, 12.16), new i.OnceOneMonster(243, 12.16), new i.OnceOneMonster(246, 12.16), new i.OnceOneMonster(252, 12.16), new i.OnceOneMonster(258, 12.16), new i.OnceOneMonster(262, 12.16), new i.OnceOneMonster(269, 12.16), new i.OnceOneMonster(275, 12.16), new i.OnceOneMonster(280, 12.16), new i.OnceOneMonster(285, 12.16), new i.OnceOneMonster(290, 12.16), new i.OnceMultiMonster_Rush(293, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(296, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(299, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(306, 12.16), new i.OnceOneMonster(309, 12.16), new i.OnceOneMonster(310, 75.16), new i.OnceOneMonster(315, 12.16), new i.OnceOneMonster(320, 12.16), new i.OnceOneMonster(326, 12.16), new i.OnceOneMonster(310, 75.16), new i.OnceOneMonster(333, 12.16), new i.OnceOneMonster(340, 12.16), new i.OnceOneMonster(345, 12.16), new i.OnceOneMonster(363, 72.16), new i.OnceOneMonster(366, 12.16), new i.OnceOneMonster(369, 12.16), new i.OnceOneMonster(376, 12.16), new i.OnceOneMonster(381, 72.16), new i.OnceOneMonster(382, 12.16), new i.OnceOneMonster(387, 12.16), new i.OnceOneMonster(395, 12.16), new i.OnceOneMonster(400, 72.16), new i.OnceOneMonster(403, 12.16), new i.OnceOneMonster(406, 12.16), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.16), new i.OnceOneMonster(425, 12.16), new i.OnceOneMonster(427, 78.16), new i.OnceOneMonster(430, 12.16), new i.OnceOneMonster(435, 12.16), new i.OnceOneMonster(438, 12.16), new i.OnceOneMonster(442, 78.16), new i.OnceOneMonster(445, 12.16), new i.OnceOneMonster(451, 12.16), new i.OnceOneMonster(460, 12.16), new i.OnceOneMonster(465, 78.16), new i.OnceOneMonster(470, 12.16), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(486, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.16), new i.OnceOneMonster(492, 13.16), new i.OnceOneMonster(498, 13.16), new i.OnceOneMonster(510, 13.16), new i.OnceOneMonster(530, 13.16), new i.OnceOneMonster(610, 56.16), new i.OnceOneMonster(620, 56.16), new i.OnceOneMonster(630, 56.16), new i.OnceOneMonster(640, 56.16), new i.OnceOneMonster(650, 56.16), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.16), new i.OnceOneMonster(663, 13.16), new i.OnceOneMonster(668, 13.16), new i.OnceOneMonster(670, 73.16), new i.OnceOneMonster(680, 13.16), new i.OnceOneMonster(687, 13.16), new i.OnceOneMonster(690, 73.16), new i.OnceOneMonster(723, 14.16), new i.OnceOneMonster(727, 73.16), new i.OnceOneMonster(730, 14.16), new i.OnceOneMonster(736, 73.16), new i.OnceOneMonster(745, 14.16), new i.OnceOneMonster(750, 73.16), new i.OnceOneMonster(760, 14.16), new i.OnceOneMonster(765, 73.16), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.16), new i.OnceOneMonster(810, 57.16), new i.OnceOneMonster(860, 57.16), new i.OnceOneMonster(880, 57.16), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.16), new i.OnceOneMonster(901, 33.16), new i.OnceOneMonster(903, 15.16), new i.OnceOneMonster(906, 15.16), new i.OnceOneMonster(907, 33.16), new i.OnceOneMonster(909, 15.16), new i.OnceOneMonster(915, 15.16), new i.OnceOneMonster(923, 33.16), new i.OnceOneMonster(928, 15.16), new i.OnceOneMonster(940, 33.16), new i.OnceOneMonster(950, 15.16), new i.OnceOneMonster(955, 15.16), new i.OnceOneMonster(958, 15.16), new i.OnceOneMonster(963, 33.16), new i.OnceMultiMonster_Rush(968, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(971, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(974, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(977, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(980, 33.16), new i.OnceOneMonster(990, 71.16), new i.OnceOneMonster(1020, 33.16), new i.OnceOneMonster(1045, 33.16), new i.OnceOneMonster(1080, 34.16), new i.OnceOneMonster(1087, 34.16), new i.OnceOneMonster(1095, 71.16), new i.OnceOneMonster(1107, 34.16), new i.OnceOneMonster(1130, 34.16), new i.OnceOneMonster(1142, 34.16), new i.OnceOneMonster(1165, 71.16), new i.OnceOneMonster(1178, 34.16), new i.OnceOneMonster(1186, 71.16), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.16) ], null, null, "Level5_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Diamond, 50) ]));
cc._RF.pop();
}, {
"./ArchivementConfig": "ArchivementConfig",
"./GiftConfig": "GiftConfig",
"./LevelConfig": "LevelConfig",
"./WeaponConfig": "WeaponConfig"
} ],
LevelConfig_Chapter6: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "357c0fBvD9CJIEofqIm0+fr", "LevelConfig_Chapter6");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./ArchivementConfig"), r = e("./GiftConfig"), i = e("./LevelConfig"), a = e("./WeaponConfig");
i.LevelConfig.AddLevelConfig(new i.LevelProto(20, 6, "6-1", "", "Unpack/Level/7", "Prefabs/Level/Level6", cc.v2(0, 0), !1, !0, [ cc.v2(-550, 550), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.17 ], 25, [ 4, 5 ], 1.4), new i.ContinusSpawnMonster(30, [ 1.17 ], 50, [ 4, 5 ], 1), new i.ContinusSpawnMonster(60, [ 2.17 ], 60, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 3.17 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(150, [ 78.17 ], 60, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 3.17 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 4.17 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 79.17 ], 60, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.17 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.17 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.17 ], 50, [ 5, 5 ], 1), new i.ContinusSpawnMonster(450, [ 7.17 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 36.17 ], 60, [ 4, 4 ], 1), new i.ContinusSpawnMonster(510, [ 16.17 ], 100, [ 6, 7 ], 1.1), new i.ContinusSpawnMonster(540, [ 8.17 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.17 ], 60, [ 4, 6 ], 1.2), new i.ContinusSpawnMonster(660, [ 26.17 ], 75, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.17 ], 120, [ 6, 8 ], .7), new i.ContinusSpawnMonster(780, [ 27.17 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 17.17 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 18.17 ], 40, [ 4, 5 ], 1), new i.ContinusSpawnMonster(930, [ 18.17 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(960, [ 67.17 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.17 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 21.17 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.17 ], 120, [ 8, 8 ], 1), new i.ContinusSpawnMonster(1200, [ 21.17 ], 0, [ 8, 8 ], 1) ], [ new i.OnceOneMonster(71, 11.17), new i.OnceOneMonster(77, 11.17), new i.OnceOneMonster(89, 11.17), new i.OnceOneMonster(104, 11.17), new i.OnceOneMonster(119, 11.17), new i.OnceOneMonster(123, 11.17), new i.OnceOneMonster(129, 11.17), new i.OnceOneMonster(137, 11.17), new i.OnceOneMonster(148, 11.17), new i.OnceOneMonster(155, 11.17), new i.OnceOneMonster(162, 11.17), new i.OnceOneMonster(175, 11.17), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.17), new i.OnceOneMonster(182, 12.17), new i.OnceOneMonster(188, 12.17), new i.OnceOneMonster(195, 12.17), new i.OnceOneMonster(203, 12.17), new i.OnceOneMonster(210, 12.17), new i.OnceOneMonster(215, 12.17), new i.OnceOneMonster(220, 12.17), new i.OnceOneMonster(243, 12.17), new i.OnceOneMonster(252, 12.17), new i.OnceOneMonster(258, 12.17), new i.OnceOneMonster(262, 12.17), new i.OnceOneMonster(269, 12.17), new i.OnceOneMonster(275, 12.17), new i.OnceOneMonster(280, 12.17), new i.OnceOneMonster(285, 12.17), new i.OnceOneMonster(290, 12.17), new i.OnceOneMonster(306, 12.17), new i.OnceOneMonster(310, 75.17), new i.OnceOneMonster(315, 12.17), new i.OnceOneMonster(320, 12.17), new i.OnceOneMonster(326, 12.17), new i.OnceOneMonster(327, 75.17), new i.OnceOneMonster(333, 12.17), new i.OnceOneMonster(340, 12.17), new i.OnceOneMonster(345, 12.17), new i.OnceOneMonster(363, 72.17), new i.OnceOneMonster(369, 12.17), new i.OnceOneMonster(376, 12.17), new i.OnceOneMonster(381, 72.17), new i.OnceOneMonster(387, 12.17), new i.OnceOneMonster(395, 12.17), new i.OnceOneMonster(400, 72.17), new i.OnceOneMonster(403, 12.17), new i.OnceOneMonster(406, 12.17), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.17), new i.OnceOneMonster(425, 12.17), new i.OnceOneMonster(427, 72.17), new i.OnceOneMonster(430, 12.17), new i.OnceOneMonster(435, 12.17), new i.OnceOneMonster(438, 12.17), new i.OnceOneMonster(442, 72.17), new i.OnceOneMonster(445, 12.17), new i.OnceOneMonster(451, 12.17), new i.OnceOneMonster(460, 12.17), new i.OnceOneMonster(465, 72.17), new i.OnceOneMonster(470, 12.17), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.17), new i.OnceOneMonster(492, 13.17), new i.OnceOneMonster(498, 13.17), new i.OnceOneMonster(503, 13.17), new i.OnceOneMonster(510, 13.17), new i.OnceOneMonster(512, 13.17), new i.OnceOneMonster(530, 13.17), new i.OnceOneMonster(610, 80.17), new i.OnceOneMonster(620, 80.17), new i.OnceOneMonster(630, 80.17), new i.OnceOneMonster(640, 80.17), new i.OnceOneMonster(650, 80.17), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.17), new i.OnceOneMonster(663, 13.17), new i.OnceOneMonster(666, 13.17), new i.OnceOneMonster(668, 13.17), new i.OnceOneMonster(680, 13.17), new i.OnceOneMonster(687, 13.17), new i.OnceOneMonster(723, 14.17), new i.OnceOneMonster(725, 14.17), new i.OnceOneMonster(727, 73.17), new i.OnceOneMonster(730, 14.17), new i.OnceOneMonster(736, 73.17), new i.OnceOneMonster(745, 14.17), new i.OnceOneMonster(750, 73.17), new i.OnceOneMonster(760, 14.17), new i.OnceOneMonster(765, 73.17), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.17), new i.OnceOneMonster(810, 57.17), new i.OnceOneMonster(860, 57.17), new i.OnceOneMonster(880, 57.17), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.17), new i.OnceOneMonster(901, 33.17), new i.OnceOneMonster(903, 15.17), new i.OnceOneMonster(906, 15.17), new i.OnceOneMonster(907, 33.17), new i.OnceOneMonster(909, 15.17), new i.OnceOneMonster(915, 15.17), new i.OnceOneMonster(923, 33.17), new i.OnceOneMonster(928, 15.17), new i.OnceOneMonster(940, 33.17), new i.OnceOneMonster(950, 15.17), new i.OnceOneMonster(958, 15.17), new i.OnceOneMonster(980, 33.17), new i.OnceOneMonster(1020, 33.17), new i.OnceOneMonster(1045, 33.17), new i.OnceOneMonster(1080, 34.17), new i.OnceOneMonster(1121, 34.17), new i.OnceOneMonster(1130, 34.17), new i.OnceOneMonster(1178, 34.17), new i.OnceOneMonster(1186, 34.17), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.17) ], null, null, "Level6_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Coin, 2e3) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(21, 6, "6-2", "", "Unpack/Level/7", "Prefabs/Level/Level6", cc.v2(0, 0), !1, !0, [ cc.v2(-550, 550), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.18 ], 25, [ 4, 5 ], 1.3), new i.ContinusSpawnMonster(30, [ 1.18 ], 50, [ 4, 5 ], 1), new i.ContinusSpawnMonster(60, [ 2.18 ], 60, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 3.18 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(150, [ 78.18 ], 60, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 3.18 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 4.18 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 79.18 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.18 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.18 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.18 ], 50, [ 5, 5 ], 1), new i.ContinusSpawnMonster(450, [ 7.18 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 36.18 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(510, [ 16.18 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.18 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.18 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.18 ], 75, [ 6, 6 ], 1.1), new i.ContinusSpawnMonster(720, [ 66.18 ], 120, [ 8, 10 ], .7), new i.ContinusSpawnMonster(780, [ 27.18 ], 100, [ 8, 8 ], 1.3), new i.ContinusSpawnMonster(840, [ 17.18 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 11.18 ], 40, [ 4, 5 ], 1), new i.ContinusSpawnMonster(930, [ 18.18 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(960, [ 18.18 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.18 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 21.18 ], 100, [ 6, 8 ], 1), new i.ContinusSpawnMonster(1140, [ 21.18 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.18 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(71, 11.18), new i.OnceOneMonster(77, 11.18), new i.OnceOneMonster(89, 11.18), new i.OnceOneMonster(104, 11.18), new i.OnceOneMonster(119, 11.18), new i.OnceOneMonster(123, 11.18), new i.OnceOneMonster(129, 11.18), new i.OnceOneMonster(137, 11.18), new i.OnceOneMonster(148, 11.18), new i.OnceOneMonster(155, 11.18), new i.OnceOneMonster(162, 11.18), new i.OnceOneMonster(175, 11.18), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.18), new i.OnceOneMonster(182, 12.18), new i.OnceOneMonster(188, 12.18), new i.OnceOneMonster(195, 12.18), new i.OnceOneMonster(203, 12.18), new i.OnceOneMonster(210, 12.18), new i.OnceOneMonster(215, 12.18), new i.OnceOneMonster(220, 12.18), new i.OnceOneMonster(243, 12.18), new i.OnceOneMonster(252, 12.18), new i.OnceOneMonster(258, 12.18), new i.OnceOneMonster(262, 12.18), new i.OnceOneMonster(269, 12.18), new i.OnceOneMonster(275, 12.18), new i.OnceOneMonster(280, 12.18), new i.OnceOneMonster(285, 12.18), new i.OnceOneMonster(290, 12.18), new i.OnceMultiMonster_Rush(297, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(300, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(303, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(305, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(306, 12.18), new i.OnceOneMonster(310, 75.18), new i.OnceOneMonster(315, 12.18), new i.OnceOneMonster(320, 12.18), new i.OnceOneMonster(326, 12.18), new i.OnceOneMonster(310, 75.18), new i.OnceOneMonster(333, 12.18), new i.OnceOneMonster(340, 12.18), new i.OnceOneMonster(345, 12.18), new i.OnceOneMonster(363, 72.18), new i.OnceOneMonster(369, 12.18), new i.OnceOneMonster(376, 12.18), new i.OnceOneMonster(381, 72.18), new i.OnceOneMonster(387, 12.18), new i.OnceOneMonster(395, 12.18), new i.OnceOneMonster(400, 72.18), new i.OnceOneMonster(403, 12.18), new i.OnceOneMonster(406, 12.18), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.18), new i.OnceOneMonster(425, 12.18), new i.OnceOneMonster(427, 72.18), new i.OnceOneMonster(430, 12.18), new i.OnceOneMonster(435, 12.18), new i.OnceOneMonster(438, 12.18), new i.OnceOneMonster(442, 72.18), new i.OnceOneMonster(445, 12.18), new i.OnceOneMonster(451, 12.18), new i.OnceOneMonster(460, 12.18), new i.OnceOneMonster(465, 72.18), new i.OnceOneMonster(470, 12.18), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.18), new i.OnceOneMonster(492, 13.18), new i.OnceOneMonster(498, 13.18), new i.OnceOneMonster(503, 13.18), new i.OnceOneMonster(510, 13.18), new i.OnceOneMonster(512, 13.18), new i.OnceOneMonster(530, 13.18), new i.OnceOneMonster(610, 80.18), new i.OnceOneMonster(620, 80.18), new i.OnceOneMonster(630, 80.18), new i.OnceOneMonster(640, 80.18), new i.OnceOneMonster(650, 80.18), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.18), new i.OnceOneMonster(663, 13.18), new i.OnceOneMonster(666, 13.18), new i.OnceOneMonster(668, 13.18), new i.OnceOneMonster(680, 13.18), new i.OnceOneMonster(687, 13.18), new i.OnceOneMonster(723, 14.18), new i.OnceOneMonster(725, 14.18), new i.OnceOneMonster(727, 73.18), new i.OnceOneMonster(730, 14.18), new i.OnceOneMonster(736, 73.18), new i.OnceOneMonster(745, 14.18), new i.OnceOneMonster(750, 73.18), new i.OnceOneMonster(760, 14.18), new i.OnceOneMonster(765, 73.18), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.18), new i.OnceOneMonster(810, 57.18), new i.OnceOneMonster(860, 57.18), new i.OnceOneMonster(880, 57.18), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.18), new i.OnceOneMonster(903, 15.18), new i.OnceOneMonster(906, 15.18), new i.OnceOneMonster(907, 33.18), new i.OnceOneMonster(909, 15.18), new i.OnceOneMonster(915, 15.18), new i.OnceOneMonster(923, 33.18), new i.OnceOneMonster(928, 15.18), new i.OnceOneMonster(940, 33.18), new i.OnceOneMonster(950, 15.18), new i.OnceOneMonster(955, 15.18), new i.OnceOneMonster(958, 15.18), new i.OnceOneMonster(970, 33.18), new i.OnceOneMonster(990, 33.18), new i.OnceOneMonster(1020, 33.18), new i.OnceOneMonster(1045, 33.18), new i.OnceOneMonster(1080, 34.18), new i.OnceOneMonster(1087, 71.18), new i.OnceOneMonster(1095, 34.18), new i.OnceOneMonster(1130, 34.18), new i.OnceOneMonster(1142, 34.18), new i.OnceOneMonster(1152, 71.18), new i.OnceOneMonster(1165, 34.18), new i.OnceOneMonster(1178, 34.18), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.18) ], null, null, "Level6_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.BluePrint, 8, a.WeaponType.Cannon) ]));
i.LevelConfig.AddLevelConfig(new i.LevelProto(22, 6, "6-3", "", "Unpack/Level/7", "Prefabs/Level/Level6", cc.v2(0, 0), !1, !0, [ cc.v2(-550, 550), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new i.LevelSpawnInfo([ new i.ContinusSpawnMonster(0, [ 1.19 ], 30, [ 4, 5 ], 1), new i.ContinusSpawnMonster(30, [ 1.19 ], 50, [ 5, 6 ], 1), new i.ContinusSpawnMonster(60, [ 2.19 ], 60, [ 6, 7 ], 1), new i.ContinusSpawnMonster(120, [ 3.19 ], 50, [ 7, 8 ], 1), new i.ContinusSpawnMonster(150, [ 78.19 ], 60, [ 7, 8 ], 1), new i.ContinusSpawnMonster(180, [ 3.19 ], 70, [ 7, 8 ], 1), new i.ContinusSpawnMonster(240, [ 4.19 ], 60, [ 8, 10 ], 1.2), new i.ContinusSpawnMonster(300, [ 79.19 ], 70, [ 4, 4 ], 1), new i.ContinusSpawnMonster(330, [ 6.19 ], 70, [ 6, 7 ], 1.2), new i.ContinusSpawnMonster(360, [ 7.19 ], 80, [ 6, 6 ], 1), new i.ContinusSpawnMonster(420, [ 7.19 ], 50, [ 5, 5 ], 1), new i.ContinusSpawnMonster(450, [ 7.19 ], 80, [ 7, 8 ], 1), new i.ContinusSpawnMonster(480, [ 36.19 ], 80, [ 4, 4 ], 1), new i.ContinusSpawnMonster(510, [ 16.19 ], 100, [ 6, 7 ], 1), new i.ContinusSpawnMonster(540, [ 8.19 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(600, [ 26.19 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(660, [ 26.19 ], 75, [ 6, 6 ], 1), new i.ContinusSpawnMonster(720, [ 66.19 ], 120, [ 8, 10 ], .7), new i.ContinusSpawnMonster(780, [ 27.19 ], 100, [ 8, 8 ], 1), new i.ContinusSpawnMonster(840, [ 17.19 ], 100, [ 8, 10 ], 1), new i.ContinusSpawnMonster(900, [ 18.19 ], 40, [ 4, 5 ], 1), new i.ContinusSpawnMonster(930, [ 18.19 ], 60, [ 4, 6 ], 1), new i.ContinusSpawnMonster(960, [ 67.19 ], 120, [ 8, 10 ], .8), new i.ContinusSpawnMonster(1020, [ 9.19 ], 80, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1080, [ 21.19 ], 100, [ 6, 10 ], 1), new i.ContinusSpawnMonster(1140, [ 21.19 ], 120, [ 8, 10 ], 1), new i.ContinusSpawnMonster(1200, [ 21.19 ], 0, [ 6, 6 ], 1) ], [ new i.OnceOneMonster(71, 11.19), new i.OnceOneMonster(77, 11.19), new i.OnceOneMonster(89, 11.19), new i.OnceOneMonster(104, 11.19), new i.OnceOneMonster(119, 11.19), new i.OnceOneMonster(123, 11.19), new i.OnceOneMonster(129, 11.19), new i.OnceOneMonster(137, 11.19), new i.OnceOneMonster(148, 11.19), new i.OnceOneMonster(155, 11.19), new i.OnceOneMonster(162, 11.19), new i.OnceOneMonster(175, 11.19), new i.OnceWanning1(176), new i.OnceOneMonster(180, 1001.19), new i.OnceOneMonster(182, 12.19), new i.OnceOneMonster(188, 12.19), new i.OnceOneMonster(195, 12.19), new i.OnceOneMonster(203, 12.19), new i.OnceOneMonster(210, 12.19), new i.OnceOneMonster(215, 12.19), new i.OnceOneMonster(220, 12.19), new i.OnceOneMonster(243, 12.19), new i.OnceOneMonster(252, 12.19), new i.OnceOneMonster(258, 12.19), new i.OnceOneMonster(262, 12.19), new i.OnceOneMonster(269, 12.19), new i.OnceOneMonster(275, 12.19), new i.OnceOneMonster(280, 12.19), new i.OnceOneMonster(285, 12.19), new i.OnceOneMonster(290, 12.19), new i.OnceMultiMonster_Rush(293, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(296, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(299, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(306, 12.19), new i.OnceOneMonster(310, 75.19), new i.OnceOneMonster(315, 12.19), new i.OnceOneMonster(320, 12.19), new i.OnceOneMonster(326, 12.19), new i.OnceOneMonster(310, 75.19), new i.OnceOneMonster(333, 12.19), new i.OnceOneMonster(340, 12.19), new i.OnceOneMonster(345, 12.19), new i.OnceOneMonster(363, 72.19), new i.OnceOneMonster(369, 12.19), new i.OnceOneMonster(376, 12.19), new i.OnceOneMonster(381, 72.19), new i.OnceOneMonster(387, 12.19), new i.OnceOneMonster(395, 12.19), new i.OnceOneMonster(400, 72.19), new i.OnceOneMonster(403, 12.19), new i.OnceOneMonster(406, 12.19), new i.OnceWanning1(415), new i.OnceOneMonster(420, 1002.19), new i.OnceOneMonster(425, 12.19), new i.OnceOneMonster(427, 72.19), new i.OnceOneMonster(430, 12.19), new i.OnceOneMonster(435, 12.19), new i.OnceOneMonster(438, 12.19), new i.OnceOneMonster(442, 72.19), new i.OnceOneMonster(445, 12.19), new i.OnceOneMonster(451, 12.19), new i.OnceOneMonster(460, 12.19), new i.OnceOneMonster(465, 72.19), new i.OnceOneMonster(470, 12.19), new i.OnceMultiMonster_Rush(475, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(480, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(483, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(486, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(485, 13.19), new i.OnceOneMonster(492, 13.19), new i.OnceOneMonster(498, 13.19), new i.OnceOneMonster(503, 13.19), new i.OnceOneMonster(510, 13.19), new i.OnceOneMonster(512, 13.19), new i.OnceOneMonster(530, 13.19), new i.OnceOneMonster(610, 80.19), new i.OnceOneMonster(620, 80.19), new i.OnceOneMonster(630, 80.19), new i.OnceOneMonster(640, 80.19), new i.OnceOneMonster(650, 80.19), new i.OnceWanning1(655), new i.OnceOneMonster(660, 1003.19), new i.OnceOneMonster(663, 13.19), new i.OnceOneMonster(666, 13.19), new i.OnceOneMonster(668, 13.19), new i.OnceOneMonster(680, 13.19), new i.OnceOneMonster(687, 13.19), new i.OnceOneMonster(723, 14.19), new i.OnceOneMonster(725, 14.19), new i.OnceOneMonster(727, 73.19), new i.OnceOneMonster(730, 14.19), new i.OnceOneMonster(736, 73.19), new i.OnceOneMonster(745, 14.19), new i.OnceOneMonster(750, 73.19), new i.OnceOneMonster(760, 14.19), new i.OnceOneMonster(765, 73.19), new i.OnceMultiMonster_Rush(780, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(783, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(786, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(789, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(790, 57.19), new i.OnceOneMonster(810, 57.19), new i.OnceOneMonster(860, 57.19), new i.OnceOneMonster(880, 57.19), new i.OnceWanning1(895), new i.OnceOneMonster(900, 1004.19), new i.OnceOneMonster(901, 33.19), new i.OnceOneMonster(903, 15.19), new i.OnceOneMonster(906, 15.19), new i.OnceOneMonster(907, 33.19), new i.OnceOneMonster(909, 15.19), new i.OnceOneMonster(915, 15.19), new i.OnceOneMonster(923, 33.19), new i.OnceOneMonster(928, 15.19), new i.OnceOneMonster(940, 33.19), new i.OnceOneMonster(950, 15.19), new i.OnceOneMonster(955, 15.19), new i.OnceOneMonster(958, 15.19), new i.OnceOneMonster(963, 33.19), new i.OnceMultiMonster_Rush(968, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(971, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(974, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceMultiMonster_Rush(977, [ 36 ], 450, "Prefabs/Level/EnemyGroup1"), new i.OnceOneMonster(980, 33.19), new i.OnceOneMonster(990, 71.19), new i.OnceOneMonster(1020, 33.19), new i.OnceOneMonster(1045, 33.19), new i.OnceOneMonster(1080, 34.19), new i.OnceOneMonster(1087, 34.19), new i.OnceOneMonster(1107, 34.19), new i.OnceOneMonster(1115, 71.19), new i.OnceOneMonster(1130, 34.19), new i.OnceOneMonster(1142, 34.19), new i.OnceOneMonster(1165, 71.19), new i.OnceOneMonster(1178, 34.19), new i.OnceWanning(1190), new i.OnceOneMonster(1200, 1005.19) ], null, null, "Level6_Lighting"), null, null, null, [ {
sec: 300,
types: 1,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1200,
types: 3,
count: 6
} ], null, [ new r.RewardProto(o.UnlockType.Diamond, 50) ]));
cc._RF.pop();
}, {
"./ArchivementConfig": "ArchivementConfig",
"./GiftConfig": "GiftConfig",
"./LevelConfig": "LevelConfig",
"./WeaponConfig": "WeaponConfig"
} ],
LevelConfig_Endless: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "569d3TOUMhHjpNP2SXUHj8D", "LevelConfig_Endless");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./LevelConfig");
o.LevelConfig.AddLevelConfig(new o.LevelProto(4, -1, "无尽挑战", "", "Unpack/Level/7", "Prefabs/Level/Level6", cc.v2(0, 0), !1, !0, [ cc.v2(-550, 550), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new o.LevelSpawnInfo([ new o.ContinusSpawnMonster(0, [ 1.3 ], 30, [ 4, 5 ], 1.8), new o.ContinusSpawnMonster(60, [ 1.3 ], 40, [ 6, 7 ], 1), new o.ContinusSpawnMonster(120, [ 2.3 ], 40, [ 7, 8 ], 1.2), new o.ContinusSpawnMonster(180, [ 2.3 ], 50, [ 7, 8 ], 1), new o.ContinusSpawnMonster(240, [ 3.3 ], 60, [ 8, 10 ], 1.4), new o.ContinusSpawnMonster(300, [ 121.3 ], 70, [ 4, 4 ], 1.2), new o.ContinusSpawnMonster(330, [ 11.3 ], 70, [ 6, 7 ], 1.2), new o.ContinusSpawnMonster(360, [ 12.3 ], 80, [ 6, 6 ], 1), new o.ContinusSpawnMonster(420, [ 12.3 ], 50, [ 7, 8 ], 1), new o.ContinusSpawnMonster(480, [ 91.3 ], 25, [ 3, 3 ], 1.5), new o.ContinusSpawnMonster(510, [ 31.3 ], 100, [ 6, 7 ], 1.1), new o.ContinusSpawnMonster(540, [ 32.3 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(600, [ 41.3 ], 40, [ 4, 6 ], 1.2), new o.ContinusSpawnMonster(660, [ 41.3 ], 60, [ 6, 6 ], 1.1), new o.ContinusSpawnMonster(720, [ 71.3 ], 40, [ 5, 5 ], 1), new o.ContinusSpawnMonster(750, [ 42.3 ], 80, [ 7, 7 ], 1), new o.ContinusSpawnMonster(780, [ 43.3 ], 100, [ 8, 8 ], 1.3), new o.ContinusSpawnMonster(840, [ 43.3 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(900, [ 44.3 ], 80, [ 8, 10 ], 1), new o.ContinusSpawnMonster(960, [ 51.3 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(1020, [ 13.3 ], 60, [ 8, 10 ], 1), new o.ContinusSpawnMonster(1080, [ 81.3 ], 60, [ 4, 4 ], 1), new o.ContinusSpawnMonster(1110, [ 4.3 ], 100, [ 10, 12 ], 1), new o.ContinusSpawnMonster(1140, [ 4.3 ], 100, [ 6, 8 ], 1), new o.ContinusSpawnMonster(1200, [ 52.3 ], 100, [ 6, 6 ], 1), new o.ContinusSpawnMonster(1260, [ 52.3 ], 100, [ 6, 6 ], 1), new o.ContinusSpawnMonster(1320, [ 132.3 ], 100, [ 7, 8 ], 1), new o.ContinusSpawnMonster(1380, [ 53.3 ], 100, [ 8, 9 ], 1), new o.ContinusSpawnMonster(1440, [ 54.3 ], 100, [ 6, 6 ], 1), new o.ContinusSpawnMonster(1500, [ 55.3 ], 60, [ 4, 6 ], 1), new o.ContinusSpawnMonster(1560, [ 92.3 ], 50, [ 4, 4 ], 1), new o.ContinusSpawnMonster(1590, [ 14.3 ], 100, [ 7, 8 ], 1), new o.ContinusSpawnMonster(1620, [ 14.3 ], 100, [ 6, 8 ], 1), new o.ContinusSpawnMonster(1680, [ 15.3 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(1740, [ 16.3 ], 100, [ 4, 6 ], 1), new o.ContinusSpawnMonster(1800, [ 33.3 ], 100, [ 6, 6 ], 1), new o.ContinusSpawnMonster(1860, [ 33.3 ], 100, [ 7, 7 ], 1), new o.ContinusSpawnMonster(1920, [ 141.3 ], 100, [ 8, 8 ], 1), new o.ContinusSpawnMonster(1980, [ 35.3 ], 100, [ 6, 8 ], 1), new o.ContinusSpawnMonster(2040, [ 45.3 ], 100, [ 6, 8 ], 1), new o.ContinusSpawnMonster(2100, [ 46.3 ], 100, [ 8, 8 ], 1), new o.ContinusSpawnMonster(2160, [ 47.3 ], 100, [ 8, 10 ], 1), new o.ContinusSpawnMonster(2220, [ 82.3 ], 100, [ 6, 6 ], 1), new o.ContinusSpawnMonster(2250, [ 5.3 ], 120, [ 8, 10 ], 1), new o.ContinusSpawnMonster(2280, [ 6.3 ], 120, [ 6, 8 ], 1), new o.ContinusSpawnMonster(2340, [ 6.3 ], 120, [ 8, 10 ], 1), new o.ContinusSpawnMonster(2400, [ 142.3 ], 20, [ 6, 6 ], 1) ], [ new o.OnceOneMonster(61, 21.3), new o.OnceOneMonster(64, 21.3), new o.OnceOneMonster(71, 21.3), new o.OnceOneMonster(77, 21.3), new o.OnceOneMonster(89, 21.3), new o.OnceOneMonster(104, 21.3), new o.OnceOneMonster(119, 21.3), new o.OnceOneMonster(123, 21.3), new o.OnceOneMonster(129, 21.3), new o.OnceOneMonster(137, 21.3), new o.OnceOneMonster(148, 21.3), new o.OnceOneMonster(155, 21.3), new o.OnceOneMonster(162, 21.3), new o.OnceOneMonster(175, 21.3), new o.OnceOneMonster(180, 1001.3), new o.OnceOneMonster(182, 21.3), new o.OnceOneMonster(185, 21.3), new o.OnceOneMonster(188, 21.3), new o.OnceOneMonster(195, 21.3), new o.OnceOneMonster(203, 21.3), new o.OnceOneMonster(210, 21.3), new o.OnceOneMonster(215, 21.3), new o.OnceOneMonster(220, 21.3), new o.OnceOneMonster(243, 21.3), new o.OnceOneMonster(246, 21.3), new o.OnceOneMonster(252, 21.3), new o.OnceOneMonster(258, 21.3), new o.OnceOneMonster(262, 21.3), new o.OnceOneMonster(269, 21.3), new o.OnceOneMonster(275, 21.3), new o.OnceOneMonster(280, 21.3), new o.OnceOneMonster(285, 21.3), new o.OnceOneMonster(290, 21.3), new o.OnceMultiMonster_Rush(300, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(303, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(306, 21.3), new o.OnceOneMonster(309, 21.3), new o.OnceOneMonster(315, 21.3), new o.OnceOneMonster(320, 21.3), new o.OnceOneMonster(326, 21.3), new o.OnceOneMonster(333, 21.3), new o.OnceOneMonster(340, 21.3), new o.OnceOneMonster(345, 21.3), new o.OnceMultiMonster_Rush(360, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(363, 61.3), new o.OnceOneMonster(366, 22.3), new o.OnceOneMonster(369, 22.3), new o.OnceOneMonster(376, 22.3), new o.OnceOneMonster(381, 61.3), new o.OnceOneMonster(382, 22.3), new o.OnceOneMonster(387, 22.3), new o.OnceOneMonster(395, 22.3), new o.OnceOneMonster(400, 61.3), new o.OnceOneMonster(403, 22.3), new o.OnceOneMonster(406, 22.3), new o.OnceOneMonster(420, 1002.3), new o.OnceOneMonster(425, 22.3), new o.OnceOneMonster(427, 61.3), new o.OnceOneMonster(430, 22.3), new o.OnceOneMonster(435, 22.3), new o.OnceOneMonster(438, 22.3), new o.OnceOneMonster(442, 61.3), new o.OnceOneMonster(445, 22.3), new o.OnceOneMonster(451, 22.3), new o.OnceOneMonster(460, 22.3), new o.OnceOneMonster(465, 61.3), new o.OnceOneMonster(470, 22.3), new o.OnceMultiMonster_Rush(480, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(483, [ 36.2 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(485, 23.3), new o.OnceOneMonster(492, 23.3), new o.OnceOneMonster(498, 23.3), new o.OnceOneMonster(503, 23.3), new o.OnceOneMonster(510, 23.3), new o.OnceOneMonster(512, 23.3), new o.OnceOneMonster(530, 23.3), new o.OnceMultiMonster_Rush(600, [ 36 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(603, [ 36 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(606, [ 36 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(609, [ 36 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(610, 111.3), new o.OnceOneMonster(630, 111.3), new o.OnceOneMonster(650, 111.3), new o.OnceOneMonster(666, 24.3), new o.OnceOneMonster(660, 1003.3), new o.OnceOneMonster(663, 24.3), new o.OnceOneMonster(666, 24.3), new o.OnceOneMonster(668, 24.3), new o.OnceOneMonster(670, 62.3), new o.OnceOneMonster(680, 24.3), new o.OnceOneMonster(687, 24.3), new o.OnceOneMonster(690, 62.3), new o.OnceMultiMonster_Rush(718, [ 36 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(721, [ 36 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(723, 25.3), new o.OnceOneMonster(725, 25.3), new o.OnceOneMonster(727, 62.3), new o.OnceOneMonster(730, 25.3), new o.OnceOneMonster(736, 62.3), new o.OnceOneMonster(745, 25.3), new o.OnceOneMonster(750, 62.3), new o.OnceOneMonster(760, 25.3), new o.OnceOneMonster(765, 62.3), new o.OnceOneMonster(790, 112.3), new o.OnceOneMonster(810, 112.3), new o.OnceMultiMonster_Rush(838, [ 36 ], 350, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(860, 112.3), new o.OnceOneMonster(880, 112.3), new o.OnceOneMonster(900, 1004.3), new o.OnceOneMonster(901, 62.3), new o.OnceOneMonster(903, 25.3), new o.OnceOneMonster(906, 25.3), new o.OnceOneMonster(907, 62.3), new o.OnceOneMonster(909, 25.3), new o.OnceOneMonster(915, 25.3), new o.OnceOneMonster(923, 62.3), new o.OnceOneMonster(928, 25.3), new o.OnceOneMonster(940, 62.3), new o.OnceOneMonster(950, 25.3), new o.OnceOneMonster(955, 25.3), new o.OnceOneMonster(958, 25.3), new o.OnceOneMonster(963, 62.3), new o.OnceOneMonster(970, 62.3), new o.OnceOneMonster(980, 62.3), new o.OnceOneMonster(990, 62.3), new o.OnceOneMonster(1020, 62.3), new o.OnceOneMonster(1045, 62.3), new o.OnceMultiMonster_Rush(1050, [ 36 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(1080, 63.3), new o.OnceOneMonster(1095, 63.3), new o.OnceOneMonster(1107, 63.3), new o.OnceOneMonster(1121, 63.3), new o.OnceOneMonster(1142, 63.3), new o.OnceOneMonster(1165, 63.3), new o.OnceOneMonster(1178, 63.3), new o.OnceOneMonster(1186, 63.3), new o.OnceOneMonster(1200, 1005.3), new o.OnceOneMonster(1270, 25.3), new o.OnceOneMonster(1275, 25.3), new o.OnceOneMonster(1280, 25.3), new o.OnceOneMonster(1380, 122.3), new o.OnceOneMonster(1388, 122.3), new o.OnceOneMonster(1396, 122.3), new o.OnceOneMonster(1404, 122.3), new o.OnceOneMonster(1410, 122.3), new o.OnceMultiMonster_Rush(1030, [ 36 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(1450, 122.3), new o.OnceOneMonster(1458, 122.3), new o.OnceOneMonster(1468, 122.3), new o.OnceOneMonster(1474, 122.3), new o.OnceOneMonster(1482, 122.3), new o.OnceOneMonster(1500, 1006.3), new o.OnceOneMonster(1595, 113.3), new o.OnceOneMonster(1605, 113.3), new o.OnceOneMonster(1618, 113.3), new o.OnceOneMonster(1625, 21.3), new o.OnceOneMonster(1628, 21.3), new o.OnceOneMonster(1632, 21.3), new o.OnceOneMonster(1637, 21.3), new o.OnceOneMonster(1642, 21.3), new o.OnceOneMonster(1647, 21.3), new o.OnceOneMonster(1800, 1007.3), new o.OnceOneMonster(1810, 64.3), new o.OnceOneMonster(1820, 64.3), new o.OnceOneMonster(1830, 64.3), new o.OnceOneMonster(1840, 64.3), new o.OnceOneMonster(1850, 64.3), new o.OnceOneMonster(1860, 64.3), new o.OnceOneMonster(1780, 64.3), new o.OnceOneMonster(1950, 26.3), new o.OnceOneMonster(1955, 64.3), new o.OnceOneMonster(1960, 26.3), new o.OnceOneMonster(1965, 64.3), new o.OnceOneMonster(1970, 26.3), new o.OnceOneMonster(1975, 64.3), new o.OnceOneMonster(1980, 114.3), new o.OnceOneMonster(1990, 114.3), new o.OnceOneMonster(1996, 114.3), new o.OnceMultiMonster_Rush(2e3, [ 36 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(2003, [ 36 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(2006, [ 36 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceMultiMonster_Rush(2009, [ 36 ], 400, "Prefabs/Level/EnemyGroup1"), new o.OnceOneMonster(2030, 114.3), new o.OnceOneMonster(2045, 123.3), new o.OnceOneMonster(2050, 123.3), new o.OnceOneMonster(2053, 123.3), new o.OnceOneMonster(2056, 123.3), new o.OnceOneMonster(2060, 123.3), new o.OnceOneMonster(2100, 1008.3), new o.OnceOneMonster(2260, 114.3), new o.OnceOneMonster(2270, 114.3), new o.OnceOneMonster(2280, 114.3), new o.OnceOneMonster(2290, 114.3), new o.OnceOneMonster(2300, 114.3), new o.OnceOneMonster(2310, 114.3), new o.OnceOneMonster(2400, 1009.3) ], null, null, "Level1_Lighting"), null, 1, null, [ {
sec: 300,
types: 2,
count: 2
}, {
sec: 540,
types: 2,
count: 3
}, {
sec: 840,
types: 2,
count: 4
}, {
sec: 1020,
types: 3,
count: 5
}, {
sec: 1500,
types: 3,
count: 6
}, {
sec: 1920,
types: 3,
count: 7
}, {
sec: 2400,
types: 3,
count: 8
} ]));
cc._RF.pop();
}, {
"./LevelConfig": "LevelConfig"
} ],
LevelConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d49a7wIRn1HyK/9AQAmGkw/", "LevelConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelConfig = n.ChapterProto = n.LevelProto = n.LevelSpawnInfo = n.OnceWanning2 = n.OnceWanning1 = n.OnceWanning = n.OnceMultiMonster_Circle = n.OnceMultiMonster_Rush = n.OnceUpDownMultiMonster = n.OnceLeftRightMultiMonster = n.OnceMultiMonster = n.OnceRandomMonster = n.OnceOneMonster_Right = n.OnceOneMonster = n.ContinusFixPntSpawnMonster = n.FixPntSpanItem = n.ContinusSpawnMonster_V = n.ContinusSpawnMonster = n.ContinusSpawnMonsterGroup = void 0;
var o = e("./MonsterConfig");
n.ContinusSpawnMonsterGroup = function(e, t, n, o) {
this.time = e;
this.maxCount = t;
this.intervel = n;
this.items = o;
};
var r = function(e, t, n, o, r, i) {
void 0 === i && (i = !1);
this.time = e;
this.ids = t;
this.maxCount = n;
this.countRange = o;
this.intervel = r;
this.limitByMax = i;
};
n.ContinusSpawnMonster = r;
n.ContinusSpawnMonster_V = function(e, t, n, o, r, i) {
void 0 === i && (i = !1);
this.time = e;
this.ids = t;
this.maxCount = n;
this.countRange = o;
this.intervel = r;
this.limitByMax = i;
};
n.FixPntSpanItem = function(e, t, n, o) {
this.index = e;
this.ids = t;
this.countRange = n;
this.intervel = o;
this.passedTime = 0;
};
var i = function(e) {
__extends(t, e);
function t(t, n, o) {
var r = e.call(this, t, [], n, [], 0, !0) || this;
r.time = t;
r.maxCount = n;
r.pnts = o;
return r;
}
return t;
}(r);
n.ContinusFixPntSpawnMonster = i;
n.OnceOneMonster = function(e, t, n, o) {
this.sec = e;
this.id = t;
this.formation = n;
this.len = o;
};
n.OnceOneMonster_Right = function(e, t, n) {
this.sec = e;
this.id = t;
this.len = n;
};
n.OnceRandomMonster = function(e, t, n, o, r) {
void 0 === o && (o = .01);
void 0 === r && (r = !0);
this.sec = e;
this.ids = t;
this.countRange = n;
this.intervel = o;
this.useZoneOffset = r;
};
n.OnceMultiMonster = function(e, t, n, o, r, i) {
void 0 === o && (o = .01);
void 0 === r && (r = !1);
void 0 === i && (i = !0);
this.sec = e;
this.ids = t;
this.formation = n;
this.intervel = o;
this.userPlayerY = r;
this.useZoneOffset = i;
};
n.OnceLeftRightMultiMonster = function(e, t, n, o, r, i) {
void 0 === o && (o = .01);
void 0 === r && (r = !1);
void 0 === i && (i = !0);
this.sec = e;
this.ids = t;
this.formation = n;
this.intervel = o;
this.userPlayerY = r;
this.useZoneOffset = i;
};
n.OnceUpDownMultiMonster = function(e, t, n, o, r, i) {
void 0 === o && (o = .01);
void 0 === r && (r = !1);
void 0 === i && (i = !0);
this.sec = e;
this.ids = t;
this.formation = n;
this.intervel = o;
this.userPlayerY = r;
this.useZoneOffset = i;
};
n.OnceMultiMonster_Rush = function(e, t, n, o) {
this.sec = e;
this.ids = t;
this.speed = n;
this.formation = o;
};
n.OnceMultiMonster_Circle = function(e, t, n, o, r, i, a) {
this.sec = e;
this.ids = t;
this.speed = n;
this.radius = o;
this.total = r;
this.timeout = i;
this.groupAsOne = a;
};
n.OnceWanning = function(e) {
this.sec = e;
};
n.OnceWanning1 = function(e) {
this.sec = e;
};
n.OnceWanning2 = function(e) {
this.sec = e;
};
var a = function() {
function e(e, t, n, o, r) {
void 0 === o && (o = null);
void 0 === r && (r = "");
this.continusSpawnMonster = e;
this.onceSpawnMonster = t;
this.otherSpawnMonster = n;
this.enemyPowerUp = o;
this.lightPrefab = r;
}
e.prototype.Clone = function() {
return new e(new (Array.bind.apply(Array, __spreadArrays([ void 0 ], this.continusSpawnMonster)))(), new (Array.bind.apply(Array, __spreadArrays([ void 0 ], this.onceSpawnMonster)))(), this.otherSpawnMonster ? new (Array.bind.apply(Array, __spreadArrays([ void 0 ], this.otherSpawnMonster)))() : null, this.enemyPowerUp, this.lightPrefab);
};
Object.defineProperty(e.prototype, "bossProto", {
get: function() {
for (var e = this.onceSpawnMonster.length - 1; e >= 0; e--) {
var t = this.onceSpawnMonster[e], n = t.id, r = t.ids;
if (null != n && (a = o.MonsterConfig.GetMonster(n)) && a.type == o.MonsterType.Boss) return a;
if (null != r) for (var i = 0; i < r.length; i++) {
var a, l = r[i];
if ((a = o.MonsterConfig.GetMonster(l)) && a.type == o.MonsterType.Boss) return a;
}
}
return null;
},
enumerable: !1,
configurable: !0
});
return e;
}();
n.LevelSpawnInfo = a;
var l = function() {
function e(e, t, n, o, r, i, a, l, s, c, u, p, d, f, h, m, w) {
void 0 === a && (a = cc.v2(0));
void 0 === l && (l = !0);
void 0 === s && (s = !0);
void 0 === c && (c = [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ]);
void 0 === u && (u = null);
void 0 === p && (p = null);
void 0 === d && (d = 0);
void 0 === f && (f = !1);
void 0 === h && (h = null);
void 0 === m && (m = null);
void 0 === w && (w = null);
this.id = e;
this.chapter = t;
this.name = n;
this.desc = o;
this.icon = r;
this.resPath = i;
this.bornPoint = a;
this.canSpawnEnemyH = l;
this.canSpawnEnemyV = s;
this.enemyBornRange = c;
this.normal = u;
this.hard = p;
this.skillCnt = d;
this.useBossRoom = f;
this.bluePrintRewards = h;
this.pieceReward = m;
this.passedRewards = w;
}
e.prototype.Clone = function() {
return new e(this.id, this.chapter, this.name, this.desc, this.icon, this.resPath, this.bornPoint, this.canSpawnEnemyH, this.canSpawnEnemyV, this.enemyBornRange, this.normal ? this.normal.Clone() : null, this.hard ? this.hard.Clone() : null, this.skillCnt, this.useBossRoom, this.bluePrintRewards, this.pieceReward, this.passedRewards);
};
e.prototype.GetBluePrintRewards = function(e) {
if (!this.bluePrintRewards || this.bluePrintRewards.length <= 0) return null;
for (var t = null, n = 0; n < this.bluePrintRewards.length; n++) {
var o = this.bluePrintRewards[n];
e >= o.sec && (t = o);
}
return t;
};
return e;
}();
n.LevelProto = l;
var s = function(e, t, n, o, r, i) {
this.id = e;
this.name = t;
this.desc = n;
this.icon = o;
this.resPath = r;
this.levels = i;
};
n.ChapterProto = s;
var c = function() {
function e() {}
e.GetChapter = function(t) {
return e.chapters.find(function(e) {
return e.id == t;
});
};
e.GetLevel = function(t) {
return e.levels.find(function(e) {
return e.id == t;
});
};
e.AddLevelConfig = function(t) {
var n = t.id - 1;
e.levels[n] = t;
};
e.EndlessLevelId = 4;
e.FragmentLevelId = [ 11, 12, 13 ];
e.MinOffsetGridColumn = 3;
e.MinOffsetGridRow = 2;
e.DefineCellWidth = 75;
e.DefineCellHeight = 75;
e.GuideLevel = new l(-1, -1, "新手刷怪", "", "", "", null, null, null, [ cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), cc.v2(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) ], new a([ new r(0, [ 25, 28 ], 100, [ 12, 14 ], 1) ], [], null), null);
e.chapters = [ new s(1, "第一章", "", "", "", [ 1, 2, 3 ]), new s(2, "第二章", "", "", "", [ 5, 6, 7 ]), new s(3, "第三章", "", "", "", [ 8, 9, 10 ]), new s(4, "第四章", "", "", "", [ 14, 15, 16 ]), new s(5, "第五章", "", "", "", [ 17, 18, 19 ]), new s(6, "第六章", "", "", "", [ 20, 21, 22 ]) ];
e.levels = [];
return e;
}();
n.LevelConfig = c;
cc._RF.pop();
}, {
"./MonsterConfig": "MonsterConfig"
} ],
LevelContext: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8a2cfG78spDtrzOcejLiSQj", "LevelContext");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelContext = void 0;
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../../Framework/Core/Resource/SoundsManager"), i = e("../../Service/kl"), a = e("../Config/Config"), l = e("./Level/MonsterSpanwnMgr"), s = e("./LimitedNodePool"), c = e("./LockArea"), u = e("../../Framework/Core/Resource/MyComponent"), p = e("./Tilemap/Tile"), d = e("./Tilemap/TileMap"), f = e("./View/FollowTarget"), h = e("./View/Shake"), m = e("./Skill/EffectLayer"), w = cc._decorator, y = w.ccclass, g = w.property, v = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.normalMat = null;
t.outlineMat = null;
t.camera = null;
t.textLayer = null;
t.effectLayer = null;
t.playerLayer = null;
t.groundLayer = null;
t.groundEffectLayer = null;
t.topLayer = null;
t.topPlayerLayer = null;
t.safeArea = null;
t.tilemapRoot = null;
t.levelBgRoot = null;
t.bossRoom = null;
t.deadPrefab = null;
t.textEftPrefab = null;
t.bossWall = null;
t.vehiclePnts = [];
t.weaponDealerNode = null;
t.mainPlayer = null;
t.bossTransPos = cc.v2();
t.enemyTargets = [];
t.enemies = [];
t.items = [];
t.boxes = [];
t.vehicles = [];
t.tilemaps = [];
t.heroSkillAppear = [ 3, 3, 3 ];
t.cameraShake = null;
t.totalTime = 0;
t.curSec = -1;
t.realTime = 0;
t.changeSkillCnt = 0;
t.killEnemyCnt = 0;
t.totalCoins = 0;
t.totalEquipBlueprints = 0;
t.isRunning = !1;
t.isFightingBoss = !1;
t.goldCloverCnt = 0;
t.vehicleCnt = 0;
t.mode = a.BattleMode.Level;
t.levelProto = null;
t.isHardMode = !1;
t.scrnSafeArea = null;
t.joystick = cc.v2();
t.crazyGoldEft = null;
t.crazyCoins = 0;
t.crazyCoinLeftTime = 0;
t.sellItems = [];
t._runningCnt = 1;
t._timeScale = 1;
t.v1 = cc.v2();
t.v2 = cc.v2();
t.enemyInCam = [];
return t;
}
n = t;
Object.defineProperty(t.prototype, "spawnInfo", {
get: function() {
return this.isHardMode ? this.levelProto.hard : this.levelProto.normal;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "paused", {
get: function() {
return this._runningCnt <= 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "runningCnt", {
get: function() {
return this._runningCnt;
},
set: function(e) {
var t = this.paused;
this._runningCnt > e ? this.timeScale -= 100 : this.timeScale += 100;
this._runningCnt = e;
this.paused != t && this.paused;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "timeScale", {
get: function() {
return this._timeScale;
},
set: function(e) {
this._timeScale = e;
u.MyComponent.TimeScale = Math.clamp(this._timeScale, 0, Number.MAX_SAFE_INTEGER);
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
n.Instance = this;
this.cameraShake = this.camera.getComponent(h.default);
this.tilemapRoot && (this.tilemaps = this.tilemapRoot.getComponentsInChildren(d.default));
this.camera.getComponent(f.default).SetTarget(this.mainPlayer.node);
this.safeArea && this.SetScrnSafeArea(this.ToScrnArea(this.safeArea.offset, this.safeArea.size));
n.itemCache || (n.itemCache = o.default.Default.CreateCache("Item", 30));
n.textCache || (n.textCache = o.default.Default.CreateCache("Text", 30));
n.buffCache || (n.buffCache = o.default.Default.CreateCache("Buff", 30));
n.textEftPool = this.node.getOrAddComponent(s.LimitedNodePool);
n.textEftPool.nodeCacle = n.textCache;
n.textEftPool.maxCount = 150;
n.deadEftPool = n.hitEftPool = n.textEftPool;
this.bossRoom && (this.bossRoom.active = !1);
n.seniorBoxCnt = 0;
this.LoadEffect();
};
t.prototype.onDestroy = function() {
n.Instance = null;
r.default.instance.musicVolume = 1;
r.default.instance.effectsVolume = 1;
};
t.prototype.LoadEffect = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function(t) {
switch (t.label) {
case 0:
e = this;
return [ 4, o.default.Default.CreateNode("Prefabs/Level/CrazyGoldEft", n.Instance.groundLayer) ];

case 1:
e.crazyGoldEft = t.sent();
this.crazyGoldEft.active = !1;
return [ 2 ];
}
});
});
};
t.prototype.AddCoin = function(e) {
this.totalCoins += e;
this.broadcastMessage("OnGetBattleCoin", this.levelProto.id, this.mainPlayer.heroData.proto.id, e);
};
t.prototype.Finish = function() {
for (var e = 0; e < this.enemies.length; e++) {
(t = this.enemies[e]).OnFinal();
l.MonsterSpanwnMgr.Instance.DestroyNode(t.node);
}
for (e = 0; e < this.items.length; e++) {
var t = this.items[e];
n.itemCache.DestroyNode(t.node);
}
for (e = 0; e < this.mainPlayer.summons.length; e++) {
(t = this.mainPlayer.summons[e]).OnFinal();
o.default.Default.DestroyNode(t.node);
}
l.MonsterSpanwnMgr.Instance.Clear();
n.itemCache.Clear();
n.textCache.Clear();
n.buffCache.Clear();
this.mainPlayer.OnFinal();
o.default.Default.DestroyNode(this.mainPlayer.node);
this.mainPlayer = null;
var r = o.default.Default.GetAsset(this.levelProto.resPath);
o.default.Default.UnloadAsset(r);
this.heroSkillAppear = [ 3, 3, 3 ];
};
t.prototype.ToScrnArea = function(e, t) {
var n = new c.LockArea();
n.From(e, t);
return n;
};
t.prototype.SetScrnSafeArea = function(e) {
this.scrnSafeArea = e;
};
t.prototype.LimitAreaPos = function(e, t) {
void 0 === t && (t = !1);
var n = this.scrnSafeArea;
return !!n && n.Limit(e, t);
};
Object.defineProperty(t.prototype, "inCameraEnemyCount", {
get: function() {
for (var e = 0, t = 0; t < this.enemies.length; t++) this.enemies[t].isInCamera && e++;
return e;
},
enumerable: !1,
configurable: !0
});
t.prototype.GetLayer = function(e) {
switch (e) {
case m.EffectLayer.Ground:
return this.groundEffectLayer;

case m.EffectLayer.Player:
return this.playerLayer;

case m.EffectLayer.Effect:
return this.effectLayer;
}
};
t.prototype.GetValidVehiclePnt = function(e) {
for (var t = Number.MIN_VALUE, n = cc.v2(), o = 0; o < this.vehiclePnts.length; o++) {
var r = this.vehiclePnts[o].convertToWorldSpaceAR(cc.Vec2.ZERO, this.v1);
r = this.node.convertToNodeSpaceAR(r, this.v2);
var i = cc.Vec2.squaredDistance(e, r);
if (i >= 1e6 && i < 4e6) {
n.set(r);
return n;
}
if (i >= t) {
t = i;
n.set(r);
}
}
return n;
};
t.prototype.GetNearestEnemy = function(e, t) {
for (var n = Number.MAX_SAFE_INTEGER, o = null, r = 0; r < this.enemies.length; r++) {
var i = this.enemies[r];
if (i.isInCamera && i.targetable && !i.dead) {
var a = cc.Vec2.squaredDistance(e, i.body.position);
if (a <= n) {
n = a;
o = i;
t && (t.x = n);
}
}
}
return o;
};
t.prototype.GetRandomEnemy = function() {
this.enemyInCam.length = 0;
for (var e = 0; e < this.enemies.length; e++) {
var t = this.enemies[e];
t.isInCamera && !t.dead && t.targetable && this.enemyInCam.push(t);
}
return this.enemyInCam.length > 0 ? this.enemyInCam[i.default.RandomInt(0, this.enemyInCam.length - 1)] : null;
};
t.prototype.GetRandomEnemyInRadius = function(e, t) {
var n = t * t;
this.enemyInCam.length = 0;
for (var o = 0; o < this.enemies.length; o++) {
var r = this.enemies[o];
r.isInCamera && !r.dead && r.targetable && cc.Vec2.squaredDistance(e.body.position, r.body.position) <= n && this.enemyInCam.push(r);
}
return this.enemyInCam.length > 0 ? this.enemyInCam[i.default.RandomInt(0, this.enemyInCam.length - 1)] : null;
};
t.prototype.GetEnemysInRadius = function(e, t) {
for (var n = [], o = t * t, r = 0; r < this.enemies.length; r++) {
var i = this.enemies[r];
i.isInCamera && !i.dead && i.targetable && (cc.Vec2.squaredDistance(e.body.position, i.body.position) > o || n.push(i));
}
return n;
};
t.prototype.GetNearestEnemyInRadius = function(e, t) {
for (var n = t * t, o = null, r = Number.MAX_VALUE, i = 0; i < this.enemies.length; i++) {
var a = this.enemies[i];
if (a.isInCamera && !a.dead && a.targetable) {
var l = cc.Vec2.squaredDistance(e.body.position, a.body.position);
if (!(l > n) && l <= r) {
r = l;
o = a;
}
}
}
return o;
};
t.prototype.GetNearestEnemies = function(e, t) {
for (var n = [], o = 0; o < this.enemies.length; o++) {
var r = this.enemies[o];
if (r.isInCamera && !r.dead && r.targetable) {
var i = cc.Vec2.squaredDistance(e, r.body.position);
r.__lenSqr = i;
n.push(r);
}
}
n.sort(function(e, t) {
return e.__lenSqr - t.__lenSqr;
});
n.length > t && n.splice(t, n.length - t);
return n;
};
t.prototype.GetEnemyCountInCamera = function() {
for (var e = 0, t = 0; t < this.enemies.length; t++) {
var n = this.enemies[t];
n.isInCamera && !n.dead && n.targetable && e++;
}
return e;
};
t.prototype.GetItemCount = function(e) {
for (var t = 0, n = 0; n < this.items.length; n++) this.items[n].itemProto.id == e && t++;
return t;
};
t.prototype.GetNearestExpItem = function(e, t) {
for (var n = Number.MAX_SAFE_INTEGER, o = null, r = 0; r < this.items.length; r++) {
var i = this.items[r];
if (i.isInCamera && i.isExp) {
var a = cc.Vec2.squaredDistance(e, i.node.getPosition(this.v1));
if (a <= n && a <= t * t) {
n = a;
o = i;
}
}
}
return o;
};
t.prototype.GetTilemap = function(e, t) {
var o = n.Instance;
if (!o.tilemaps || o.tilemaps.length <= 0) return null;
for (var r = o.tilemaps[0], i = Math.floor((e + .5 * r.levelWidth) / r.levelWidth), a = Math.floor((t + .5 * r.levelHeight) / r.levelHeight), l = 0; l < o.tilemaps.length; l++) {
var s = o.tilemaps[l];
if (s.coord.x == i && s.coord.y == a) return s;
}
return null;
};
t.prototype.IsWalkable = function(e, t, n) {
void 0 === n && (n = p.TileMask.All);
var o = this.GetTilemap(e, t);
return !o || this.IsWalkableAt(o, e, t, n);
};
t.prototype.IsWalkableAt = function(e, t, n, o) {
void 0 === o && (o = p.TileMask.All);
var r = t - e.node.x, i = e.node.y - n;
return e.IsWalkable(r, -i, o);
};
t.prototype.CalcValidItemPos = function(e) {
n.Instance.LimitAreaPos(e);
if (!this.IsWalkable(e.x, e.y)) {
for (var t = 40, o = 0, r = cc.v2(e.x - t, e.y); !this.IsWalkable(r.x, r.y); ) {
r.x -= t;
if (++o >= 20) break;
}
o > 0 && (r.x -= t);
o = 0;
for (var i = cc.v2(e.x + t, e.y); !this.IsWalkable(i.x, i.y); ) {
i.x += t;
if (++o >= 20) break;
}
o > 0 && (i.x += t);
e.set(Math.abs(r.x - e.x) < Math.abs(i.x - e.x) ? r : i);
}
};
t.prototype.CheckHeroSkillTime = function() {
var e = this.mode == a.BattleMode.Level ? a.Config.HeroSkillTime : a.Config.HeroSkillTimeEndless, t = this.totalTime;
return t >= e[0][0] && t < e[0][1] ? 0 : t >= e[1][0] && t < e[1][1] ? 1 : t >= e[2][0] && t < e[2][1] ? 2 : -1;
};
var n;
t.seniorBoxCnt = 0;
t.textEftPool = null;
t.hitEftPool = null;
t.deadEftPool = null;
t.Instance = null;
__decorate([ g(cc.Material) ], t.prototype, "normalMat", void 0);
__decorate([ g(cc.Material) ], t.prototype, "outlineMat", void 0);
__decorate([ g(cc.Camera) ], t.prototype, "camera", void 0);
__decorate([ g(cc.Node) ], t.prototype, "textLayer", void 0);
__decorate([ g(cc.Node) ], t.prototype, "effectLayer", void 0);
__decorate([ g(cc.Node) ], t.prototype, "playerLayer", void 0);
__decorate([ g(cc.Node) ], t.prototype, "groundLayer", void 0);
__decorate([ g(cc.Node) ], t.prototype, "groundEffectLayer", void 0);
__decorate([ g(cc.Node) ], t.prototype, "topLayer", void 0);
__decorate([ g(cc.Node) ], t.prototype, "topPlayerLayer", void 0);
__decorate([ g(cc.BoxCollider) ], t.prototype, "safeArea", void 0);
__decorate([ g(cc.Node) ], t.prototype, "tilemapRoot", void 0);
__decorate([ g(cc.Node) ], t.prototype, "levelBgRoot", void 0);
__decorate([ g(cc.Node) ], t.prototype, "bossRoom", void 0);
__decorate([ g(cc.Prefab) ], t.prototype, "deadPrefab", void 0);
__decorate([ g(cc.Prefab) ], t.prototype, "textEftPrefab", void 0);
__decorate([ g(cc.Prefab) ], t.prototype, "bossWall", void 0);
__decorate([ g(cc.Node) ], t.prototype, "vehiclePnts", void 0);
__decorate([ g(cc.Node) ], t.prototype, "weaponDealerNode", void 0);
return n = __decorate([ y ], t);
}(cc.Component);
n.LevelContext = v;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/Resource/MyComponent": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Service/kl": void 0,
"../Config/Config": "Config",
"./Level/MonsterSpanwnMgr": "MonsterSpanwnMgr",
"./LimitedNodePool": "LimitedNodePool",
"./LockArea": "LockArea",
"./Skill/EffectLayer": "EffectLayer",
"./Tilemap/Tile": "Tile",
"./Tilemap/TileMap": "TileMap",
"./View/FollowTarget": "FollowTarget",
"./View/Shake": "Shake"
} ],
LevelData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "26b9bnxF5FJRLv8nP8CIihT", "LevelData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("./LevelConfig"), i = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.unlock = !1;
t.maxLevelTime = 0;
t.isBossKilled = !1;
t.isGetReward = !1;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = r.LevelConfig.GetLevel(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "unlock", void 0);
__decorate([ o.SerializeField("c") ], t.prototype, "maxLevelTime", void 0);
__decorate([ o.SerializeField("d") ], t.prototype, "isBossKilled", void 0);
__decorate([ o.SerializeField("e") ], t.prototype, "isGetReward", void 0);
return t;
}(o.default);
n.LevelData = i;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"./LevelConfig": "LevelConfig"
} ],
LevelManager: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "dd79csBvj9AoYbyuDHdG/Jc", "LevelManager");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelManager = void 0;
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../../Framework/Core/Resource/SoundsManager"), i = e("../../Service/Analys"), a = e("../../Service/IPlatformProxy"), l = e("../../Service/IVideoRecoder"), s = e("../../Service/PlatformService"), c = e("../../Service/RemoteSetting"), u = e("../Config/BattleItemConfig"), p = e("../Config/Config"), d = e("../Config/GameModel"), f = e("../Config/MonsterConfig"), h = e("./LevelContext"), m = e("../../Framework/Core/Resource/MyComponent"), w = e("./Level/MonsterSpanwnMgr"), y = e("./View/MyCameraFollow"), g = e("../../Framework/QuadTree/QuadTreeComponent"), v = e("../Config/ProcessSaveData"), S = e("../Messaging/MessageBroadcastReceiver"), M = e("../../Service/kl"), k = e("./Item"), C = e("./LevelStatistics"), P = cc._decorator, _ = P.ccclass, O = P.property, b = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.context = null;
t.recordStartInterval = 300;
t.recordTotalTime = 30;
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
t.lastMin = -1;
t.tmpBossTransPos = cc.v2();
t.recordStartTime = 0;
return t;
}
n = t;
t.prototype.onLoad = function() {
p.Config.enableLevelStatistics && C.InitLevelStatistics();
n.Instance = this;
cc.director.getCollisionManager().enabled = !0;
this.context || (this.context = this.getComponent(h.LevelContext));
this.recordStartInterval = c.default.Get("RecordStartInterval", 300);
this.recordTotalTime = c.default.Get("RecordTotalTime", 30);
S.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
n.Instance = null;
S.RemoveBroadcastReceiver(this);
};
t.prototype.OnUpdate = function(e) {
if (this.context.isRunning) {
var t = this.context.camera.node.getPosition(this.v1);
g.default.Instance.offset.set(t);
this.context.totalTime += e;
this.context.realTime += e;
var n = Math.floor(this.context.totalTime);
if (n > this.context.curSec) {
this.context.curSec = n;
this.broadcastMessage("OnTimeEvt", this.context.curSec);
var o = Math.floor(n / 60);
if (o != this.lastMin) {
this.lastMin = o;
this.broadcastMessage("OnBattleTime", this.context.levelProto.id, this.context.mainPlayer.heroData.proto.id, o, this.context.isHardMode);
}
n % 30 == 0 && this.SaveProcessData();
}
for (var r = (p.Config.OutCameraDestoryMonsterDistance.x, this.context.camera.zoomRatio), i = (p.Config.OutCameraDestoryMonsterDistance.y, 
this.context.camera.zoomRatio), a = this.context.mainPlayer.node.getPosition(this.v1), l = this.context.enemies.length - 1; l >= 0; l--) {
var s = this.context.enemies[l];
s.canRecycle && (s.dead || s.proto.type != f.MonsterType.Boss && (s.recycleDistance > 0 ? cc.Vec2.squaredDistance(this.context.camera.node.getPosition(this.v2), s.body.position) > s.recycleDistance * s.recycleDistance && w.MonsterSpanwnMgr.Instance.DestroyNode(s.node) : (s.outCameraTime >= p.Config.OutCameraDestoryTime || s.outCameraTime >= 3 && s.inCameraTotalTime > 1) && w.MonsterSpanwnMgr.Instance.DestroyNode(s.node)));
}
r = p.Config.OutCameraDestoryItemDistance.x / this.context.camera.zoomRatio;
i = p.Config.OutCameraDestoryItemDistance.y / this.context.camera.zoomRatio;
for (l = this.context.items.length - 1; l >= 0; l--) {
var c = this.context.items[l];
if ((c.canRecycle || c.itemProto.id != u.BattleItemConfig.BoxItemId && c.itemProto.id != u.BattleItemConfig.BookItemId && this.context.items.length >= .5 * p.Config.MaxItemCount && h.LevelContext.Instance.GetItemCount(c.itemProto.id) >= 5) && !c.isFlying) {
var d = c.node.getPosition(this.v3);
(this.context.totalTime - c.spawnTime >= p.Config.ItemDestoryTime || Math.abs(a.x - d.x) >= r || Math.abs(a.y - d.y) >= i) && c.Recycle();
}
}
if (this.context.bossRoom) {
var m = this.context.mainPlayer.body.position;
(this.tmpBossTransPos.equals(cc.Vec2.ZERO) || cc.Vec2.squaredDistance(m, this.tmpBossTransPos) >= 9e4) && this.tmpBossTransPos.set(m);
(this.context.bossTransPos.equals(cc.Vec2.ZERO) || cc.Vec2.squaredDistance(m, this.context.bossTransPos) >= 22500) && this.context.bossTransPos.set(this.tmpBossTransPos);
}
if (this.context.crazyCoinLeftTime > 0) {
this.context.crazyCoinLeftTime -= e;
if (this.context.crazyCoinLeftTime <= 0) {
this.context.crazyGoldEft.active = !1;
this.context.crazyCoins = 0;
}
}
this.UpdateVideoRecord();
}
};
t.prototype.Start = function() {
var e = this;
m.MyComponent.TimeScale = 1;
r.default.instance.musicVolume = 1;
r.default.instance.effectsVolume = 1;
this.context.isRunning = !0;
c.default.Get("enableCameraOffset", !0) && (this.context.camera.getComponent(y.default).offset = cc.v2(0, this.context.mainPlayer.view.height * (.5 - this.context.mainPlayer.view.anchorY)));
i.default.LogStartLevel(this.context.levelProto.name, null);
this.broadcastMessage("OnLevelStart");
c.default.Get("enableWeaponDealer", !0) && d.default.Instance.battleCnt > 0 && o.default.Default.CreateNode("Prefabs/Hero/WeaponDealer/WeaponDealer", this.context.weaponDealerNode, cc.Vec2.ZERO);
var t = Math.min(180, this.recordStartInterval - 30);
s.default.platformType == a.PlatformType.TouTiao && s.default.videoRecoder.Start(t, null, function(t) {
if (t == l.VideoRecoderState.Stopped) {
var n = s.default.videoRecoder.recordTime, o = Math.max(0, n - 1e3 * e.recordTotalTime);
s.default.videoRecoder.Clip(o, n);
}
});
};
t.prototype.AddLevelStartExps = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, o, r, i, a, l, s, c, p;
return __generator(this, function(d) {
switch (d.label) {
case 0:
e = this.context.mainPlayer.heroData.proto.GetLevelExp(2);
t = 15;
n = Math.ceil(e / t);
o = u.BattleItemConfig.GetItem(u.BattleItemConfig.ExpItemId);
r = new f.MonsterProto(-1, null, null, null, null, null, 0, 0, 0, null, null, n, 0);
i = 0;
d.label = 1;

case 1:
if (!(i < t)) return [ 3, 4 ];
a = this.context.mainPlayer.node.getPosition();
l = 150;
s = M.default.Random(0, 1) >= .5;
a.x += M.default.RandomInt(l * (s ? .9 : 0), l) * (M.default.Random(0, 1) >= .5 ? 1 : -1);
a.y += M.default.RandomInt(l * (s ? 0 : .9), l) * (M.default.Random(0, 1) >= .5 ? 1 : -1);
return [ 4, h.LevelContext.itemCache.CreateNode(o.resPath, null, a) ];

case 2:
c = d.sent();
(p = c.getComponent(k.Item)).itemProto = o;
p.monsterProto = r;
c.setParent(this.context.groundLayer);
d.label = 3;

case 3:
i++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.Finish = function(e) {
this.context.isRunning = !1;
m.MyComponent.TimeScale = 1;
this.context.isFightingBoss ? i.default.LogFinishLevel(this.context.levelProto.name + "_Boss", e) : i.default.LogFinishLevel(this.context.levelProto.name, e);
d.default.Instance.battleCnt++;
this.broadcastMessage("OnLevelFinish");
this.context.Finish();
this.node.destroy();
o.default.Default.DefaultCache.Clear(!0);
cc.sys.garbageCollect();
};
t.prototype.UpdateVideoRecord = function() {
var e = this;
if (c.default.Get("EnableDelayVideoRecord", !0) && s.default.platformType == a.PlatformType.TouTiao && this.context.totalTime - this.recordStartTime >= this.recordStartInterval) {
this.recordStartTime = this.context.totalTime;
s.default.videoRecoder.Start(this.recordTotalTime, null, function(t) {
if (t == l.VideoRecoderState.Stopped) {
var n = s.default.videoRecoder.recordTime, o = Math.max(0, n - 1e3 * e.recordTotalTime);
s.default.videoRecoder.Clip(o, n);
}
});
}
};
t.prototype.LoadProcessData = function() {
return __awaiter(this, void 0, Promise, function() {
var e, t, n, o, r, i, l, p, f, m, w, y, g = this;
return __generator(this, function(v) {
switch (v.label) {
case 0:
e = c.default.Get("canSaveProcess", !1) || s.default.platformType == a.PlatformType.Empty;
t = d.default.Instance.processSaveData;
if (!e || !t) return [ 3, 5 ];
this.context.totalTime = t.totalTime;
this.context.changeSkillCnt = t.changeSkillCnt;
this.context.killEnemyCnt = t.killEnemyCnt;
this.context.totalCoins = t.totalCoins;
this.context.goldCloverCnt = t.goldCloverCnt;
this.context.vehicleCnt = t.vehicleCnt;
h.LevelContext.seniorBoxCnt = t.seniorBoxCnt;
this.context.heroSkillAppear = [];
t.heroSkillAppear.forEach(function(e) {
g.context.heroSkillAppear.push(e);
});
(n = this.context.mainPlayer).body.position = cc.v2(t.playerPositionX, t.playerPositionY);
n.level = t.playerLv;
n.exp = t.playerExp;
y = 0;
v.label = 1;

case 1:
if (!(y < t.playerSkills.length)) return [ 3, 4 ];
o = t.playerSkills[y];
return [ 4, n.AddSkill(o) ];

case 2:
l = v.sent();
r = t.playerSkillDatas[y];
p = null;
r && r.length > 0 && (p = M.default.ParseJsonText(r));
l && l.OnLoad(p);
v.label = 3;

case 3:
y++;
return [ 3, 1 ];

case 4:
n.health = t.playerHp;
n.getAllLevelupCnt = t.getAllLevelupCnt;
n.reliveCnt = t.reliveCnt;
if (t.playerTalentDatas) for (y = 0; y < t.playerTalentDatas.length; y++) {
i = t.playerTalentDatas[y];
l = n.GetSkill(i.id);
p = null;
i.data && i.data.length > 0 && (p = M.default.ParseJsonText(i.data));
l && p && l.OnLoad(p);
}
if (t.items) for (y = 0; y < t.items.length; y++) {
f = t.items[y];
this.CreateItem(u.BattleItemConfig.GetItem(f.id), cc.v2(f.x, f.y));
}
t.sellItems && (this.context.sellItems = t.sellItems);
m = Math.floor(this.context.totalTime);
w = this.context.spawnInfo;
for (y = w.continusSpawnMonster.length; --y >= 0; ) if (w.continusSpawnMonster[y].time < m) {
console.log("continusSpawnMonster splice:", y);
y > 0 && w.continusSpawnMonster.splice(0, y);
break;
}
for (y = w.onceSpawnMonster.length; --y >= 0; ) if (w.onceSpawnMonster[y].sec < m) {
console.log("onceSpawnMonster splice:", y);
y > 0 && w.onceSpawnMonster.splice(0, y);
break;
}
return [ 2, !0 ];

case 5:
return [ 2, !1 ];
}
});
});
};
t.prototype.CreateItem = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
var n;
return __generator(this, function(o) {
switch (o.label) {
case 0:
return [ 4, h.LevelContext.itemCache.CreateNode(e.resPath, null, t) ];

case 1:
(n = o.sent()).getComponent(k.Item).itemProto = e;
n.setPosition(t);
n.setParent(h.LevelContext.Instance.playerLayer);
return [ 2 ];
}
});
});
};
t.prototype.SaveProcessData = function() {
var e, t, n = c.default.Get("canSaveProcess", !1) || s.default.platformType == a.PlatformType.Empty, o = 60 * (this.context.mode == p.BattleMode.Level ? 19 : 30);
if (n && this.context.realTime >= 10 && this.context.curSec >= 30 && this.context.curSec <= o) {
var r = d.default.Instance.processSaveData;
if (!r) {
d.default.Instance.processSaveData = new v.ProcessSaveData();
(r = d.default.Instance.processSaveData).battleMode = this.context.mode;
r.curLevel = this.context.levelProto.id;
r.selectedHeroId = d.default.Instance.selectedHeroId;
r.selectedWeaponId = d.default.Instance.selectedWeaponId;
}
var i = this.context.mainPlayer;
r.playerPositionX = i.body.position.x;
r.playerPositionY = i.body.position.y;
r.playerLv = i.level;
r.playerExp = i.exp;
r.playerHp = i.health;
r.playerSkills = [];
r.playerSkillDatas = [];
r.items = [];
r.playerTalentDatas = [];
for (var l = 1; l < i.activeSkills.length; l++) (m = i.activeSkills[l]).id >= 100 && m.id < 1e3 && r.playerSkills.push(m.id);
for (l = 1; l < i.activeSkills.length; l++) if ((m = i.activeSkills[l]).id >= 100 && m.id < 1e3) {
var f = null === (e = m.skill) || void 0 === e ? void 0 : e.OnSave();
r.playerSkillDatas.push(f ? M.default.ToJsonText(f) : "");
}
for (l = 1; l < i.activeSkills.length; l++) {
var m;
if ((m = i.activeSkills[l]).id >= 1e3 && m.id < 1200 && (f = null === (t = m.skill) || void 0 === t ? void 0 : t.OnSave())) {
(y = new v.ProcessTalentData()).id = m.id;
y.data = M.default.ToJsonText(f);
r.playerTalentDatas.push(y);
}
}
r.getAllLevelupCnt = i.getAllLevelupCnt;
r.reliveCnt = i.reliveCnt;
r.weaponData = new v.ProcessWeaponData(i.weaponData.id, i.weaponData.classLevel.intValue, i.weaponData.level.intValue);
r.sellItems = this.context.sellItems;
for (l = 0; l < this.context.items.length; l++) {
var w = this.context.items[l];
if (w.itemProto.id == u.BattleItemConfig.BookItemId || w.itemProto.id == u.BattleItemConfig.BoxItemId) {
var y;
(y = new v.ProcessItemData()).id = w.itemProto.id;
y.x = w.node.x;
y.y = w.node.y;
r.items.push(y);
}
}
r.totalTime = this.context.totalTime;
r.changeSkillCnt = this.context.changeSkillCnt;
r.killEnemyCnt = this.context.killEnemyCnt;
r.totalCoins = this.context.totalCoins;
r.goldCloverCnt = this.context.goldCloverCnt;
r.vehicleCnt = this.context.vehicleCnt;
r.seniorBoxCnt = h.LevelContext.seniorBoxCnt;
r.heroSkillAppear = [];
this.context.heroSkillAppear.forEach(function(e) {
r.heroSkillAppear.push(e);
});
d.default.SaveProgress();
console.log("保存游戏进度-------------------------------");
}
};
var n;
t.Instance = null;
__decorate([ O(h.LevelContext) ], t.prototype, "context", void 0);
__decorate([ S.BroadcastHandler ], t.prototype, "SaveProcessData", null);
return n = __decorate([ _ ], t);
}(m.MyComponent);
n.LevelManager = b;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/Resource/MyComponent": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/QuadTree/QuadTreeComponent": void 0,
"../../Service/Analys": void 0,
"../../Service/IPlatformProxy": void 0,
"../../Service/IVideoRecoder": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../../Service/kl": void 0,
"../Config/BattleItemConfig": "BattleItemConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/MonsterConfig": "MonsterConfig",
"../Config/ProcessSaveData": "ProcessSaveData",
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./Item": "Item",
"./Level/MonsterSpanwnMgr": "MonsterSpanwnMgr",
"./LevelContext": "LevelContext",
"./LevelStatistics": "LevelStatistics",
"./View/MyCameraFollow": "MyCameraFollow"
} ],
LevelMonsterSpawn: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e634bosxy5B7oujwR1eMtDn", "LevelMonsterSpawn");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LevelMonsterSpawn = void 0;
var o = e("../../../Framework/Core/Resource/AssetManager"), r = e("../../../Framework/Core/Resource/EffectManager"), i = e("../../../Framework/Core/Views/ViewUIManager"), a = e("../../../Service/kl"), l = e("../../Config/Config"), s = e("../../Config/LevelConfig"), c = e("../../Config/MonsterConfig"), u = e("../../Config/SkillConfig"), p = e("../../Messaging/MessageBroadcastReceiver"), d = e("../../UI/BattleUI"), f = e("../BossWall"), h = e("../Enemy"), m = e("../EnemyGroup"), w = e("../LevelContext"), y = e("../../../Framework/Core/Resource/MyComponent"), g = e("./MonsterSpanwnMgr"), v = cc._decorator, S = v.ccclass, M = (v.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.curSpawn = null;
t.passedTime = 0;
t.monsterZoneCnts = [ 0, 0, 0, 0 ];
t.bossWall = null;
return t;
}
n = t;
Object.defineProperty(t.prototype, "width", {
get: function() {
return w.LevelContext.Instance.node.width;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "height", {
get: function() {
return w.LevelContext.Instance.node.height;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "maxCount", {
get: function() {
return this.curSpawn ? this.curSpawn.maxCount : l.Config.MaxEnemyCount;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
n.Instance = this;
p.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
n.Instance = null;
p.RemoveBroadcastReceiver(this);
};
t.prototype.OnUpdate = function(e) {
if (this.curSpawn && w.LevelContext.Instance.isRunning) {
this.passedTime += e;
if (!w.LevelContext.Instance.mainPlayer.isDashing) {
var t = w.LevelContext.Instance.mainPlayer, n = Math.max(.05, this.curSpawn.intervel * (1 - .01 * t.GetFeature(u.SkillFeature.MonsterSpawnIntervelUpPercent)));
if (n <= this.passedTime) {
this.passedTime -= n;
this.SpawnContinus(this.curSpawn);
}
}
}
};
t.prototype.Reset = function() {
this.curSpawn = null;
this.passedTime = 0;
};
t.prototype.SpawnContinus = function(e) {
if (!(w.LevelContext.Instance.enemies.length >= l.Config.MaxEnemyCount)) if (e instanceof s.ContinusSpawnMonsterGroup) {
var t = e.items[a.default.RandomInt(0, e.items.length - 1)];
t.maxCount = e.maxCount;
this.SpawnContinus(t);
} else {
var n = w.LevelContext.Instance.mainPlayer, o = Math.ceil(e.maxCount * (1 + .01 * n.GetFeature(u.SkillFeature.MonsterSpawnIntervelUpPercent)));
e instanceof s.ContinusSpawnMonster_V ? "string" == typeof e.countRange ? this.SpawnFormation_V(e, e.countRange, e.ids, o) : this.SpawnCountRange_V(e, e.countRange, o) : "string" == typeof e.countRange ? this.SpawnFormation(e, e.countRange, e.ids, o) : this.SpawnCountRange(e, e.countRange, o);
}
};
t.prototype.SpawnCountRange_V = function(e, t, n) {
if (!(w.LevelContext.Instance.inCameraEnemyCount >= n)) {
var o = a.default.RandomInt(t[0], t[1]);
if (!(o <= 0)) for (var r = this.width / w.LevelContext.Instance.camera.zoomRatio, i = this.height / w.LevelContext.Instance.camera.zoomRatio, l = w.LevelContext.Instance.camera.node.getPosition(), s = 0; s < o; s++) {
if (!w.LevelContext.Instance.isRunning) return;
var u = e.ids[a.default.RandomInt(0, e.ids.length - 1)], p = c.MonsterConfig.GetMonster(u);
if (p) {
var d = cc.v2(a.default.Random(-1, 1) * r * .5, (Math.random() < .5 ? 1 : -1) * i);
this.CreateMonster(p, l.x + d.x, l.y + d.y, 0);
} else console.error("CreateMonsters failed!", u, e.ids);
}
}
};
t.prototype.SpawnFormation_V = function(e, t, n, r) {
return __awaiter(this, void 0, void 0, function() {
var e, i, l, s, u, p, d, f, h, m, y;
return __generator(this, function(g) {
switch (g.label) {
case 0:
e = this.width / w.LevelContext.Instance.camera.zoomRatio;
i = this.height / w.LevelContext.Instance.camera.zoomRatio;
return [ 4, o.default.Default.LoadRes(t) ];

case 1:
l = g.sent();
s = w.LevelContext.Instance.camera.node.getPosition();
u = w.LevelContext.Instance.inCameraEnemyCount;
p = Math.min(r - u, l.data.childrenCount);
d = 0;
g.label = 2;

case 2:
if (!(d < p)) return [ 3, 5 ];
f = l.data.children[d];
h = n[a.default.RandomInt(0, n.length - 1)];
if (!(m = c.MonsterConfig.GetMonster(h))) {
console.error("SpawnFormation failed!", h, n);
return [ 3, 4 ];
}
y = cc.v2(a.default.Random(-1, 1) * e * .5, (Math.random() < .5 ? 1 : -1) * i);
this.CreateMonster(m, f.x + s.x + y.x, f.y + s.y + y.y, 0);
return [ 4, this.waitForTime(.01) ];

case 3:
g.sent();
g.label = 4;

case 4:
d++;
return [ 3, 2 ];

case 5:
o.default.Default.UnloadAsset(l);
return [ 2 ];
}
});
});
};
t.prototype.SpawnCountRange = function(e, t, n) {
var o = w.LevelContext.Instance.inCameraEnemyCount;
if (!(o >= n)) {
var r = a.default.RandomInt(t[0], t[1]);
if (!(r <= 0)) {
var i = this.width / w.LevelContext.Instance.camera.zoomRatio * .5, l = this.height / w.LevelContext.Instance.camera.zoomRatio * .5, c = w.LevelContext.Instance.camera.node.getPosition(), u = 0;
if (e instanceof s.ContinusSpawnMonster) {
this.CalcMonsterZones();
u = this.GetMinMonsterZoneIndx();
this.CreateMonsters(Math.min(n - o, r), u, i, l, c);
}
}
}
};
t.prototype.SpawnFormation = function(e, t, n, r) {
return __awaiter(this, void 0, void 0, function() {
var e, i, l, s, u, p, d, f;
return __generator(this, function(h) {
switch (h.label) {
case 0:
return [ 4, o.default.Default.LoadRes(t) ];

case 1:
e = h.sent();
i = w.LevelContext.Instance.camera.node.getPosition();
l = w.LevelContext.Instance.inCameraEnemyCount;
s = Math.min(r - l, e.data.childrenCount);
u = 0;
h.label = 2;

case 2:
if (!(u < s)) return [ 3, 5 ];
p = e.data.children[u];
d = n[a.default.RandomInt(0, n.length - 1)];
if (!(f = c.MonsterConfig.GetMonster(d))) {
console.error("SpawnFormation failed!", d, n);
return [ 3, 4 ];
}
this.CreateMonster(f, p.x + i.x, p.y + i.y, 0, !0, !0);
return [ 4, this.waitForTime(.01) ];

case 3:
h.sent();
h.label = 4;

case 4:
u++;
return [ 3, 2 ];

case 5:
o.default.Default.UnloadAsset(e);
return [ 2 ];
}
});
});
};
t.prototype.CalcMonsterZones = function() {
for (var e = w.LevelContext.Instance.camera.node.getPosition(), t = 0; t < this.monsterZoneCnts.length; t++) this.monsterZoneCnts[t] = 0;
for (t = 0; t < w.LevelContext.Instance.enemies.length; t++) {
var n = w.LevelContext.Instance.enemies[t].node.getPosition();
n.x <= e.x && n.y >= e.y ? this.monsterZoneCnts[0] += 1 : n.x >= e.x && n.y >= e.y ? this.monsterZoneCnts[1] += 1 : n.x <= e.x && n.y <= e.y ? this.monsterZoneCnts[2] += 1 : n.x >= e.x && n.y <= e.y && (this.monsterZoneCnts[3] += 1);
}
};
t.prototype.GetMinMonsterZoneIndx = function() {
for (var e = 0, t = Number.MAX_SAFE_INTEGER, n = 0; n < this.monsterZoneCnts.length; n++) {
var o = this.monsterZoneCnts[n];
if (o <= t) {
t = o;
e = n;
}
}
return e;
};
Object.defineProperty(t.prototype, "isH", {
get: function() {
var e = w.LevelContext.Instance.levelProto;
return e.canSpawnEnemyH && e.canSpawnEnemyV ? Math.random() >= .5 : !!e.canSpawnEnemyH;
},
enumerable: !1,
configurable: !0
});
t.prototype.GetZoneRandomPos = function(e, t, n, o) {
var r = this.isH, i = a.default.Random(-1, 1) * t, l = a.default.Random(-1, 1) * n;
switch (e) {
case 0:
o.x = r ? -1 * (t + 50) : i;
o.y = r ? l : 1 * (n + 50);
return;

case 1:
o.x = r ? 1 * (t + 50) : i;
o.y = r ? l : 1 * (n + 50);
return;

case 2:
o.x = r ? -1 * (t + 50) : i;
o.y = r ? l : -1 * (n + 50);
return;

case 3:
o.x = r ? 1 * (t + 50) : i;
o.y = r ? l : -1 * (n + 50);
return;
}
};
t.prototype.CreateMonsters = function(e, t, n, o, r) {
return __awaiter(this, void 0, void 0, function() {
var i, l, s, u;
return __generator(this, function(p) {
switch (p.label) {
case 0:
i = 0;
p.label = 1;

case 1:
if (!(i < e)) return [ 3, 5 ];
if (!w.LevelContext.Instance.isRunning) return [ 2 ];
l = cc.v2();
this.GetZoneRandomPos(t, n, o, l);
s = this.curSpawn.ids[a.default.RandomInt(0, this.curSpawn.ids.length - 1)];
if (!(u = c.MonsterConfig.GetMonster(s))) {
console.error("CreateMonsters failed!", s, this.curSpawn.ids);
return [ 3, 4 ];
}
return [ 4, this.CreateMonster(u, r.x + l.x, r.y + l.y, 0) ];

case 2:
p.sent();
return [ 4, this.waitForTime(.01) ];

case 3:
p.sent();
p.label = 4;

case 4:
i++;
return [ 3, 1 ];

case 5:
return [ 2 ];
}
});
});
};
t.prototype.CreateMonster = function(e, t, o, r, i, a) {
void 0 === i && (i = !0);
void 0 === a && (a = !0);
return __awaiter(this, void 0, Promise, function() {
return __generator(this, function() {
return [ 2, n.CreateMonsterEx(e, t, o, r, i, a, !0) ];
});
});
};
t.CreateMonsterEx = function(e, t, n, o, r, i, a) {
void 0 === r && (r = !0);
void 0 === i && (i = !0);
return __awaiter(this, void 0, Promise, function() {
var l, s, c;
return __generator(this, function(u) {
switch (u.label) {
case 0:
if (i) {
l = w.LevelContext.Instance.levelProto.enemyBornRange;
t = Math.clamp(t, l[0].x, l[0].y);
n = Math.clamp(n, l[1].x, l[1].y);
}
return [ 4, g.MonsterSpanwnMgr.Instance.CreateNode(e.resPath, w.LevelContext.Instance.playerLayer, cc.v2(t, n), o, e.scale) ];

case 1:
s = u.sent();
(c = s.getComponent(h.Enemy)).followPlayer = a;
c.canRecycle = r;
c.OnInit(e);
p.BroadcastMessage(null, "OnCreateMonster", c);
return [ 2, c ];
}
});
});
};
t.prototype.OnTimeEvt = function(e) {
var t = w.LevelContext.Instance.spawnInfo;
if (null == this.curSpawn) {
this.curSpawn = t.continusSpawnMonster[0];
t.continusSpawnMonster.splice(0, 1);
} else {
var n = t.continusSpawnMonster[0];
if (n && n.time <= w.LevelContext.Instance.totalTime) {
this.curSpawn = n;
t.continusSpawnMonster.splice(0, 1);
}
}
if (t.onceSpawnMonster.length > 0) for (var o = t.onceSpawnMonster[0]; o && o.sec <= e; ) {
this.SpawnOnceMonsters(o);
t.onceSpawnMonster.splice(0, 1);
o = t.onceSpawnMonster[0];
}
};
t.prototype.SpawnOnceMonsters = function(e) {
this.SpawnOnceMonstersEx(e, w.LevelContext.Instance.camera.node.getPosition(), null);
};
t.prototype.SpawnOnceMonstersEx = function(e, t, n) {
var o = this.width / w.LevelContext.Instance.camera.zoomRatio, r = this.height / w.LevelContext.Instance.camera.zoomRatio, i = .5 * o, a = .5 * r;
if (e instanceof s.OnceOneMonster) this.SpawnMonsters_Once(e, i, a, e.formation, t); else if (e instanceof s.OnceOneMonster_Right) this.SpawnMonsters_Once_Right(e, i, a, t); else if (e instanceof s.OnceMultiMonster_Rush) {
t.x += (Math.random() > .5 ? 1 : -1) * o + 50;
t.y += (Math.random() > .5 ? 1 : -1) * r + 50;
this.SpawnMonsters_Rush(e.ids, e.formation, t, e.speed);
} else e instanceof s.OnceMultiMonster_Circle ? this.SpawnMonsters_Circle(e.ids, t, e.radius, e.total, e.speed, 0 != e.groupAsOne) : e instanceof s.OnceMultiMonster ? this.SpawnMonsters(e.ids, i, a, e.formation, t, e.intervel, e.userPlayerY, e.useZoneOffset) : e instanceof s.OnceRandomMonster ? this.SpawnRandomMonsters(e.ids, i, a, e.countRange, t, e.intervel, e.useZoneOffset, n) : e instanceof s.OnceLeftRightMultiMonster ? this.SpawnLeftRightMonsters(e.ids, i, a, e.formation, t, e.intervel, e.userPlayerY) : e instanceof s.OnceUpDownMultiMonster ? this.SpawnUpDownMonsters(e.ids, i, a, e.formation, t, e.intervel, e.userPlayerY) : e instanceof s.OnceWanning ? this.SpawnWanning() : e instanceof s.OnceWanning1 ? this.SpawnWanning1() : e instanceof s.OnceWanning2 && this.SpawnWanning2();
};
t.prototype.CheckBossWall = function(e) {
if (e.proto.type == c.MonsterType.Boss) {
var t = w.LevelContext.Instance;
if (t.bossWall && !this.bossWall) {
var n = o.default.Default.CreateNodeSync(t.bossWall, w.LevelContext.Instance.groundLayer).getComponent(f.BossWall);
n.OnInit(e);
this.bossWall = n;
}
}
};
t.prototype.SpawnMonsters_Once = function(e, t, n, r, i) {
return __awaiter(this, void 0, void 0, function() {
var l, s, u, p, d, f, h;
return __generator(this, function(m) {
switch (m.label) {
case 0:
return [ 4, o.default.Default.LoadRes(r) ];

case 1:
m.sent();
l = c.MonsterConfig.GetMonster(e.id);
s = this.isH;
u = null != e.len ? e.len : t + 50;
p = null != e.len ? e.len : n + 50;
(d = cc.v2()).x = s ? Math.sign(a.default.Random(-1, 1)) * u : a.default.Random(-1, 1) * u;
d.y = s ? a.default.Random(-1, 1) * p : Math.sign(a.default.Random(-1, 1)) * p;
if (!l) {
console.error("SpawnMonsters_Once failed!", e.id);
return [ 2 ];
}
return r ? [ 4, o.default.Default.LoadRes(r) ] : [ 3, 3 ];

case 2:
f = m.sent();
d = f.data.children[f.data.childrenCount - 1].getPosition(d);
m.label = 3;

case 3:
return [ 4, this.CreateMonster(l, i.x + d.x, i.y + d.y, 0, !1) ];

case 4:
h = m.sent();
this.CheckBossWall(h);
return [ 2 ];
}
});
});
};
t.prototype.SpawnMonsters_Once_Right = function(e, t, n, o) {
return __awaiter(this, void 0, void 0, function() {
var n, r, i;
return __generator(this, function(a) {
switch (a.label) {
case 0:
n = c.MonsterConfig.GetMonster(e.id);
r = null != e.len ? e.len : t + 50;
null != e.len && e.len;
if (!n) {
console.error("SpawnMonsters_Once failed!", e.id);
return [ 2 ];
}
return [ 4, this.CreateMonster(n, o.x + r, o.y + 0, 0, !1) ];

case 1:
i = a.sent();
this.CheckBossWall(i);
return [ 2 ];
}
});
});
};
t.prototype.SpawnMonsters_Rush = function(e, t, r, i) {
return __awaiter(this, void 0, void 0, function() {
var l, s, u, p, d, f, h, m, y;
return __generator(this, function(g) {
switch (g.label) {
case 0:
return [ 4, o.default.Default.LoadRes(t) ];

case 1:
l = g.sent();
s = cc.v2();
u = cc.v2();
p = w.LevelContext.Instance.camera;
cc.Vec2.subtract(u, p.node.getPosition(), r);
u.normalizeSelf();
u.mulSelf(i);
d = 0;
g.label = 2;

case 2:
if (!(d < l.data.childrenCount)) return [ 3, 5 ];
if (!w.LevelContext.Instance.isRunning) return [ 3, 4 ];
f = e[a.default.RandomInt(0, e.length - 1)];
if (!(h = c.MonsterConfig.GetMonster(f))) {
console.error("SpawnMonsters_Rush failed!", f, e);
return [ 3, 4 ];
}
m = l.data.children[d];
s.set(r);
s.addSelf(m.getPosition());
return [ 4, n.CreateMonsterEx(h, s.x, s.y, 0, !0, !1, !1) ];

case 3:
(y = g.sent()).speed = i;
y.body.velocity = u;
this.waitForTime(.01);
g.label = 4;

case 4:
d++;
return [ 3, 2 ];

case 5:
o.default.Default.UnloadAsset(l);
return [ 2 ];
}
});
});
};
t.prototype.SpawnMonsters_Circle = function(e, t, o, r, i, l) {
return __awaiter(this, void 0, void 0, function() {
var s, u, p, d, f, h, y, g;
return __generator(this, function(v) {
switch (v.label) {
case 0:
s = null;
u = null;
s = new cc.Node();
(u = s.addComponent(m.EnemyGroup)).groupAsOne = l;
p = cc.v2(cc.Vec2.RIGHT);
d = Math.TWO_PI / r;
f = 0;
v.label = 1;

case 1:
if (!(f < r)) return [ 3, 4 ];
if (!w.LevelContext.Instance.isRunning) return [ 3, 3 ];
h = e[a.default.RandomInt(0, e.length - 1)];
if (!(y = c.MonsterConfig.GetMonster(h))) {
console.error("SpawnMonsters_Circle failed!", h, e);
return [ 3, 3 ];
}
p.set(cc.Vec2.RIGHT);
p.rotateSelf(f * d);
p.mulSelf(o);
p.addSelf(t);
return [ 4, n.CreateMonsterEx(y, p.x, p.y, 0, !1, !1, !0) ];

case 2:
(g = v.sent()).speed = i;
u.enemies.push(g);
this.waitForTime(.01);
v.label = 3;

case 3:
f++;
return [ 3, 1 ];

case 4:
s.setParent(w.LevelContext.Instance.node);
return [ 2 ];
}
});
});
};
t.prototype.SpawnMonsters = function(e, t, n, r, i, l, s, u) {
return __awaiter(this, void 0, void 0, function() {
var p, d, f, h, m, y, g, v;
return __generator(this, function(S) {
switch (S.label) {
case 0:
if (!(r instanceof cc.Prefab)) return [ 3, 1 ];
d = r;
return [ 3, 3 ];

case 1:
return [ 4, o.default.Default.LoadRes(r) ];

case 2:
d = S.sent();
S.label = 3;

case 3:
p = d;
this.CalcMonsterZones();
f = this.GetMinMonsterZoneIndx();
h = cc.v2();
u && this.GetZoneRandomPos(f, t, n, h);
h.addSelf(i);
m = 0;
S.label = 4;

case 4:
if (!(m < p.data.childrenCount)) return [ 3, 7 ];
if (!w.LevelContext.Instance.isRunning) return [ 3, 6 ];
y = p.data.children[m];
g = e[a.default.RandomInt(0, e.length - 1)];
if (!(v = c.MonsterConfig.GetMonster(g))) {
console.error("SpawnMonsters failed!", g, e);
return [ 3, 6 ];
}
this.CreateMonster(v, y.x + h.x, (s ? h.y : w.LevelContext.Instance.camera.node.y) + y.y, 0, !0, !1);
return [ 4, this.waitForTime(l) ];

case 5:
S.sent();
S.label = 6;

case 6:
m++;
return [ 3, 4 ];

case 7:
r instanceof cc.Prefab || o.default.Default.UnloadAsset(p);
return [ 2 ];
}
});
});
};
t.prototype.SpawnRandomMonsters = function(e, t, n, o, r, i, l, s) {
return __awaiter(this, void 0, void 0, function() {
var u, p, d, f, h, m, y;
return __generator(this, function(g) {
switch (g.label) {
case 0:
this.CalcMonsterZones();
u = this.GetMinMonsterZoneIndx();
p = cc.v2(0, 0);
l && this.GetZoneRandomPos(u, t, n, p);
p.addSelf(r);
d = a.default.Random(o[0], o[1]);
f = 0;
g.label = 1;

case 1:
if (!(f < d)) return [ 3, 5 ];
if (!w.LevelContext.Instance.isRunning) return [ 3, 4 ];
h = e[a.default.RandomInt(0, e.length - 1)];
if (!(m = c.MonsterConfig.GetMonster(h))) {
console.error("SpawnRandomMonsters failed!", h, e);
return [ 3, 4 ];
}
return [ 4, this.CreateMonster(m, p.x, p.y, 0, !0, !1) ];

case 2:
y = g.sent();
s && s(y);
return [ 4, this.waitForTime(i) ];

case 3:
g.sent();
g.label = 4;

case 4:
f++;
return [ 3, 1 ];

case 5:
return [ 2 ];
}
});
});
};
t.prototype.SpawnLeftRightMonsters = function(e, t, n, r, i, l, s) {
return __awaiter(this, void 0, void 0, function() {
var n, u, p, d, f, h, m;
return __generator(this, function(y) {
switch (y.label) {
case 0:
n = null;
return null == r ? [ 3, 2 ] : [ 4, o.default.Default.LoadRes(r) ];

case 1:
n = y.sent();
y.label = 2;

case 2:
(u = cc.v2((Math.random() < .5 ? 1 : -1) * t, 0)).addSelf(i);
p = n ? n.data.childrenCount : 1;
d = 0;
y.label = 3;

case 3:
if (!(d < p)) return [ 3, 6 ];
if (!w.LevelContext.Instance.isRunning) return [ 3, 5 ];
f = n ? n.data.children[d] : null;
h = e[a.default.RandomInt(0, e.length - 1)];
if (!(m = c.MonsterConfig.GetMonster(h))) {
console.error("SpawnMonsters failed!", h, e);
return [ 3, 5 ];
}
this.CreateMonster(m, (f ? f.x : 0) + u.x, (s ? w.LevelContext.Instance.camera.node.y : u.y) + (f ? f.y : 0), 0, !0, !1);
return [ 4, this.waitForTime(l) ];

case 4:
y.sent();
y.label = 5;

case 5:
d++;
return [ 3, 3 ];

case 6:
null != n && o.default.Default.UnloadAsset(n);
return [ 2 ];
}
});
});
};
t.prototype.SpawnUpDownMonsters = function(e, t, n, r, i, l, s) {
return __awaiter(this, void 0, void 0, function() {
var t, u, p, d, f, h, m;
return __generator(this, function(y) {
switch (y.label) {
case 0:
t = null;
return null == r ? [ 3, 2 ] : [ 4, o.default.Default.LoadRes(r) ];

case 1:
t = y.sent();
y.label = 2;

case 2:
(u = cc.v2(0, (Math.random() < .5 ? 1 : -1) * n)).addSelf(i);
p = t ? t.data.childrenCount : 1;
d = 0;
y.label = 3;

case 3:
if (!(d < p)) return [ 3, 6 ];
if (!w.LevelContext.Instance.isRunning) return [ 3, 5 ];
f = t ? t.data.children[d] : null;
h = e[a.default.RandomInt(0, e.length - 1)];
if (!(m = c.MonsterConfig.GetMonster(h))) {
console.error("SpawnMonsters failed!", h, e);
return [ 3, 5 ];
}
this.CreateMonster(m, (s ? w.LevelContext.Instance.camera.node.x : u.x) + (f ? f.x : 0), (f ? f.y : 0) + u.y, 0, !0, !1);
return [ 4, this.waitForTime(l) ];

case 4:
y.sent();
y.label = 5;

case 5:
d++;
return [ 3, 3 ];

case 6:
null != t && o.default.Default.UnloadAsset(t);
return [ 2 ];
}
});
});
};
t.prototype.SpawnWanning = function() {
r.EffectManager.PlayEffect(null, "UIPrefab/BattleWarnning", i.default.GetView(d.default).node, cc.v2(0, 130));
};
t.prototype.SpawnWanning1 = function() {
r.EffectManager.PlayEffect(null, "UIPrefab/BattleWarnning1", i.default.GetView(d.default).node, cc.v2(0, 130));
};
t.prototype.SpawnWanning2 = function() {
r.EffectManager.PlayEffect(null, "UIPrefab/BattleWarnning2", i.default.GetView(d.default).node, cc.v2(0, 130));
};
var n;
t.Instance = null;
__decorate([ p.BroadcastHandler ], t.prototype, "OnTimeEvt", null);
return n = __decorate([ S ], t);
}(y.MyComponent));
n.LevelMonsterSpawn = M;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/AssetManager": void 0,
"../../../Framework/Core/Resource/EffectManager": void 0,
"../../../Framework/Core/Resource/MyComponent": void 0,
"../../../Framework/Core/Views/ViewUIManager": void 0,
"../../../Service/kl": void 0,
"../../Config/Config": "Config",
"../../Config/LevelConfig": "LevelConfig",
"../../Config/MonsterConfig": "MonsterConfig",
"../../Config/SkillConfig": "SkillConfig",
"../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../UI/BattleUI": "BattleUI",
"../BossWall": "BossWall",
"../Enemy": "Enemy",
"../EnemyGroup": "EnemyGroup",
"../LevelContext": "LevelContext",
"./MonsterSpanwnMgr": "MonsterSpanwnMgr"
} ],
LevelStatistics: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "629a0itCe1Ao5IIpkqzNDC4", "LevelStatistics");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.InitLevelStatistics = void 0;
var o = e("../Config/GameModel"), r = e("../Config/MonsterConfig"), i = e("../Messaging/MessageBroadcastReceiver"), a = e("./Enemy"), l = e("./LevelContext"), s = function() {
this.skillId = 0;
this.skillName = "Unknown";
this.groupId = 0;
this.damage = 0;
this.cnt = 0;
}, c = function() {
function e() {
this.sec = 0;
this.totalDamage = 0;
this.secondDamage = 0;
this.secondDamageCnt = 0;
this.secondDamageStatistics = 0;
this.secondDamageCntStatistics = 0;
this.skillContextDamageStatistics = new Array();
}
e.prototype.OnEntityDamage = function(e, t, n) {
if (e instanceof a.Enemy) {
this.totalDamage += t;
this.secondDamage += t;
this.secondDamageCnt++;
var o = "Unknown", i = 0, l = 0;
if (n && n.skillData) {
if (n.skillData.proto instanceof r.MonsterSkillProto) return;
i = n.skillData.proto.id;
o = n.skillData.proto.name;
l = n.skillData.proto.groupId;
}
if (0 == i && 0 == l) {
console.warn("LevelStatistics Unknow Skill Damage", "health", t, "skill", n && n.skillData ? n.skillData.proto.resPath : null);
return;
}
var c = this.GetSkillStatistics(i, o);
if (!c) {
(c = new s()).skillId = i;
c.skillName = o;
c.groupId = l;
this.skillContextDamageStatistics.push(c);
}
c.damage += t;
c.cnt++;
}
};
e.prototype.OnTimeEvt = function(e, t) {
void 0 === t && (t = !1);
this.sec = t ? this.sec + 1 : e;
this.secondDamage > this.secondDamageStatistics && (this.secondDamageStatistics = this.secondDamage);
this.secondDamageCnt > this.secondDamageCntStatistics && (this.secondDamageCntStatistics = this.secondDamageCnt);
this.secondDamage = 0;
this.secondDamageCnt = 0;
};
e.prototype.Log = function(e) {
console.log(e);
console.log("时长", this.sec + "秒", "总伤害", this.totalDamage.toFixed(0), "平均每秒伤害", (this.totalDamage / this.sec).toFixed(0), "最大单秒输出", this.secondDamageStatistics.toFixed(0), "最大单秒输出次数", this.secondDamageCntStatistics);
for (var t = 0; t < this.skillContextDamageStatistics.length; t++) {
var n = this.skillContextDamageStatistics[t];
console.log("技能输出", n.skillName, "id", n.skillId, "伤害", n.damage.toFixed(0), "占总伤害百分比", (n.damage / this.totalDamage * 100).toFixed(2) + "%", "次数", n.cnt);
}
};
e.prototype.GetSkillStatistics = function(e, t) {
for (var n = 0; n < this.skillContextDamageStatistics.length; n++) {
var o = this.skillContextDamageStatistics[n];
if (o.skillId == e && o.skillName == t) return o;
}
return null;
};
return e;
}(), u = function() {
function e() {}
e.prototype.OnLevelStart = function() {
e.totalStatistice = new c();
e.bossStatistice = new c();
};
e.prototype.OnLevelFinish = function() {
var t = l.LevelContext.Instance.mainPlayer, n = t.weaponData;
console.log("武器", n.proto.name, n.classLevel.intValue + "阶", n.level.intValue + "级");
for (var r = t.equipDatas, a = 0; a < r.length; a++) console.log("装备", r[a].proto.name);
for (a = 0; a < o.default.Instance.talentList.length; a++) {
var s = o.default.Instance.talentList[a];
s.lv > 0 && s.active && console.log("天赋", s.proto.name, s.lv + "级");
}
var c = t.activeSkills, u = [], p = [];
for (a = 0; a < c.length; a++) if ((m = c[a]) && m.isNormalSkill) {
var d = m.group, f = d.GetLv(m.id), h = u.indexOf(d);
if (h < 0) {
u.push(d);
p.push(f);
} else p[h] < f && (p[h] = f);
} else console.log("玩家技能", m.proto.name);
for (a = 0; a < u.length; a++) {
var m = u[a];
console.log("玩家技能", m.name, "等级", p[a]);
}
e.totalStatistice.Log("关卡总统计");
e.bossStatistice.Log("boss统计");
i.RemoveBroadcastReceiver(this);
};
e.prototype.OnEntityDamage = function(t, n, o) {
e.totalStatistice.OnEntityDamage(t, n, o);
t instanceof a.Enemy && t.proto.type == r.MonsterType.Boss && e.bossStatistice.OnEntityDamage(t, n, o);
};
e.prototype.OnTimeEvt = function(t) {
e.totalStatistice.OnTimeEvt(t);
l.LevelContext.Instance.isFightingBoss && e.bossStatistice.OnTimeEvt(t, !0);
};
e.totalStatistice = new c();
e.bossStatistice = new c();
__decorate([ i.BroadcastHandler ], e.prototype, "OnLevelStart", null);
__decorate([ i.BroadcastHandler ], e.prototype, "OnLevelFinish", null);
__decorate([ i.BroadcastHandler ], e.prototype, "OnEntityDamage", null);
__decorate([ i.BroadcastHandler ], e.prototype, "OnTimeEvt", null);
return e;
}();
n.default = u;
n.InitLevelStatistics = function() {
i.AddBroadcastReceiver(new u());
};
cc._RF.pop();
}, {
"../Config/GameModel": "GameModel",
"../Config/MonsterConfig": "MonsterConfig",
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./Enemy": "Enemy",
"./LevelContext": "LevelContext"
} ],
LevelUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7e2d7XKM29OdapqO63r9y3y", "LevelUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../../Framework/Core/UI/WaitingUI"), i = e("../../Framework/Core/Views/RegisterView"), a = e("../../Framework/Core/Views/ViewConfig"), l = e("../../Framework/Core/Views/ViewUIComponent"), s = e("../../Framework/Core/Views/ViewUIManager"), c = e("../../Framework/UI/MessageBoxUI"), u = e("../../Framework/UI/PromptUI"), p = e("../../Service/PlatformService"), d = e("../../Service/RemoteSetting"), f = e("../Battle/LevelContext"), h = e("../Battle/LevelManager"), m = e("../Battle/Player"), w = e("../Battle/Util"), y = e("../Config/BattleWeaponShopConfig"), g = e("../Config/Config"), v = e("../Config/GameModel"), S = e("../Config/HeroData"), M = e("../Config/LevelConfig"), k = e("../Messaging/MessageBroadcastReceiver"), C = e("./BattleGuideUI"), P = e("./BattleStartPowerUpUI"), _ = e("./BattleUI"), O = e("./HeroUI"), b = e("./RewardsUI"), F = cc._decorator, I = F.ccclass, E = F.property, D = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.scrollView = null;
t.curLevel = null;
t.isLoading = !1;
t.levels = [];
t.diffColors = [ cc.color().fromHEX("#41CF38"), cc.color().fromHEX("#E0A722"), cc.color().fromHEX("#FF3636") ];
return t;
}
n = t;
Object.defineProperty(t, "isShowedGuideUI", {
get: function() {
return "1" == p.default.GetLocalStorage("isShowedGuideUI");
},
set: function(e) {
p.default.SetLocalStorage("isShowedGuideUI", e ? "1" : "0");
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
for (var e = 0; e < M.LevelConfig.levels.length; e++) {
var t = M.LevelConfig.levels[e];
t.chapter < 0 || this.levels.push(t);
}
};
t.prototype.OnSetParams = function() {
var e = this;
this.isLoading = !1;
this.CheckLevelUnlock();
this.curLevel = v.default.Instance.currentLevel;
this.UpdateList();
this.scheduleOnce(function() {
var t = e.levels.findIndex(function(t) {
return t.id == e.curLevel.id;
});
e.scrollView.scrollTo(cc.v2(Math.max(0, t / (e.levels.length - 1)), 0));
}, .01);
};
t.prototype.UpdateList = function() {
for (var e = v.default.Instance, t = null, n = 0; n < M.LevelConfig.chapters.length; n++) for (var o = M.LevelConfig.chapters[n], r = w.default.GetOrCreateChild(n, this.content), i = 0; i < o.levels.length; i++) {
var a = o.levels[i], l = e.GetLevel(a);
if (l) {
var s = l.proto, c = w.default.GetOrCreateChild(i, r);
c.data = l;
var u = c.findChild("pic"), p = c.findChild("NameLabel"), d = c.findChild("Title"), f = c.findChild("Lock"), h = c.findChild("box1"), m = c.findChild("box2"), y = c.findChild("RedPnt");
c.findChild("Tick").active = l.isBossKilled;
w.default.SetImage(s.icon, u.getComponent(cc.Sprite));
w.default.SetImage(s.icon, f.findChild("pic").getComponent(cc.Sprite));
p.getComponent(cc.Label).string = s.chapter + "-" + (i % 3 + 1);
d.getComponent(cc.Label).string = 1 == i ? o.name : "";
f && (f.active = !l.unlock);
var g = c.findChild("Rewards"), S = M.LevelConfig.GetLevel(s.id);
g.findChild("Piece").active = S.bluePrintRewards && S.bluePrintRewards.length > 0;
if (this.curLevel == l || null == this.curLevel && 0 == i) {
t = c;
this.curLevel = l;
}
if (l.isBossKilled) {
var k = 1 == l.isGetReward;
h.active = !k;
m.active = k;
y.active = !k;
} else {
h.active = !0;
m.active = !1;
y.active = !1;
}
}
}
t && this.scheduleOnce(function() {
t.getComponent(cc.Toggle).check();
}, .1);
};
t.prototype.OnLockItemClick = function(e) {
var t = e.target.parent.data;
2 == t.id ? c.default.ShowConfirm("提示", "通关“简单”模式后解锁") : 3 == t.id && c.default.ShowConfirm("提示", "通关“普通”模式后解锁");
};
t.prototype.OnItemClick = function(e) {
this.curLevel = e.target.data;
};
t.prototype.OnConfirmClick = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
return this.isLoading ? [ 2 ] : [ 4, s.default.ShowView(O.default, g.BattleMode.Level, this.curLevel.proto) ];

case 1:
e.sent();
this.HideView();
return [ 2 ];
}
});
});
};
t.prototype.OnRewardClick = function(e) {
var t = e.target.parent.data;
if (t.isBossKilled) {
if (1 == t.isGetReward) return;
t.isGetReward = !0;
b.default.ShowView("关卡奖励", t.proto.passedRewards);
this.UpdateList();
} else u.default.Show("通关后才能领取宝箱");
};
t.EnterBattle = function(e, t, i, a, l, c) {
void 0 === a && (a = !1);
void 0 === l && (l = null);
void 0 === c && (c = g.BattleMode.Level);
return __awaiter(this, void 0, void 0, function() {
var u, p, w, g, M, O, b, F, I, E, D, R;
return __generator(this, function(L) {
switch (L.label) {
case 0:
return [ 4, s.default.ShowView(r.default) ];

case 1:
L.sent();
v.default.Instance.selectedHeroId = e.id;
u = S.HeroData.Clone(e);
return [ 4, o.default.Default.CreateNode(u.proto.resPath) ];

case 2:
p = L.sent();
(w = p.getComponent(m.Player)).heroData = u;
return [ 4, o.default.Default.LoadRes(i.resPath) ];

case 3:
g = L.sent();
M = cc.instantiate(g);
O = M.getComponent(f.LevelContext);
b = M.getComponent(h.LevelManager);
O.mode = c;
O.mainPlayer = w;
O.isHardMode = a;
O.levelProto = i.Clone();
O.sellItems = y.BattleWeaponShopConfig.Random(t.level.intValue);
if (!i.useBossRoom) {
O.bossRoom && (O.bossRoom.active = !1);
O.bossRoom = null;
}
return (F = a ? i.hard.lightPrefab : i.normal.lightPrefab) && F.length > 0 && v.default.Instance.enableLighting ? [ 4, o.default.Default.CreateNode("Prefabs/Level/" + F, M, cc.Vec2.ZERO) ] : [ 3, 5 ];

case 4:
(I = L.sent()).getComponent("Light2DManager").followCamera = O.camera;
if (E = I.findChild("PlayerLight")) {
E.setParent(p);
E.setPosition(cc.Vec2.ZERO);
E.active = !0;
}
L.label = 5;

case 5:
M.setParent(s.default.viewRoot.parent);
p.setParent(f.LevelContext.Instance.playerLayer);
w.body.position = i.bornPoint;
return [ 4, w.OnInit(t) ];

case 6:
L.sent();
return [ 4, h.LevelManager.Instance.LoadProcessData() ];

case 7:
return L.sent() || 1 != i.id ? [ 3, 9 ] : [ 4, b.AddLevelStartExps() ];

case 8:
L.sent();
L.label = 9;

case 9:
return [ 4, s.default.ShowView(_.default, c) ];

case 10:
L.sent();
return [ 4, s.default.HideView(r.default) ];

case 11:
L.sent();
D = d.default.Get("isShowedGuideUI", !0);
return n.isShowedGuideUI || !D ? [ 3, 14 ] : [ 4, s.default.ShowView(C.default) ];

case 12:
L.sent();
return [ 4, s.default.UntilHide(C.default) ];

case 13:
L.sent();
n.isShowedGuideUI = !0;
L.label = 14;

case 14:
R = d.default.Get("isNewUserShowPowerUP", !1) || v.default.Instance.battleCnt > 0;
return 1 == v.default.Instance.enableGuideLevel || v.default.Instance.processSaveData || !R ? [ 3, 17 ] : [ 4, s.default.ShowView(P.default) ];

case 15:
L.sent();
return [ 4, s.default.UntilHide(P.default) ];

case 16:
L.sent();
L.label = 17;

case 17:
h.LevelManager.Instance.Start();
l && l();
k.BroadcastMessage(null, "OnEnterLevel", c);
return [ 2 ];
}
});
});
};
t.prototype.CheckLevelUnlock = function() {
for (var e = 0; e < this.levels.length; e++) {
var t = v.default.Instance.GetLevel(this.levels[e].id);
if (t && !t.unlock) {
var n = M.LevelConfig.GetChapter(t.proto.chapter);
if (n) {
var o = null, r = n.levels.indexOf(t.id);
if (0 == r) {
var i = M.LevelConfig.GetChapter(t.proto.chapter - 1);
i && (o = v.default.Instance.GetLevel(i.levels[i.levels.length - 1]));
} else o = v.default.Instance.GetLevel(n.levels[r - 1]);
if (!(o && o.unlock && o.isBossKilled)) break;
t.unlock = !0;
}
}
}
};
var n;
__decorate([ E(cc.Node) ], t.prototype, "content", void 0);
__decorate([ E(cc.ScrollView) ], t.prototype, "scrollView", void 0);
return n = __decorate([ I, i.RegisterView("LevelUI", a.ViewLayer.NormalLayer, a.ViewShowRule.HideSameLayerView) ], t);
}(l.default);
n.default = D;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/MessageBoxUI": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/LevelManager": "LevelManager",
"../Battle/Player": "Player",
"../Battle/Util": "Util",
"../Config/BattleWeaponShopConfig": "BattleWeaponShopConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/HeroData": "HeroData",
"../Config/LevelConfig": "LevelConfig",
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./BattleGuideUI": "BattleGuideUI",
"./BattleStartPowerUpUI": "BattleStartPowerUpUI",
"./BattleUI": "BattleUI",
"./HeroUI": "HeroUI",
"./RewardsUI": "RewardsUI"
} ],
LiRenChongCi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "29bb4wZPk5B3YMoHYcb1heJ", "LiRenChongCi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../../../Framework/Core/Resource/MyComponent"), i = e("../../Util"), a = e("../EffectSkill"), l = cc._decorator, s = l.ccclass, c = (l.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.hitCnt = 0;
return t;
}
Object.defineProperty(t.prototype, "forward", {
get: function() {
return this.context.owner.dashForward;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnDashBegin = function() {
this.hitCnt = 0;
var e = i.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, cc.Vec2.ZERO, i.default.forward2Angle(this.forward), this.context.owner.aimPnt);
this.context.InitEffectHandler(e, null, !1);
};
t.prototype.OnHitEntity = function(e) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(t) {
switch (t.label) {
case 0:
if (e.context != this.context) return [ 2 ];
this.hitCnt++;
if (this.hitCnt > 1) return [ 2 ];
r.MyComponent.TimeScale = .1;
return [ 4, this.waitForTime(.06, !0) ];

case 1:
t.sent();
r.MyComponent.TimeScale = 1;
return [ 2 ];
}
});
});
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnDashBegin", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ s ], t);
}(a.default));
n.default = c;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/MyComponent": void 0,
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../Util": "Util",
"../EffectSkill": "EffectSkill"
} ],
LiRenXuanZhuan2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ec49ctanWVFYLKr8sD9fib/", "LiRenXuanZhuan2");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.eftScale = 2;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IsActive = !0;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IsActive = !1;
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
n.EffectScale = this.eftScale;
n.Damage = this.context.skillData.proto.damage;
return [ 2 ];
});
});
};
var n;
t.IsActive = !1;
t.Damage = 0;
t.EffectScale = 0;
__decorate([ a() ], t.prototype, "eftScale", void 0);
return n = __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
LiRenXuanZhuan3: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "77e10KGXxJMM7kY/2JH95Y8", "LiRenXuanZhuan3");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../../Util"), a = e("../EffectSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.time = 3;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnDashBegin = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
e = this.context.owner.dashForward;
return [ 4, this.waitForTime(.05) ];

case 1:
n.sent();
this.PlayRecoilEffect(this.context.owner.body.position);
(t = this.context.CreateEffectHandler(this.context.fireEffect, this.context.fireSound, this.context.owner.aimPos, i.default.forward2Angle(e), r.LevelContext.Instance.effectLayer, !0, null)).scale = 1.2;
return [ 4, this.waitForTime(this.time) ];

case 2:
n.sent();
this.context.cache && this.context.cache.DestroyNode(t);
return [ 2 ];
}
});
});
};
__decorate([ c() ], t.prototype, "time", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnDashBegin", null);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../EffectSkill": "EffectSkill"
} ],
LiRenXuanZhuan: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9eb90T9wvtEPIhU/cO7u5qZ", "LiRenXuanZhuan");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../../Util"), a = e("../EffectSkill"), l = e("./LiRenXuanZhuan2"), s = cc._decorator, c = s.ccclass, u = (s.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return l.default.IsActive ? l.default.Damage : n.context.skillData.proto.damage;
};
return [ 2 ];
});
});
};
t.prototype.OnDashEnd = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n;
return __generator(this, function(o) {
switch (o.label) {
case 0:
e = this.context.owner.dashForward;
return [ 4, this.waitForTime(.05) ];

case 1:
o.sent();
this.PlayRecoilEffect(this.context.owner.body.position);
t = this.context.PlayEffectHandler(this.context.fireEffect, this.context.fireSound, this.context.owner.aimPos, i.default.forward2Angle(e), r.LevelContext.Instance.effectLayer, null);
n = l.default.IsActive ? l.default.EffectScale : 1;
t.setScale(n, n);
return [ 2 ];
}
});
});
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnDashEnd", null);
return __decorate([ c ], t);
}(a.default));
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../EffectSkill": "EffectSkill",
"./LiRenXuanZhuan2": "LiRenXuanZhuan2"
} ],
LightningRotation: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d1e3c4hvI5PtJZTnIhiC7dZ", "LightningRotation");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Service/kl"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.angle = 45;
t.srcScale = 1;
return t;
}
t.prototype.onLoad = function() {
this.srcScale = this.node.scale;
};
t.prototype.onEnable = function() {
this.node.angle = o.default.Random(-this.angle, this.angle);
this.node.scale = this.srcScale * o.default.Random(1, 1.5);
};
__decorate([ a() ], t.prototype, "angle", void 0);
return __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../../../Service/kl": void 0
} ],
LimitedNodePool: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "20073VNJT9NmKko/3NjmIYb", "LimitedNodePool");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LimitedNodePool = void 0;
var o = cc._decorator, r = o.ccclass, i = (o.property, function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.maxCount = 80;
t.nodeCacle = null;
t.nodes = [];
t.counts = 0;
return t;
}
t.prototype.onLoad = function() {
this.nodes.clear();
this.counts = 0;
};
t.prototype.Create = function(e, t, n, o) {
return __awaiter(this, void 0, Promise, function() {
var r;
return __generator(this, function(i) {
switch (i.label) {
case 0:
r = null;
return this.counts >= this.maxCount ? [ 2, null ] : [ 3, 1 ];

case 1:
this.counts++;
return [ 4, this.nodeCacle.CreateNode(o, e, t, 0) ];

case 2:
r = i.sent();
this.nodes.push(r);
this.DelayDestory(r, n);
return [ 2, r ];
}
});
});
};
t.prototype.CreateSync = function(e, t, n, o) {
var r;
if (this.counts >= this.maxCount) return null;
this.counts++;
r = this.nodeCacle.CreateNodeSync(o, e, t, 0);
this.nodes.push(r);
this.DelayDestory(r, n);
return r;
};
t.prototype.DelayDestory = function(e, t) {
var n = this;
this.scheduleOnce(function() {
var t = n.nodes.indexOf(e);
n.nodes.splice(t, 1);
n.counts--;
n.nodeCacle.DestroyNode(e);
}, t);
};
return __decorate([ r ], t);
}(cc.Component));
n.LimitedNodePool = i;
cc._RF.pop();
}, {} ],
LinearBody: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a52d4i3GIJDVrExGepWuo5T", "LinearBody");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../RVO2/IBody"), r = cc._decorator.ccclass, i = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnUpdate = function(e) {
this.finalVelocity.x = this.velocity.x;
this.finalVelocity.y = this.velocity.y;
for (var t = this.forceList.length - 1; t >= 0; t--) {
var n = this.forceList[t];
n.Update(e);
this.finalVelocity.addSelf(n.force);
if (n.IsFinish()) {
this.forceList.splice(t, 1);
n.onCompelete && n.onCompelete();
}
}
this.finalVelocity.multiplyScalar(e);
this.node.setPosition(this.node.x + this.finalVelocity.x, this.node.y + this.finalVelocity.y);
};
return __decorate([ r ], t);
}(o.IBody);
n.default = i;
cc._RF.pop();
}, {
"../RVO2/IBody": "IBody"
} ],
Line: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a8daa+DrWxEOqY4iHtDfmC6", "Line");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Line = void 0;
n.Line = function() {};
cc._RF.pop();
}, {} ],
LingHunBuJi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "cf40bVOh3BEeqYaKNAIq7wq", "LingHunBuJi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../../Config/BattleItemConfig"), i = e("../../../Messaging/MessageBroadcastReceiver"), a = e("../BaseSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ratio = 10;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
i.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
i.RemoveBroadcastReceiver(this);
};
t.prototype.OnGetBattleItem = function(e, t) {
r.BattleItemConfig.IsExp(t) && o.default.RandomInt(0, 100) < this.ratio && this.context.owner.AddBulletNumber(1);
};
__decorate([ c() ], t.prototype, "ratio", void 0);
__decorate([ i.BroadcastHandler ], t.prototype, "OnGetBattleItem", null);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../../Config/BattleItemConfig": "BattleItemConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill"
} ],
LockArea: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4342agbDrlEaZRskVRt50uI", "LockArea");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LockArea = void 0;
var o = function() {
function e() {
this.xRange = cc.v2();
this.yRange = cc.v2();
}
e.prototype.Union = function(e) {
this.xRange.x = Math.max(this.xRange.x, e.xRange.x);
this.xRange.y = Math.min(this.xRange.y, e.xRange.y);
this.yRange.x = Math.max(this.yRange.x, e.yRange.x);
this.yRange.y = Math.min(this.yRange.y, e.yRange.y);
};
e.prototype.Limit = function(e, t) {
void 0 === t && (t = !1);
if (!this) return !1;
var n = this.xRange.y, o = this.xRange.x, r = !1;
if (e.x >= n) {
e.x = n - 1;
r = !0;
} else if (e.x <= o) {
e.x = o + 1;
r = !0;
}
var i = t ? -e.y : e.y, a = this.yRange.y, l = this.yRange.x;
if (i >= a) {
i = a - 1;
r = !0;
} else if (i <= l) {
i = l + 1;
r = !0;
}
e.y = t ? -i : i;
return r;
};
e.prototype.From = function(e, t) {
var n = .5 * t.width + e.x, o = .5 * -t.width + e.x, r = .5 * t.height + e.y, i = .5 * -t.height + e.y;
this.xRange = cc.v2(o, n);
this.yRange = cc.v2(i, r);
return this;
};
e.prototype.Clone = function() {
var t = new e();
t.xRange.set(this.xRange);
t.yRange.set(this.yRange);
return t;
};
e.prototype.toString = function() {
return "xRange:" + this.xRange.toString() + ", yRange:" + this.yRange.toString();
};
return e;
}();
n.LockArea = o;
cc._RF.pop();
}, {} ],
LoginUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "08168KeIPNLdLoYCnDtbz3W", "LoginUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.tipsLabel = null;
t.onSuc = null;
t.onFail = null;
return t;
}
t.prototype.OnSetParams = function(e, t, n) {
console.log("LoginUI onShow");
this.onSuc = t;
this.onFail = n;
this.tipsLabel.getComponent(cc.Label).string = e;
};
t.prototype.Cancel = function() {
console.log("LoginUI Cancel");
this.HideView();
this.onFail && this.onFail();
};
t.prototype.OnSuc = function() {
console.log("LoginUI OnSuc");
this.HideView();
this.onSuc && this.onSuc();
};
__decorate([ s(cc.Label) ], t.prototype, "tipsLabel", void 0);
return __decorate([ l, o.RegisterView("LoginUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0
} ],
LongLuan_Summon: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "483e7PY9qNFpKlztCwox8XM", "LongLuan_Summon");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Summon/Summon"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.viewEgg = null;
t.viewDragon = null;
t.bornAnim = null;
t.bornTime = 180;
t.psTime = 0;
t._isEggState = !0;
return t;
}
t.prototype.OnInitEx = function(t, n, o) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(r) {
switch (r.label) {
case 0:
return [ 4, e.prototype.OnInitEx.call(this, t, n, o) ];

case 1:
r.sent();
this.SetState(!0);
return [ 2 ];
}
});
});
};
t.prototype.SetState = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, o;
return __generator(this, function(r) {
switch (r.label) {
case 0:
this._isEggState = e;
if (e) return [ 3, 2 ];
this.viewEgg.active = !1;
this.bornAnim.node.active = !0;
t = this.bornAnim.play();
return [ 4, this.waitForTime(t.duration) ];

case 1:
r.sent();
this.viewDragon.active = !0;
return [ 3, 3 ];

case 2:
this.viewEgg.active = !0;
this.viewDragon.active = !1;
r.label = 3;

case 3:
for (n = 0; n < this.activeSkills.length; n++) (o = this.activeSkills[n]).skill && (o.skill.enabled = !e);
return [ 2 ];
}
});
});
};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
if (this._isEggState) {
this.psTime += t;
this.psTime > +this.bornTime && this.SetState(!1);
}
};
t.prototype.OnSave = function() {
return {
t: this.psTime
};
};
t.prototype.OnLoad = function(e) {
this.psTime = e.t;
};
__decorate([ a(cc.Node) ], t.prototype, "viewEgg", void 0);
__decorate([ a(cc.Node) ], t.prototype, "viewDragon", void 0);
__decorate([ a(cc.Animation) ], t.prototype, "bornAnim", void 0);
__decorate([ a({
tooltip: "变身时间（秒）"
}) ], t.prototype, "bornTime", void 0);
return __decorate([ i ], t);
}(o.Summon);
n.default = l;
cc._RF.pop();
}, {
"../../Summon/Summon": "Summon"
} ],
LongZhiLuoYin: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "1d06eMUwMdKKra3I5GjYV3g", "LongZhiLuoYin");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Config/SummonConfig"), i = e("../BaseSkill"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.interval = 1;
t.psTime = 0;
t.addTime = 0;
t.damageUpProto = new o.SkillFeatureProto(o.SkillFeature.BulletDamageUp, 0);
return t;
}
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
this.psTime += t;
if (this.psTime > this.interval) {
this.psTime = 0;
this.addTime++;
this.AddFeature();
}
};
t.prototype.AddFeature = function() {
var e = this.context.owner;
if (e) {
var t = e.GetSummon(r.SummonIds.LongLuan);
if (t) {
var n = .1 * t.GetSkill(250).context.GetDamage();
if (n != this.damageUpProto.x) {
this.damageUpProto.x *= -1;
e.AddFeature(this.damageUpProto);
this.damageUpProto.x = n;
e.AddFeature(this.damageUpProto);
e.ResetFeatures();
}
}
}
};
t.prototype.OnSave = function() {
return {
t: this.psTime,
c: this.addTime
};
};
t.prototype.OnLoad = function(e) {
this.psTime = e.t;
this.addTime = e.c;
for (var t = 0; t < this.addTime; t++) this.AddFeature();
};
return __decorate([ l ], t);
}(i.default));
n.default = s;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Config/SummonConfig": "SummonConfig",
"../BaseSkill": "BaseSkill"
} ],
LvStars: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9fc44Y2zvhO4prLcYUWPb81", "LvStars");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Battle/Util"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.lastAnim = null;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.SetLv = function(e, t, n) {
t || (t = e);
if (this.lastAnim) {
this.lastAnim.stop();
this.lastAnim = null;
}
for (var r = 0; r < t; r++) {
var i = o.default.GetOrCreateChild(r, this.node);
i.active = !0;
var a = i.getChildByName("star");
a.active = n ? r <= e : r < e;
if (r == e && n) {
this.lastAnim = a.getComponent(cc.Animation);
this.lastAnim.play();
} else a.opacity = 255;
}
for (r = t; r < this.node.childrenCount; r++) this.node.children[r].active = !1;
};
return __decorate([ i ], t);
}(cc.Component));
n.default = a;
cc._RF.pop();
}, {
"../Battle/Util": "Util"
} ],
MailRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0b2e4h/f/ZDpLXM95Z61aJm", "MailRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./MailUI"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cntLable = null;
t.timeCounter = 0;
return t;
}
t.prototype.update = function(e) {
this.timeCounter -= e;
if (this.timeCounter <= 0) {
var t = this.GetCnt();
this.node.opacity = t > 0 ? 255 : 0;
t > 0 && (this.cntLable.string = t.toFixed(0));
this.timeCounter = 1;
}
};
t.prototype.GetCnt = function() {
var e = 0;
o.default.mailDatas && o.default.mailDatas.length > 0 && o.default.mailDatas.forEach(function(t) {
t.isReaded && !t.isShouldPick || e++;
});
return e;
};
__decorate([ a(cc.Label) ], t.prototype, "cntLable", void 0);
return __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"./MailUI": "MailUI"
} ],
MailUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3d9eeD9gUBNYoOcZ+LO9kkC", "MailUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/UI/WaitingUI"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Framework/Localize/LocalizeManager"), c = e("../../Framework/UI/PromptUI"), u = e("../../Framework/UI/ScrollViewUtility"), p = e("../../Service/Mail"), d = e("../Battle/Util"), f = e("../Config/ArchivementConfig"), h = e("../Config/ChestConfig"), m = e("../Config/EquipmentConfig"), w = e("../Config/GameModel"), y = e("../Config/GiftConfig"), g = e("./RewardsUI"), v = cc._decorator, S = v.ccclass, M = v.property, k = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.coinLabel = null;
t.diamondLabel = null;
t.noMailTips = null;
t.listNode = null;
t.listContent = null;
t.detailNode = null;
t.detailTitle = null;
t.detailContent = null;
t.detailSender = null;
t.detailTime = null;
t.attachNode = null;
t.attachItemsNode = null;
t.deleteBtn = null;
t.fetchBtn = null;
t.coinFrame = null;
t.diamondAdFrame = null;
t.noAdFrame = null;
t.bluepringFrame = null;
t.pieceFrame = null;
t.activeValueFrame = null;
t.saodangFrame = null;
t.equipBlueprintFrame = null;
t.maskFrame = null;
t.wingFrame = null;
t.curMailData = null;
t.curMailID = -1;
t.curItem = null;
t.isTestData = !1;
return t;
}
n = t;
t.OnlyRequestMail = function() {
p.default.QueryMail(function(e) {
n.mailDatas = e;
}, function() {});
};
t.prototype.OnSetParams = function() {
this.Init();
this.coinLabel.string = w.default.Instance.coin.intValue.toFixed(0);
this.diamondLabel.string = w.default.Instance.diamond.intValue.toFixed(0);
};
t.prototype.Init = function() {
this.noMailTips.active = !1;
this.curItem = null;
this.curMailData = null;
this.curMailID = -1;
this.detailNode.active = !1;
this.attachNode.active = !1;
this.fetchBtn.active = !1;
this.deleteBtn.active = !1;
this.listNode.UpdateViewCells();
this.RequestData();
};
t.prototype.TestMail = function() {
var e = [];
e.push({
id: 2755,
send_user: "kl_kf002",
send_nickName: "客服小青",
title: "测试邮件",
content: "10000金币送给你2",
createTime: "2022-08-23 10:15:31",
isReaded: !1,
isShouldPick: !0,
attachList: [ {
itemId: "金币",
count: 600,
extData: {},
pickTime: "2022-08-23 12:00:57",
validTime: -1
}, {
itemId: "时装",
count: 1,
extData: {
id: 2,
type: 1
},
pickTime: "2022-08-23 12:00:57",
validTime: -1
}, {
itemId: "时装碎片",
count: 6,
extData: {
id: -1,
type: 0
},
pickTime: "2022-08-23 12:00:57",
validTime: -1
}, {
itemId: "时装碎片",
count: 6,
extData: {
id: -1,
type: 1
},
pickTime: "2022-08-23 12:00:57",
validTime: -1
}, {
itemId: "时装图纸",
count: 6,
extData: {},
pickTime: "2022-08-23 12:00:57",
validTime: -1
} ]
});
return e;
};
t.prototype.RequestData = function() {
var e = this;
this.listNode.node.active = !1;
p.default.QueryMail(function(t) {
e.isTestData && (t = e.TestMail());
n.mailDatas = t;
t && t.length > 0 ? e.listNode.node.active = !0 : e.noMailTips.active = !0;
e.UpdateList();
}, function() {
e.noMailTips.active = null == n.mailDatas || 0 == n.mailDatas.length;
});
};
t.prototype.UpdateList = function() {
var e = this;
this.listNode.InitCellDataList(n.mailDatas, function(t, n, o) {
e.UpdateItem(n, o);
});
};
t.prototype.UpdateItem = function(e, t) {
t.data = e;
t.findChild("title").getComponent(cc.Label).string = e.title;
t.findChild("time").getComponent(cc.Label).string = e.createTime;
this.SetStatus(e, t);
t.getComponent(cc.Toggle).isChecked = e.id == this.curMailID;
e.id == this.curMailID && (this.curMailData = e);
};
t.prototype.SetStatus = function(e, t) {
t.findChild("mail_unopen").active = !e.isReaded;
t.findChild("mail_open").active = e.isReaded;
t.findChild("RedPnt").active = !e.isReaded;
t.findChild("attach_unopen").active = null != e.attachList && e.attachList.length > 0 && e.isShouldPick;
t.findChild("attach_open").active = null != e.attachList && e.attachList.length > 0 && !e.isShouldPick;
};
t.prototype.OnItemClick = function(e) {
this.curItem = e.node;
this.curMailData = this.curItem.data;
if (this.curMailData) {
this.curMailID = this.curMailData.id;
this.ShowDetail(this.curMailData, this.curItem);
}
};
t.prototype.ShowDetail = function(e, t) {
var n = this;
this.detailNode.active = !0;
this.detailTitle.string = e.title;
this.detailContent.string = e.content;
this.detailSender.string = s.TXT("发件人：") + e.send_nickName;
this.detailTime.string = e.createTime;
this.attachNode.active = null != e.attachList && e.attachList.length > 0;
if (this.attachNode.active) {
this.attachItemsNode.enabledAllChild(!1);
for (var o = 0; o < e.attachList.length; o++) {
var r = e.attachList[o];
if ("金币" == r.itemId || "钻石" == r.itemId || "免广告卡" == r.itemId || "碎片" == r.itemId || "图纸" == r.itemId || "武器" == r.itemId || "活跃" == r.itemId || "扫荡券" == r.itemId || "时装" == r.itemId || "时装碎片" == r.itemId || "时装图纸" == r.itemId) {
var i = this.attachItemsNode.getOrCreateAndActiveChild(o);
i.findChild("num").getComponent(cc.Label).string = r.count + "";
i.findChild("piece").active = !1;
var a = i.findChild("Icon").getComponent(cc.Sprite);
if ("金币" == r.itemId) {
a.spriteFrame = this.coinFrame;
a.node.scale = 1;
} else if ("钻石" == r.itemId) {
a.spriteFrame = this.diamondAdFrame;
a.node.scale = 1;
} else if ("免广告卡" == r.itemId) {
a.spriteFrame = this.noAdFrame;
a.node.scale = 1;
} else if ("碎片" == r.itemId) if (r.extData && null != r.extData.id && r.extData.id > 0) {
var l = w.default.Instance.GetWeapon(r.extData.id).proto.GetIconPath(1);
d.default.SetImage(l, a);
i.findChild("piece").active = !0;
a.node.scale = 1;
} else {
a.spriteFrame = this.pieceFrame;
a.node.scale = .8;
} else if ("图纸" == r.itemId) if (r.extData && null != r.extData.id && r.extData.id >= 0) {
l = "UI/Blueprint/" + r.extData.id;
d.default.SetImage(l, a);
a.node.scale = 1;
} else {
a.spriteFrame = this.bluepringFrame;
a.node.scale = .8;
} else if ("武器" == r.itemId) {
if (r.extData && null != r.extData.id && null != r.extData.classLevel) {
l = w.default.Instance.GetWeapon(r.extData.id).proto.GetIconPath(r.extData.classLevel);
d.default.SetImage(l, a);
}
a.node.scale = .8;
} else if ("活跃" == r.itemId) {
a.spriteFrame = this.activeValueFrame;
a.node.scale = .5;
} else if ("扫荡券" == r.itemId) {
a.spriteFrame = this.saodangFrame;
a.node.scale = 1;
} else if ("时装" == r.itemId) {
if (r.extData && null != r.extData.id && r.extData.id > 0) {
var u = w.default.Instance.GetEquipment(r.extData.id);
d.default.SetImage(u.proto.iconPath, a);
a.node.scale = u.proto.type == m.EquipmentType.Mask ? 1 : .5;
}
} else if ("时装碎片" == r.itemId) {
if (r.extData && null != r.extData.id) if (r.extData.id > 0) {
u = w.default.Instance.GetEquipment(r.extData.id);
d.default.SetImage(u.proto.iconPath, a);
a.node.scale = u.proto.type == m.EquipmentType.Mask ? 1 : .5;
i.findChild("piece").active = !0;
} else {
a.spriteFrame = r.extData.type == m.EquipmentType.Mask ? this.maskFrame : this.wingFrame;
a.node.scale = .7;
}
} else if ("时装图纸" == r.itemId) {
a.spriteFrame = this.equipBlueprintFrame;
a.node.scale = 1;
}
}
}
}
this.deleteBtn.active = null == e.attachList || 0 == e.attachList.length || !e.isShouldPick;
this.fetchBtn.active = null != e.attachList && e.attachList.length > 0 && e.isShouldPick;
e.isReaded || p.default.ReadMail(e.id, function() {
e.isReaded = !0;
n.SetStatus(e, t);
}, function(e) {
c.default.Show(e);
});
};
t.prototype.OnDeleteClick = function() {
var e = this;
if (this.curMailData && !this.curMailData.isShouldPick) {
l.default.ShowView(o.default, 10);
p.default.DeleteMail(this.curMailData.id, function() {
e.Init();
l.default.HideView(o.default);
}, function(e) {
l.default.HideView(o.default);
c.default.Show(e);
});
}
};
t.prototype.OnRewardClick = function() {
var e = this;
if (this.curMailData && this.curMailData.isShouldPick) if (this.isTestData) this.DoGetAttach(); else {
l.default.ShowView(o.default, 10);
p.default.GetAttach(this.curMailData.id, function() {
e.DoGetAttach();
l.default.HideView(o.default);
}, function(e) {
c.default.Show(e);
l.default.HideView(o.default);
});
}
};
t.prototype.DoGetAttach = function() {
var e = this, t = [];
this.curMailData.attachList.forEach(function(e) {
if ("金币" == e.itemId) t.push(new y.RewardProto(f.UnlockType.Coin, e.count)); else if ("钻石" == e.itemId) t.push(new y.RewardProto(f.UnlockType.Diamond, e.count)); else if ("免广告卡" == e.itemId) t.push(new y.RewardProto(f.UnlockType.AdCard, 1)); else if ("碎片" == e.itemId) if (e.extData && null != e.extData.id && e.extData.id > 0) t.push(new y.RewardProto(f.UnlockType.Piece, e.count, e.extData.id)); else for (var n = h.ChestConfig.GetWeaponRewards(h.ChestConfig.shopWeaponPieceParam, 0, e.count), o = 0; o < n.length; o++) t.push(n[o]); else if ("图纸" == e.itemId) if (e.extData && null != e.extData.id && e.extData.id >= 0) t.push(new y.RewardProto(f.UnlockType.BluePrint, e.count, e.extData.id)); else {
var r = h.ChestConfig.GetBlueprintRewards(h.ChestConfig.shopWeaponStuffParam, e.count);
for (o = 0; o < r.length; o++) t.push(r[o]);
} else if ("武器" == e.itemId) e.extData && null != e.extData.id && null != e.extData.classLevel && t.push(new y.RewardProto(f.UnlockType.Weapon, e.count, e.extData.id, null, e.extData.classLevel, e.extData.lv)); else if ("活跃" == e.itemId) t.push(new y.RewardProto(f.UnlockType.ActiveValue, e.count)); else if ("扫荡券" == e.itemId) t.push(new y.RewardProto(f.UnlockType.Saodang, e.count)); else if ("时装" == e.itemId) e.extData && null != e.extData.id && e.extData.id > 0 && t.push(new y.RewardProto(f.UnlockType.Equipment, e.count, e.extData.id)); else if ("时装碎片" == e.itemId) {
if (e.extData && null != e.extData.id) if (e.extData.id > 0) t.push(new y.RewardProto(f.UnlockType.EquipmentPiece, e.count, e.extData.id)); else for (n = h.ChestConfig.GetEquipmentRewards(e.extData.type == m.EquipmentType.Mask ? h.ChestConfig.shopMaskParam : h.ChestConfig.shopWingParam, e.extData.type, !1, e.count, null, 3e3 * e.count), 
o = 0; o < n.length; o++) t.push(n[o]);
} else "时装图纸" == e.itemId && t.push(new y.RewardProto(f.UnlockType.EquipmentBluePrint, e.count));
});
g.default.ShowView("邮件", t);
this.scheduleOnce(function() {
e.coinLabel.string = w.default.Instance.coin.intValue.toFixed(0);
e.diamondLabel.string = w.default.Instance.diamond.intValue.toFixed(0);
}, .3);
this.curMailData.isShouldPick = !1;
this.deleteBtn.active = !0;
this.fetchBtn.active = !1;
this.SetStatus(this.curMailData, this.curItem);
};
var n;
t.mailDatas = [];
__decorate([ M(cc.Label) ], t.prototype, "coinLabel", void 0);
__decorate([ M(cc.Label) ], t.prototype, "diamondLabel", void 0);
__decorate([ M(cc.Node) ], t.prototype, "noMailTips", void 0);
__decorate([ M(u.default) ], t.prototype, "listNode", void 0);
__decorate([ M(cc.Node) ], t.prototype, "listContent", void 0);
__decorate([ M(cc.Node) ], t.prototype, "detailNode", void 0);
__decorate([ M(cc.Label) ], t.prototype, "detailTitle", void 0);
__decorate([ M(cc.Label) ], t.prototype, "detailContent", void 0);
__decorate([ M(cc.Label) ], t.prototype, "detailSender", void 0);
__decorate([ M(cc.Label) ], t.prototype, "detailTime", void 0);
__decorate([ M(cc.Node) ], t.prototype, "attachNode", void 0);
__decorate([ M(cc.Node) ], t.prototype, "attachItemsNode", void 0);
__decorate([ M(cc.Node) ], t.prototype, "deleteBtn", void 0);
__decorate([ M(cc.Node) ], t.prototype, "fetchBtn", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "coinFrame", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "diamondAdFrame", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "noAdFrame", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "bluepringFrame", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "pieceFrame", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "activeValueFrame", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "saodangFrame", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "equipBlueprintFrame", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "maskFrame", void 0);
__decorate([ M(cc.SpriteFrame) ], t.prototype, "wingFrame", void 0);
return n = __decorate([ S, r.RegisterView("MailUI", i.ViewLayer.NormalLayer) ], t);
}(a.default);
n.default = k;
cc._RF.pop();
}, {
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Framework/UI/ScrollViewUtility": void 0,
"../../Service/Mail": void 0,
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/ChestConfig": "ChestConfig",
"../Config/EquipmentConfig": "EquipmentConfig",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./RewardsUI": "RewardsUI"
} ],
MainConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9d5deQ8jYVIRoP9RtlX37e9", "MainConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Privacy/Script/PrivacyEnUI"), r = e("../../Privacy/Script/PrivacyUI"), i = e("../../Privacy/Script/StartGameUI"), a = e("../Framework/Core/Models/ModelManager"), l = e("../Framework/Core/Resource/AssetManager"), s = e("../Framework/Core/Resource/MyComponent"), c = e("../Framework/Core/Resource/SoundsManager"), u = e("../Framework/Core/Setup/SetupConfig"), p = e("../Framework/Core/UI/DebugUI"), d = e("../Framework/Core/Views/ViewUIManager"), f = e("../Framework/Localize/LocalizeManager"), h = e("../Framework/UI/MessageBoxUI"), m = e("./AntiAddiction/AntiAddictionUI"), w = e("../Service/AccountManager"), y = e("../Service/Analys"), g = e("../Service/Extension/Bilibili/WxTrackReport"), v = e("../Service/Extension/ClueOceanEngine/WxClueReport"), S = e("../Service/Extension/ZhiShangWx/ZhiShangApi"), M = e("../Service/IPlatformProxy"), k = e("../Service/kl"), C = e("../Service/PlatformService"), P = e("../Service/RemoteSetting"), _ = e("../Service/Timer"), O = e("./Config/ArchivementModel"), b = e("./Config/Config"), F = e("./Config/GameModel"), I = e("./Config/MonsterConfig"), E = e("./Config/ShopConfig"), D = e("./Config/SkillConfig"), R = e("./Config/WeaponConfig"), L = e("./UI/BoxUI2"), B = e("./UI/HallUI"), U = e("./UI/LevelUI"), T = e("./UI/NoticeUI"), x = e("./UI/BattleResultUI"), V = e("./UI/BattleUI"), A = e("./Battle/LevelContext"), N = e("./Messaging/MessageBroadcastReceiver"), G = e("./Config/GiftConfig"), H = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
n = t;
Object.defineProperty(t.prototype, "languagePath", {
get: function() {
return f.default.Language == w.LanguageType.ZH ? "" : "Languages/";
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "storageVersion", {
get: function() {
return 1010;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnLoadedCompleted = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function() {
y.default.MaxLevelTime = 3600;
this.InitPhysics();
O.default.Instance.CheckIsGetRewardStatus();
n.CheckAsset1(5);
n.CheckAsset2(5);
if (C.default.isInBlackList) {
h.default.ShowConfirm("提示", "检测到此账号异常，禁止进入游戏", function() {
C.default.exitGame();
});
return [ 2 ];
}
c.default.instance.enableMusic = F.default.Instance.enableMusic;
c.default.instance.enableEffects = F.default.Instance.enableAudioEffect;
c.default.instance.PlayMusic("bg");
p.default.extraParamDatas = [ new Q() ];
C.default.isInWhiteList && p.default.extraParamDatas.push(new W());
P.default.isDebug && !C.default.isInWhiteList && (e = p.default.extraParamDatas).push.apply(e, [ new q(), new z(), new X(), new J(), new K(), new j(), new Z(), new Y(), new $() ]);
this.ShowAntiAddiction();
if (C.default.platformType == M.PlatformType.WeXin) {
v.default.ReportGameStart();
g.default.ReportGameStart();
S.default.PostReport();
}
_.default.RepeatRun(60, -1, function() {
N.BroadcastMessage(null, "OnlineMinute", 1);
});
return [ 2 ];
});
});
};
t.prototype.PostInitialize = function(e) {
var t = this;
P.default.Get("showPrivacy", !1) && (f.default.Language == w.LanguageType.EN ? o.default.isShow : r.default.isShow) ? f.default.Language == w.LanguageType.EN ? d.default.ShowView(o.default, !1, function() {
t.ShowLogin(e);
}) : d.default.ShowView(r.default, !1, function() {
t.ShowLogin(e);
}) : this.ShowLogin(e);
};
t.prototype.ShowLogin = function(e) {
C.default.platformType == M.PlatformType.Android_Yayawan || C.default.platformType == M.PlatformType.Android_DouyinSNS || C.default.platformType == M.PlatformType.Android_GooglePlay && !C.default.isAutoLogin ? d.default.ShowView(i.default, e) : e && e();
};
t.prototype.ShowAntiAddiction = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
e = P.default.Get("showAntiAddiction", !1);
t = null;
return e ? [ 4, m.default.Auth() ] : [ 3, 2 ];

case 1:
t = n.sent();
n.label = 2;

case 2:
if (t && !t.canPlayGame) return [ 2 ];
d.default.HideView(m.default);
this.EnterGame();
return [ 2 ];
}
});
});
};
t.CheckAsset1 = function(e) {
C.default.QueryPayAsset(E.ShopItemName[E.ShopItemType.ADCard], function(e) {
e && (G.freeAd.boolValue = 0 != e.validTime || G.freeAd.boolValue);
}, function() {
e > 0 && _.default.DelayRun(3 * (5 - e + 1), function() {
n.CheckAsset1(e - 1);
});
});
};
t.CheckAsset2 = function(e) {
C.default.QueryPayAsset(E.ShopItemName[E.ShopItemType.AdPack], function(e) {
e && (G.freeAd.boolValue = 0 != e.validTime || G.freeAd.boolValue);
}, function() {
e > 0 && _.default.DelayRun(3 * (5 - e + 1), function() {
n.CheckAsset2(e - 1);
});
});
};
t.prototype.EnterGame = function() {
var e = this;
F.default.Instance.battleCnt <= 0 && (F.default.Instance.enableAutoAtk = P.default.Get("defaultAutoAtk", !0));
F.default.Instance.battleCnt > 0 || !P.default.Get("NewUserBattleFirst", !1) ? d.default.ShowView(B.default).then(function() {
C.default.platformType != M.PlatformType.IOS && e.CheckVersion();
e.CheckOfflineOrComeBack();
}) : d.default.ShowView(B.default).then(function() {
U.default.EnterBattle(F.default.Instance.heroList[0], F.default.Instance.weaponList[0], F.default.Instance.levelList[0].proto, !1);
});
};
t.prototype.CheckVersion = function() {
var e = k.default.ParseJsonText(C.default.GetLocalStorage("LocalVersion"));
if (e) {
if (e.version != P.default.version) {
T.default.Show();
C.default.SetLocalStorage("LocalVersion", k.default.ToJsonText({
version: P.default.version
}));
}
} else C.default.SetLocalStorage("LocalVersion", k.default.ToJsonText({
version: P.default.version
}));
};
t.prototype.CheckOfflineOrComeBack = function() {
F.default.Instance.lastGameTime;
};
t.prototype.InitPhysics = function() {
cc.Intersection.circleCircle = function(e, t) {
return cc.Vec2.squaredDistance(e.position, t.position) < (e.radius + t.radius) * (e.radius + t.radius);
};
var e = cc.ParticleSystem.prototype.lateUpdate;
e && (cc.ParticleSystem.prototype.lateUpdate = function(t) {
e.call(this, t * (1 == this.ignoreTimeScale ? 1 : s.MyComponent.TimeScale));
});
var t = cc.ParticleSystem.prototype.update;
t && (cc.ParticleSystem.prototype.update = function(e) {
t.call(this, e * (1 == this.ignoreTimeScale ? 1 : s.MyComponent.TimeScale));
});
var n = cc.ActionManager.prototype.update;
cc.ActionManager.prototype.update = function(e) {
n.call(this, e * s.MyComponent.TimeScale);
};
var o = cc.AnimationState, r = o.prototype.update;
o.prototype.update = function(e) {
r.call(this, e * (1 == this.ignoreTimeScale ? 1 : s.MyComponent.TimeScale));
};
var i = cc.MotionStreak.prototype.lateUpdate;
i && (cc.MotionStreak.prototype.lateUpdate = function(e) {
0 == this.updateCnt ? e = this.fadeTime : e *= 1 == this.ignoreTimeScale ? 1 : s.MyComponent.TimeScale;
this.updateCnt++;
i.call(this, e);
});
var a = cc.MotionStreak.prototype.reset;
a && (cc.MotionStreak.prototype.reset = function() {
a.call(this);
this.updateCnt = 0;
this.node.convertToWorldSpaceAR(cc.Vec2.ZERO, this._lastWPos);
});
};
var n;
return n = __decorate([ u.RegisterSetupConfig() ], t);
}(u.default);
n.default = H;
var W = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "福利";
return t;
}
Object.defineProperty(t.prototype, "visible", {
get: function() {
return !0;
},
enumerable: !1,
configurable: !0
});
t.prototype.getValue = function() {
return "福利礼包";
};
t.prototype.setValue = function() {
if (!F.default.Instance.hasWLGetFuli) {
F.default.Instance.hasWLGetFuli = !0;
F.default.Instance.AddDiamond(3e4, "白名单");
F.default.Instance.coin.intValue = P.default.Get("WhiteListCoin", 2e5);
for (var e = 0; e < F.default.Instance.weaponList.length; e++) F.default.Instance.weaponList[e].piece.intValue += 175;
for (e = 0; e < R.WeaponType.Count; e++) F.default.Instance.AddWeaponBlueprintNum(e, 650, "白名单");
}
F.default.Instance.fateCoinCnt.intValue = 10;
new J().setValue(0);
};
return t;
}(p.SingleParamData), j = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "无敌";
return t;
}
t.prototype.getValue = function() {
return "无敌";
};
t.prototype.setValue = function() {
A.LevelContext.Instance.mainPlayer.wuDiLeftTime = Number.MAX_SAFE_INTEGER;
};
return t;
}(p.SingleParamData), q = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "加金币";
return t;
}
t.prototype.getValue = function() {
return "加金币";
};
t.prototype.setValue = function() {
F.default.Instance.coin.intValue += 1e5;
F.default.Instance.fateCoinCnt.intValue += 100;
};
return t;
}(p.SingleParamData), z = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "加图纸";
return t;
}
t.prototype.getValue = function() {
return "加图纸";
};
t.prototype.setValue = function() {
for (var e = 0; e < R.WeaponType.Count; e++) F.default.Instance.AddWeaponBlueprintNum(e, 999, "测试加图纸");
F.default.Instance.equipmentBlueprintCount.intValue += 999;
};
return t;
}(p.SingleParamData), X = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "加碎片";
return t;
}
t.prototype.getValue = function() {
return "加碎片";
};
t.prototype.setValue = function() {
for (var e = 0; e < F.default.Instance.weaponList.length; e++) F.default.Instance.weaponList[e].piece.intValue += 999;
for (e = 0; e < F.default.Instance.equipmentList.length; e++) F.default.Instance.equipmentList[e].piece.intValue += 999;
};
return t;
}(p.SingleParamData), Z = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "升10级";
return t;
}
t.prototype.getValue = function() {
return "升10级";
};
t.prototype.setValue = function() {
if (A.LevelContext.Instance) {
for (var e = A.LevelContext.Instance.mainPlayer, t = 0, n = 0; n < 10; n++) t += e.heroData.proto.GetLevelExp(e.level + n + 1);
e.AddExp(t);
}
};
return t;
}(p.SingleParamData), K = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "一键强化";
return t;
}
t.prototype.getValue = function() {
return "一键强化";
};
t.prototype.setValue = function() {
for (var e = 0; e < F.default.Instance.talentList.length; e++) F.default.Instance.talentList[e].lv = 5;
};
return t;
}(p.SingleParamData), Y = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "升50级";
return t;
}
t.prototype.getValue = function() {
return "升50级";
};
t.prototype.setValue = function() {
if (A.LevelContext.Instance) {
for (var e = A.LevelContext.Instance.mainPlayer, t = 0, n = 0; n < 50; n++) t += e.heroData.proto.GetLevelExp(e.level + n + 1);
e.AddExp(t);
}
};
return t;
}(p.SingleParamData), J = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "全解锁";
return t;
}
t.prototype.getValue = function() {
return "全解锁";
};
t.prototype.setValue = function() {
F.default.Instance.heroList.forEach(function(e) {
e.unlock.boolValue = !0;
e.visible = !0;
});
F.default.Instance.weaponList.forEach(function(e) {
e.unlock.boolValue = !0;
e.visible = !0;
});
F.default.Instance.equipmentList.forEach(function(e) {
e.unlock.boolValue = !0;
});
F.default.Instance.skillGroupList.forEach(function(e) {
e.unlock.boolValue = !0;
});
F.default.Instance.battleItemList.forEach(function(e) {
e.unlock = !0;
});
a.default.GetModel(O.default).archivementList.forEach(function(e) {
e.unlock = !0;
});
F.default.Instance.levelList.forEach(function(e) {
e.unlock = !0;
e.isBossKilled = !0;
});
d.default.GetView(B.default).OnSetParams();
F.default.Save();
};
return t;
}(p.SingleParamData), Q = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Edit;
t.desc = "游戏速度";
t.lastAddOn = 0;
return t;
}
t.prototype.getValue = function() {
return "" + (this.lastAddOn + 1);
};
t.prototype.setValue = function(e) {
A.LevelContext.Instance.timeScale -= this.lastAddOn;
A.LevelContext.Instance.timeScale += parseFloat(e) - 1;
this.lastAddOn = parseFloat(e) - 1;
};
return t;
}(p.SingleParamData), $ = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = p.InputType.Button;
t.desc = "赢当前关";
return t;
}
t.prototype.getValue = function() {
return "赢当前关";
};
t.prototype.setValue = function() {
d.default.ShowView(x.default, !0);
};
return t;
}(p.SingleParamData);
cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, function(e) {
if (C.default.platformType == M.PlatformType.Empty) switch (e.keyCode) {
case cc.macro.KEY.l:
for (var t = A.LevelContext.Instance.mainPlayer, n = 0, o = 0; o < 1; o++) n += t.heroData.proto.GetLevelExp(t.level + o + 1);
t.AddExp(n);
break;

case cc.macro.KEY.r:
t = A.LevelContext.Instance.mainPlayer;
d.default.ShowView(L.default);
break;

case cc.macro.KEY.Delete:
for (o = 0; o < A.LevelContext.Instance.enemies.length; o++) {
var r = A.LevelContext.Instance.enemies[o];
r.proto.type == I.MonsterType.Normal && r.Damage(r.health, 0);
}
break;

case cc.macro.KEY.space:
d.default.GetView(V.default).OnDashClick();
break;

case cc.macro.KEY.y:
l.default.Default.DumpCache();
break;

case cc.macro.KEY.q:
for (o = 0; o < b.Config.BossTestKills.skills.length; o++) {
var i = b.Config.BossTestKills.skills[o];
A.LevelContext.Instance.mainPlayer.AddSkill(i);
}
for (o = 0; o < b.Config.BossTestKills.talents.length; o++) {
var a = b.Config.BossTestKills.talents[o];
A.LevelContext.Instance.mainPlayer.AddTalentId(a.id, a.lv);
}
break;

case cc.macro.KEY.b:
A.LevelContext.Instance.mainPlayer.OpenBook();
break;

case cc.macro.KEY.v:
A.LevelContext.Instance.mainPlayer.AddFeatureEx(D.SkillFeature.AutoFire, 1);
break;

case cc.macro.KEY.f:
for (o = 0; o < 100; o++) A.LevelContext.Instance.mainPlayer.AddExp(5);
}
});
cc._RF.pop();
}, {
"../../Privacy/Script/PrivacyEnUI": void 0,
"../../Privacy/Script/PrivacyUI": void 0,
"../../Privacy/Script/StartGameUI": void 0,
"../Framework/Core/Models/ModelManager": void 0,
"../Framework/Core/Resource/AssetManager": void 0,
"../Framework/Core/Resource/MyComponent": void 0,
"../Framework/Core/Resource/SoundsManager": void 0,
"../Framework/Core/Setup/SetupConfig": void 0,
"../Framework/Core/UI/DebugUI": void 0,
"../Framework/Core/Views/ViewUIManager": void 0,
"../Framework/Localize/LocalizeManager": void 0,
"../Framework/UI/MessageBoxUI": void 0,
"../Service/AccountManager": void 0,
"../Service/Analys": void 0,
"../Service/Extension/Bilibili/WxTrackReport": void 0,
"../Service/Extension/ClueOceanEngine/WxClueReport": void 0,
"../Service/Extension/ZhiShangWx/ZhiShangApi": void 0,
"../Service/IPlatformProxy": void 0,
"../Service/PlatformService": void 0,
"../Service/RemoteSetting": void 0,
"../Service/Timer": void 0,
"../Service/kl": void 0,
"./AntiAddiction/AntiAddictionUI": "AntiAddictionUI",
"./Battle/LevelContext": "LevelContext",
"./Config/ArchivementModel": "ArchivementModel",
"./Config/Config": "Config",
"./Config/GameModel": "GameModel",
"./Config/GiftConfig": "GiftConfig",
"./Config/MonsterConfig": "MonsterConfig",
"./Config/ShopConfig": "ShopConfig",
"./Config/SkillConfig": "SkillConfig",
"./Config/WeaponConfig": "WeaponConfig",
"./Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./UI/BattleResultUI": "BattleResultUI",
"./UI/BattleUI": "BattleUI",
"./UI/BoxUI2": "BoxUI2",
"./UI/HallUI": "HallUI",
"./UI/LevelUI": "LevelUI",
"./UI/NoticeUI": "NoticeUI"
} ],
ManYan: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fe8a6gHHLpMpaZw72h2X5QV", "ManYan");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../Buff/Buff_Burning"), i = e("../../Buff/Buff_Freeze"), a = e("../../LevelContext"), l = e("./BaseTalentSkill"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.radius = 150;
t.triggerTalentPercent = 5;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnKillEnemy = function(e) {
var t = Math.random() < this.triggerTalentPercent * this.context.talentData.lv * .01, n = e.HasBuff(r.Buff_Burning), o = e.HasBuff(i.Buff_Freeze);
if (t && (n || o)) for (var l = a.LevelContext.Instance.GetEnemysInRadius(e, this.radius), s = 0; s < l.length; s++) if (l[s] != e) {
n && e.AddBuff(n.prefab, n.time, this.context);
o && e.AddBuff(o.prefab, o.time, this.context);
}
};
__decorate([ u() ], t.prototype, "radius", void 0);
__decorate([ u() ], t.prototype, "triggerTalentPercent", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../Buff/Buff_Burning": "Buff_Burning",
"../../Buff/Buff_Freeze": "Buff_Freeze",
"../../LevelContext": "LevelContext",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
MapItem: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b1eb4plE3lEYaFQNKzlI44Q", "MapItem");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.MapItem = void 0;
var o = e("./CameraWorldRect"), r = e("./CollisionItem"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.enableCull = !0;
t.localRect = cc.rect();
t.srcOpacity = 0;
t.lastPos = cc.v2(Number.MIN_SAFE_INTEGER);
t.outCameraTotalTime = 0;
t.inCameraTotalTime = 0;
t.outCameraTime = 0;
t.inCameraTime = 0;
t.curInCamera = !0;
t.v1 = cc.v2();
return t;
}
Object.defineProperty(t.prototype, "isInCamera", {
get: function() {
return this.curInCamera;
},
enumerable: !1,
configurable: !0
});
t.prototype.CalcLocalRect = function() {
var e = this.node.width * this.node.scaleX, t = this.node.height * this.node.scaleY, n = .5 * e, o = .5 * t, r = (.5 - this.node.anchorX) * e + this.node.x, i = (.5 - this.node.anchorY) * t + this.node.y;
this.localRect.xMin = r - n;
this.localRect.yMin = i - o;
this.localRect.xMax = this.localRect.xMin + e;
this.localRect.yMax = this.localRect.yMin + t;
};
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
this.srcOpacity = this.node.opacity;
this.CalcLocalRect();
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.outCameraTotalTime = 0;
this.inCameraTotalTime = 0;
this.outCameraTime = 0;
this.inCameraTime = 0;
this.curInCamera = !0;
this.node.opacity = this.srcOpacity;
};
t.prototype.lateUpdate = function(t) {
if (this.isActive) {
var n = o.default.instance.IsVisible(this.localRect);
if (n != this.curInCamera) {
this.outCameraTime = 0;
this.inCameraTime = 0;
}
if (!this.curInCamera && !n) {
this.outCameraTotalTime += t;
this.outCameraTime += t;
}
if (this.curInCamera && n) {
this.inCameraTotalTime += t;
this.inCameraTime += t;
}
this.curInCamera = n;
var r = this.isInCamera ? this.srcOpacity : 0;
this.node.opacity != r && this.enableCull && (this.node.opacity = r);
if (Math.abs(this.node.x - this.lastPos.x) >= 2 || Math.abs(this.node.y - this.lastPos.y) >= 2) {
this.CalcLocalRect();
this.node.getPosition(this.lastPos);
}
e.prototype.lateUpdate.call(this, t);
}
};
t.lastFrame = 0;
t.cullNumber = 0;
__decorate([ l() ], t.prototype, "enableCull", void 0);
return __decorate([ a ], t);
}(r.CollisionItem);
n.MapItem = s;
cc._RF.pop();
}, {
"./CameraWorldRect": "CameraWorldRect",
"./CollisionItem": "CollisionItem"
} ],
MaxSpriteSize: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2dcd7y1+ppD0K8+/fTdAx4w", "MaxSpriteSize");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, r = o.ccclass, i = o.property, a = o.requireComponent, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.minWidth = 100;
t.minHeight = 100;
t.sprite = null;
t.oldFrame = null;
return t;
}
t.prototype.onLoad = function() {
this.sprite = this.getComponent(cc.Sprite);
};
t.prototype.update = function() {
if (this.oldFrame != this.sprite.spriteFrame) {
this.oldFrame = this.sprite.spriteFrame;
this.ResetSize();
}
};
t.prototype.ResetSize = function() {
if (this.sprite.spriteFrame) {
var e, t = this.sprite.spriteFrame.getRect();
e = this.minWidth > 0 ? t.width < this.minWidth ? cc.size(this.minWidth, t.height / t.width * this.minWidth) : t.size : t.height < this.minHeight ? cc.size(t.width / t.height * this.minHeight, this.minHeight) : t.size;
this.node.setContentSize(e);
}
};
__decorate([ i() ], t.prototype, "minWidth", void 0);
__decorate([ i() ], t.prototype, "minHeight", void 0);
return __decorate([ r, a(cc.Sprite) ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
MessageBroadcastReceiver: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "24adcIemPJFbL00NdElC+30", "MessageBroadcastReceiver");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BroadcastReceiverComponent = n.RemoveBroadcastReceiver = n.AddBroadcastReceiver = n.BroadcastMessage = n.SendMessage = n.SendMessageEx = n.BroadcastHandler = void 0;
var o = e("./TypeHelp"), r = function() {
this.parents = [];
this.prototype = null;
this.funcNames = [];
}, i = {};
function a(e) {
var t = i[e.constructor];
if (t) return t;
for (var n in i) {
var r = i[n];
if (o.isSubPrototype(e.constructor.prototype, r.prototype)) return r;
}
return null;
}
function l(e, t) {
var n = i[e.constructor];
if (!n) {
(n = new r()).prototype = e.constructor.prototype;
i[e.constructor] = n;
}
n.funcNames.push(t);
}
var s = {};
function c(e, t, n) {
if (t) for (var o = 0; o < t.funcNames.length; o++) {
var r = t.funcNames[o], i = s[r];
if (!i) {
i = [];
s[r] = i;
}
if (i.length > 0) {
for (var a = !1, l = 0; l < i.length; l++) if (n <= i[l].__priority) {
i.splice(l, 0, e);
a = !0;
break;
}
a || i.push(e);
} else i.unshift(e);
}
}
function u(e, t) {
var n = a(e);
c(e, n, t);
if (n) for (var o = 0; o < n.parents.length; o++) c(e, n.parents[o], t); else console.warn("AddReceiver failed!类型上找不到存在的Handler！", e);
}
function p(e, t) {
if (t) for (var n = 0; n < t.funcNames.length; n++) {
var o = t.funcNames[n], r = s[o];
if (r) {
var i = r.indexOf(e);
i < 0 || r.splice(i, 1);
}
}
}
function d(e) {
var t = a(e);
if (t) {
p(e, t);
for (var n = 0; n < t.parents.length; n++) p(e, t.parents[n]);
}
}
n.BroadcastHandler = function(e, t) {
l(e, t);
};
function f(e, t, n, o, r) {
for (var i = [], a = 5; a < arguments.length; a++) i[a - 5] = arguments[a];
if (null != t) {
if (!t.__has_type) {
t.__is_cc_component = t instanceof cc.Component;
t.__is_cc_node = t instanceof cc.Node;
t.__is_cc_object = t instanceof cc.Object;
}
var l = t[r];
if (t.__is_cc_component) {
var s = t;
t.isValid && (s.enabled && s.node.activeInHierarchy || o) && l && l.call.apply(l, __spreadArrays([ t ], i));
} else if (t.__is_cc_node) {
var c = t;
if (!c.activeInHierarchy && !o || !c.isValid) return;
for (var u = c.getComponents(cc.Component), p = 0; p < u.length; p++) {
l = (s = u[p])[r];
s.enabled && l && l.call.apply(l, __spreadArrays([ s ], i));
}
if (n) for (p = 0; p < c.children.length; p++) {
var d = c.children[p];
f.apply(void 0, __spreadArrays([ e, d, n, o, r ], i));
}
} else t.__is_cc_object ? t.isValid && l && l.call.apply(l, __spreadArrays([ t ], i)) : l && l.call.apply(l, __spreadArrays([ t ], i));
} else console.warn("sendMessage " + r + " failed! target is null");
}
n.SendMessageEx = f;
function h(e, t, n, o) {
for (var r = [], i = 4; i < arguments.length; i++) r[i - 4] = arguments[i];
f.apply(void 0, __spreadArrays([ e, t, n, !1, o ], r));
}
n.SendMessage = h;
function m(e, t) {
for (var n = [], o = 2; o < arguments.length; o++) n[o - 2] = arguments[o];
var r = s[t];
if (r) for (var i = r.length - 1; i >= 0; i--) {
var a = r[i];
h.apply(void 0, __spreadArrays([ e, a, !1, t ], n));
}
}
n.BroadcastMessage = m;
function w(e, t) {
if (e) {
e.__is_cc_component = e instanceof cc.Component;
e.__is_cc_node = e instanceof cc.Node;
e.__is_cc_object = e instanceof cc.Object;
e.__has_type = !0;
e.__priority = null != t ? t : 0;
u(e, e.__priority);
}
}
n.AddBroadcastReceiver = w;
function y(e) {
d(e);
}
n.RemoveBroadcastReceiver = y;
var g = function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
w(this);
};
t.prototype.onDestroy = function() {
y(this);
};
return t;
}(cc.Component);
n.BroadcastReceiverComponent = g;
window.SendMessage = h;
window.SendMessageEx = f;
window.BroadcastMessage = m;
(function() {
for (var e in i) {
var t = i[e];
for (var n in i) {
var r = i[n];
t != r && o.isSubPrototype(t.prototype, r.prototype) && t.parents.indexOf(r) < 0 && t.parents.push(r);
}
}
})();
cc._RF.pop();
}, {
"./TypeHelp": "TypeHelp"
} ],
MessageExtension: [ function(e, t) {
"use strict";
cc._RF.push(t, "20ff9NWetpH/45aQorXnFtI", "MessageExtension");
cc.Object.prototype.sendMessage = function(e, t, n) {
for (var o = [], r = 3; r < arguments.length; r++) o[r - 3] = arguments[r];
window.SendMessage.apply(window, __spreadArrays([ this, e, t, n ], o));
};
cc.Object.prototype.sendMessageEx = function(e, t, n, o) {
for (var r = [], i = 4; i < arguments.length; i++) r[i - 4] = arguments[i];
window.SendMessageEx.apply(window, __spreadArrays([ this, e, t, n, o ], r));
};
cc.Object.prototype.broadcastMessage = function(e) {
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
window.BroadcastMessage.apply(window, __spreadArrays([ this, e ], t));
};
cc._RF.pop();
}, {} ],
MiShu: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "98c2eQXrGBDkYTVEXavgyZ8", "MiShu");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../Player"), i = e("./BaseTalentSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.buffBurning = null;
t.buffFreeze = null;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnHitEntity = function(e) {
var t = e.target;
if (e.context && e.context.owner instanceof r.Player && e.context.isBulletSkill && Math.random() < .01 * this.context.talentData.lv) {
this.context.buff = Math.random() < .8 ? this.buffBurning : this.buffFreeze;
this.context.TryBuff(t);
}
};
__decorate([ s(cc.Prefab) ], t.prototype, "buffBurning", void 0);
__decorate([ s(cc.Prefab) ], t.prototype, "buffFreeze", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../Player": "Player",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
MicroAnimation: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "15774FUwiBN7rCQSSW4ECMY", "MicroAnimation");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.EaseType = n.TweenType = n.MicroAnimationType = void 0;
var o, r, i = e("../../Framework/Core/Resource/MyComponent");
(function(e) {
e[e.Jump = 0] = "Jump";
e[e.Snake = 1] = "Snake";
e[e.ScaleTo = 2] = "ScaleTo";
e[e.ScaleBetween = 3] = "ScaleBetween";
e[e.Rotation = 4] = "Rotation";
e[e.RotationX = 5] = "RotationX";
e[e.RotationY = 6] = "RotationY";
e[e.RotationZ = 7] = "RotationZ";
e[e.FadeIn = 8] = "FadeIn";
e[e.FadeOut = 9] = "FadeOut";
e[e.FadeTo = 10] = "FadeTo";
e[e.FadeInOut = 11] = "FadeInOut";
e[e.Heartbeat = 12] = "Heartbeat";
e[e.Blink = 13] = "Blink";
e[e.SpiralTurn = 14] = "SpiralTurn";
e[e.BigToSmall = 15] = "BigToSmall";
e[e.SkewPeristalsis = 16] = "SkewPeristalsis";
e[e.Float = 17] = "Float";
e[e.RotationSnake = 18] = "RotationSnake";
e[e.MoveTo = 19] = "MoveTo";
e[e.MoveToX = 20] = "MoveToX";
e[e.MoveToY = 21] = "MoveToY";
})(o = n.MicroAnimationType || (n.MicroAnimationType = {}));
(function(e) {
e[e.By = 0] = "By";
e[e.To = 1] = "To";
})(n.TweenType || (n.TweenType = {}));
(function(e) {
e[e.None = 0] = "None";
e[e.SineIn = 1] = "SineIn";
e[e.SineOut = 2] = "SineOut";
e[e.SineInOut = 3] = "SineInOut";
e[e.QuadIn = 4] = "QuadIn";
e[e.QuadOut = 5] = "QuadOut";
e[e.QuadInOut = 6] = "QuadInOut";
e[e.CubicIn = 7] = "CubicIn";
e[e.CubicOut = 8] = "CubicOut";
e[e.CubicInOut = 9] = "CubicInOut";
e[e.QuartIn = 10] = "QuartIn";
e[e.QuartOut = 11] = "QuartOut";
e[e.QuartInOut = 12] = "QuartInOut";
e[e.QuintIn = 13] = "QuintIn";
e[e.QuintOut = 14] = "QuintOut";
e[e.QuintInOut = 15] = "QuintInOut";
e[e.ExpoIn = 16] = "ExpoIn";
e[e.ExpoOut = 17] = "ExpoOut";
e[e.ExpoInOut = 18] = "ExpoInOut";
e[e.CircIn = 19] = "CircIn";
e[e.CircOut = 20] = "CircOut";
e[e.CircInOut = 21] = "CircInOut";
e[e.BackIn = 22] = "BackIn";
e[e.BackOut = 23] = "BackOut";
e[e.BackInOut = 24] = "BackInOut";
e[e.ElasticIn = 25] = "ElasticIn";
e[e.ElasticOut = 26] = "ElasticOut";
e[e.ElasticInOut = 27] = "ElasticInOut";
e[e.BounceIn = 28] = "BounceIn";
e[e.BounceOut = 29] = "BounceOut";
e[e.BounceInOut = 30] = "BounceInOut";
})(r = n.EaseType || (n.EaseType = {}));
var a = cc._decorator, l = a.ccclass, s = a.property, c = a.menu, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.type = o.Jump;
t.easeType = r.None;
t.delayTime = 0;
t.duration = 1;
t.params = [];
t.repeat = !1;
t.repeatInterval = 0;
t.recover = !1;
t.ignoreTimeScale = !1;
t.tween = null;
t.actionFuncs = new Map([ [ o.Jump, t.Jump ], [ o.Snake, t.Sanke ], [ o.MoveTo, t.MoveTo ], [ o.MoveToX, t.MoveToX ], [ o.MoveToY, t.MoveToY ], [ o.ScaleTo, t.ScaleTo ], [ o.ScaleBetween, t.ScaleBetween ], [ o.Rotation, t.Rotation ], [ o.RotationSnake, t.RotationSnake ], [ o.RotationX, t.RotationX ], [ o.RotationY, t.RotationY ], [ o.RotationZ, t.RotationZ ], [ o.FadeIn, t.FadeIn ], [ o.FadeOut, t.FadeOut ], [ o.FadeTo, t.FadeTo ], [ o.FadeInOut, t.FadeInOut ], [ o.Heartbeat, t.Heartbeat ], [ o.Blink, t.Blink ], [ o.SpiralTurn, t.SpiralTurn ], [ o.SkewPeristalsis, t.SkewPeristalsis ], [ o.Float, t.FloatTo ], [ o.BigToSmall, t.BigToSmall ] ]);
t.isPause = !0;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
var t = this.actionFuncs.get(this.type).apply(void 0, __spreadArrays([ this.node, this.duration ], this.params));
this.easeType != r.None && (t = t.easing(n.easeFuncs.get(this.easeType)()));
if (this.repeat) {
this.repeatInterval > 0 && (t = cc.sequence(cc.delayTime(this.repeatInterval), t));
t = t.repeatForever();
}
this.tween = cc.tween(this.node).then(t);
this.delayTime > 0 && (this.tween = cc.tween(this.node).delay(this.delayTime).then(this.tween));
this.tween.start();
this.ignoreTimeScale && (this.tween._finalAction.ignoreTimeScale = !0);
this.isPause = !1;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
this.node.stopAllActions();
};
t.prototype.update = function() {
var e = 0 == i.MyComponent.TimeScale;
if (e != this.isPause) {
this.isPause = e;
e ? this.tween.stop() : this.tween.start();
}
};
t.prototype.Jump = function(e, t, n) {
return cc.sequence(cc.jumpBy(.5 * t, 0, 0, n, 1), cc.jumpBy(.3 * t, 0, 0, .5 * n, 1), cc.jumpBy(.2 * t, 0, 0, .25 * n, 1));
};
t.prototype.Sanke = function(e, t, n) {
return cc.repeat(cc.sequence(cc.moveBy(.25 * t, -n, 0), cc.moveBy(.25 * t, 2 * n, 0), cc.moveBy(.25 * t, .5 * -n, 0), cc.moveBy(.25 * t, n, 0), cc.moveBy(.25 * t, .5 * -n, 0)), 4);
};
t.prototype.Rotation = function(e, t, n) {
return cc.rotateBy(t, n);
};
t.prototype.RotationSnake = function(e, t, n, o, r) {
void 0 === r && (r = 4);
var i = t / r / 5;
return cc.sequence(cc.repeat(cc.sequence(cc.rotateTo(i, n), cc.rotateTo(i, -n), cc.rotateTo(i, o), cc.rotateTo(i, -o)), r), cc.rotateTo(i, 0));
};
t.prototype.RotationX = function(e, t, n) {
return cc.rotate3DBy(t, n, 0, 0);
};
t.prototype.RotationY = function(e, t, n) {
return cc.rotate3DBy(t, 0, n, 0);
};
t.prototype.RotationZ = function(e, t, n) {
return cc.rotate3DBy(t, 0, 0, n);
};
t.prototype.FadeIn = function(e, t, n) {
void 0 === n && (n = 0);
return cc.sequence(cc.callFunc(function() {
return e.opacity = n;
}), cc.fadeIn(t));
};
t.prototype.FadeOut = function(e, t, n) {
void 0 === n && (n = 255);
return cc.sequence(cc.callFunc(function() {
return e.opacity = n;
}), cc.fadeOut(t));
};
t.prototype.FadeTo = function(e, t, n, o) {
o = o || e.opacity;
return cc.sequence(cc.callFunc(function() {
return e.opacity = o;
}), cc.fadeTo(t, n));
};
t.prototype.FadeInOut = function(e, t, n, o) {
return cc.sequence(cc.fadeTo(t, o), cc.fadeTo(t, n));
};
t.prototype.MoveTo = function(e, t, n, o) {
null == o && (o = e.getPosition());
return cc.sequence(cc.place(o), cc.moveTo(t, n));
};
t.prototype.MoveToX = function(e, t, n, o) {
null == o && (o = e.x);
var r = e.y;
return cc.sequence(cc.place(o, r), cc.moveTo(t, n, r));
};
t.prototype.MoveToY = function(e, t, n, o) {
null == o && (o = e.y);
var r = e.x;
return cc.sequence(cc.place(r, o), cc.moveTo(t, r, n));
};
t.prototype.ScaleTo = function(e, t, n, o) {
o && (e.scale = o);
return cc.scaleTo(t, n);
};
t.prototype.ScaleBetween = function(e, t, n, o) {
return cc.sequence(cc.scaleTo(.5 * t, n), cc.scaleTo(.5 * t, o));
};
t.prototype.Heartbeat = function(e, t, n, o) {
void 0 === n && (n = 1.2);
void 0 === o && (o = 1);
return cc.sequence(cc.scaleTo(.5 * t, n, n).easing(cc.easeCubicActionIn()), cc.scaleTo(.5 * t, o, o).easing(cc.easeCubicActionOut()));
};
t.prototype.Blink = function(e, t, n) {
return cc.sequence(cc.fadeOut(.3 * t), cc.blink(.4 * t, n), cc.fadeIn(.3 * t));
};
t.prototype.SpiralTurn = function(e, t, n) {
var o = e.scaleX, r = e.scaleY;
return cc.sequence(cc.callFunc(function() {
e.scaleX = .1;
e.scaleY = .1;
}), cc.spawn(cc.scaleTo(t, o, r), cc.rotateBy(t, 360 * n)));
};
t.prototype.SkewPeristalsis = function(e, t, n) {
return cc.sequence(cc.skewTo(.25 * t, n, n), cc.skewTo(.25 * t, 0, 0), cc.skewTo(.25 * t, n, n), cc.skewTo(.25 * t, 0, 0));
};
t.prototype.FloatTo = function(e, t, n) {
return cc.sequence(cc.moveTo(.5 * t, 0, n), cc.moveTo(.5 * t, 0, -n));
};
t.prototype.BigToSmall = function(e, t, n) {
var o = e.scaleX, r = e.scaleY;
return cc.sequence(cc.scaleTo(.1 * t, o + .6, r + .6), cc.delayTime(.1 * t), cc.blink(.4 * t, n).easing(cc.easeCircleActionIn()), cc.scaleTo(.2 * t, o - .3, r - .3), cc.scaleTo(.2 * t, o, r));
};
var n;
t.easeFuncs = new Map([ [ r.SineIn, cc.easeSineIn ], [ r.SineOut, cc.easeSineOut ], [ r.SineInOut, cc.easeSineInOut ], [ r.QuadIn, cc.easeQuadraticActionIn ], [ r.QuadOut, cc.easeQuadraticActionOut ], [ r.QuadInOut, cc.easeQuadraticActionInOut ], [ r.CubicIn, cc.easeCubicActionIn ], [ r.CubicOut, cc.easeCubicActionOut ], [ r.CubicInOut, cc.easeCubicActionInOut ], [ r.QuartIn, cc.easeQuarticActionIn ], [ r.QuartOut, cc.easeQuarticActionOut ], [ r.QuartInOut, cc.easeQuarticActionInOut ], [ r.QuintIn, cc.easeQuinticActionIn ], [ r.QuintOut, cc.easeQuinticActionOut ], [ r.QuintInOut, cc.easeQuinticActionInOut ], [ r.ExpoIn, cc.easeExponentialIn ], [ r.ExpoOut, cc.easeExponentialOut ], [ r.ExpoInOut, cc.easeExponentialInOut ], [ r.CircIn, cc.easeCircleActionIn ], [ r.CircOut, cc.easeCircleActionOut ], [ r.CircInOut, cc.easeCircleActionInOut ], [ r.BackIn, cc.easeBackIn ], [ r.BackOut, cc.easeBackOut ], [ r.BackInOut, cc.easeBackInOut ], [ r.ElasticIn, function() {
return cc.easeElasticIn(3);
} ], [ r.ElasticOut, function() {
return cc.easeElasticOut(3);
} ], [ r.ElasticInOut, function() {
return cc.easeElasticInOut(3);
} ], [ r.BounceIn, cc.easeBounceIn ], [ r.BounceOut, cc.easeBounceOut ], [ r.BounceInOut, cc.easeBounceInOut ] ]);
__decorate([ s({
type: cc.Enum(o)
}) ], t.prototype, "type", void 0);
__decorate([ s({
type: cc.Enum(r)
}) ], t.prototype, "easeType", void 0);
__decorate([ s() ], t.prototype, "delayTime", void 0);
__decorate([ s() ], t.prototype, "duration", void 0);
__decorate([ s({
type: cc.Float
}) ], t.prototype, "params", void 0);
__decorate([ s() ], t.prototype, "repeat", void 0);
__decorate([ s() ], t.prototype, "repeatInterval", void 0);
__decorate([ s() ], t.prototype, "recover", void 0);
__decorate([ s() ], t.prototype, "ignoreTimeScale", void 0);
return n = __decorate([ l, c("Framework/MicroAnimation") ], t);
}(i.MyComponent);
n.default = u;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0
} ],
MissionRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "356eeCMsJtCKIbJzwd1YabW", "MissionRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/ArchivementModel"), r = e("../Config/GameModel"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.cntLable = null;
t.timeCounter = 0;
return t;
}
n = t;
t.prototype.update = function(e) {
this.timeCounter -= e;
if (this.timeCounter <= 0) {
var t = n.redCnt;
this.node.opacity = t > 0 ? 255 : 0;
this.cntLable.string = t.toFixed(0);
this.timeCounter = 1;
}
};
Object.defineProperty(t, "redCnt", {
get: function() {
for (var e = 0, t = o.default.Instance, n = 0; n < t.archivementList.length; n++) (i = t.archivementList[n]).unlock && !i.isGetReward && e++;
if (r.default.Instance.GetLevel(3).unlock) for (n = 0; n < t.dailyMissionList.length; n++) {
var i;
(i = t.dailyMissionList[n]).unlock && !i.isGetReward && e++;
}
var a = t.activeValue.intValue / 100;
for (n = 0; n < t.activeBoxOpen.length; n++) 0 == t.activeBoxOpen[n] && a >= .2 * (n + 1) && e++;
return e;
},
enumerable: !1,
configurable: !0
});
var n;
__decorate([ l(cc.Label) ], t.prototype, "cntLable", void 0);
return n = __decorate([ a ], t);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {
"../Config/ArchivementModel": "ArchivementModel",
"../Config/GameModel": "GameModel"
} ],
MissionUI_Archivement: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3a49eLoYD1BSJe3tXjNTvtP", "MissionUI_Archivement");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/UI/ScrollViewUtility"), r = e("../Battle/Util"), i = e("../Config/ArchivementConfig"), a = e("../Config/ArchivementModel"), l = e("../Config/GameModel"), s = e("../Config/GiftConfig"), c = e("./RewardsUI"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.archivementList = [];
return t;
}
t.prototype.onEnable = function() {
this.content.UpdateViewCells();
this.UpdateList();
};
t.prototype.UpdateList = function() {
var e = this, t = a.default.Instance;
this.archivementList.length = 0;
for (var n = [], o = function(e) {
var o = t.archivementList[e];
if (!o.visible) return "continue";
if (o.proto.groupID < 0) r.archivementList.push(o); else {
var i = n.find(function(e) {
return e.proto.groupID == o.proto.groupID;
});
i ? !(o.proto.y < i.proto.y) || o.unlock && o.isGetReward ? i.unlock && i.isGetReward && (n[n.indexOf(i)] = o) : n[n.indexOf(i)] = o : n.push(o);
}
}, r = this, i = 0; i < t.archivementList.length; i++) o(i);
n.forEach(function(t) {
e.archivementList.push(t);
});
this.archivementList.sort(function(e, t) {
return (t.unlock ? t.isGetReward ? 1 : 3 : 2) - (e.unlock ? e.isGetReward ? 1 : 3 : 2);
});
this.content.InitCellDataList(this.archivementList, function(t, n, o) {
e.UpdateItem(n, o);
});
};
t.prototype.UpdateItem = function(e, t) {
t.data = e;
t.findChild("NameLabel").getComponent(cc.Label).string = e.proto.desc;
t.findChild("DescLabel").getComponent(cc.Label).string = e.proto.rewardDesc;
t.findChild("Toggle").getComponent(cc.Toggle).isChecked = e.unlock;
t.findChild("Button").active = e.unlock && !e.isGetReward;
var n = t.findChild("ProgressLabel").getComponent(cc.Label);
if (e.unlock) n.node.active = !1; else {
n.string = e.value + " / " + e.proto.y;
n.node.active = !0;
}
r.default.SetImage(e.proto.iconPath, t.findChild("Icon").getComponent(cc.Sprite));
};
t.prototype.OnRewardClick = function(e) {
var t = e.target.parent.data;
t.isGetReward = !0;
this.UpdateList();
var n = 0, o = 0;
switch (t.proto.unlockType) {
case i.UnlockType.Coin:
case i.UnlockType.Diamond:
n = t.proto.unlockId;
break;

case i.UnlockType.EquipmentPiece:
n = t.proto.unlockId;
o = l.default.Instance.GetEquipment(1).unlock.boolValue ? l.default.Instance.GetEquipment(3).unlock.boolValue ? 5 : 3 : 1;
break;

case i.UnlockType.EquipmentBluePrint:
n = t.proto.unlockId;
break;

case i.UnlockType.SkillGroup:
n = 1;
o = t.proto.unlockId;
}
c.default.ShowView("成就", [ new s.RewardProto(t.proto.unlockType, n, o) ]);
};
__decorate([ d(o.default) ], t.prototype, "content", void 0);
return __decorate([ p ], t);
}(cc.Component);
n.default = f;
cc._RF.pop();
}, {
"../../Framework/UI/ScrollViewUtility": void 0,
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/ArchivementModel": "ArchivementModel",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./RewardsUI": "RewardsUI"
} ],
MissionUI_DailyMission: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "62839BV9PJJGpJQNEF8rM7Y", "MissionUI_DailyMission");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/ViewUIManager"), r = e("../../Framework/UI/ScrollViewUtility"), i = e("../../Service/PlatformService"), a = e("../Battle/MicroAnimation"), l = e("../Battle/Util"), s = e("../Config/ArchivementConfig"), c = e("../Config/ArchivementModel"), u = e("../Config/ChestConfig"), p = e("../Config/Config"), d = e("../Config/DailyMissionConfig"), f = e("../Config/EquipmentConfig"), h = e("../Config/GameModel"), m = e("../Config/GiftConfig"), w = e("./CopyLevelUI"), y = e("./LevelUI"), g = e("./MissionUI"), v = e("./RewardsUI"), S = e("./ShopUI"), M = e("./TalentUI"), k = e("./WeaponUI"), C = cc._decorator, P = C.ccclass, _ = C.property, O = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.progressBar = null;
t.boxItems = null;
t.dailyMissionList = [];
return t;
}
Object.defineProperty(t.prototype, "systemActive", {
get: function() {
return h.default.Instance.GetLevel(3).unlock;
},
enumerable: !1,
configurable: !0
});
t.prototype.onEnable = function() {
this.content.UpdateViewCells();
var e = c.default.Instance;
this.dailyMissionList.length = 0;
for (var t = 0; t < e.dailyMissionList.length; t++) {
var n = e.dailyMissionList[t];
n.visible && (n.proto.type != d.DailyMissionType.ChargeMoney || i.default.payable) && this.dailyMissionList.push(n);
}
this.UpdateList();
this.UpdateProgressBar();
};
t.prototype.UpdateProgressBar = function() {
var e = c.default.Instance, t = c.default.Instance.activeValue.intValue / 100;
this.progressBar.progress = t;
for (var n = 0, o = 0, r = 0; r < h.default.Instance.equipmentList.length; r++) {
var i = h.default.Instance.equipmentList[r];
!i.unlock.boolValue && i.piece.intValue < i.proto.unlockPieces && (i.proto.type == f.EquipmentType.Mask ? u.ChestConfig.shopMaskParam.weights[i.proto.quality] > 0 && n++ : u.ChestConfig.shopWingParam.weights[i.proto.quality] > 0 && o++);
}
for (r = 0; r < this.boxItems.childrenCount; r++) {
var l = this.boxItems.children[r], s = 0 != e.activeBoxOpen[r], p = !s && t >= .2 * (r + 1);
l.getComponent(cc.Button).interactable = p;
var d = l.findChild("box1");
d.active = !s;
d.getComponent(a.default).enabled = p;
l.findChild("box2").active = s;
3 == r ? l.findChild("icon").active = n > 0 : 4 == r && (l.findChild("icon").active = o > 0);
}
};
t.prototype.UpdateList = function() {
var e = this;
this.dailyMissionList.sort(function(e, t) {
return (t.unlock ? t.isGetReward ? 1 : 3 : 2) - (e.unlock ? e.isGetReward ? 1 : 3 : 2);
});
this.content.InitCellDataList(this.dailyMissionList, function(t, n, o) {
e.UpdateItem(n, o);
});
};
t.prototype.UpdateItem = function(e, t) {
t.data = e;
t.findChild("NameLabel").getComponent(cc.Label).string = e.proto.desc;
var n = t.findChild("items");
n.enabledAllChild(!1);
for (var o = n.children[0], r = n.children[1], i = n.children[2], a = 0; a < e.proto.unlockType.length; a++) {
var c = e.proto.unlockType[a], u = e.proto.unlockId[a];
switch (c) {
case s.UnlockType.Coin:
r.active = !0;
r.findChild("num").getComponent(cc.Label).string = "x" + u;
break;

case s.UnlockType.Diamond:
i.active = !0;
i.findChild("num").getComponent(cc.Label).string = "x" + u;
break;

case s.UnlockType.ActiveValue:
o.active = !0;
o.findChild("num").getComponent(cc.Label).string = "x" + u;
}
}
t.findChild("Toggle").getComponent(cc.Toggle).isChecked = e.unlock;
t.findChild("Button").active = e.unlock && !e.isGetReward;
t.findChild("ButtonJump").active = !e.unlock && e.proto.type != d.DailyMissionType.LoginGame && e.proto.type != d.DailyMissionType.OnlineMinute;
var p = t.findChild("ProgressLabel").getComponent(cc.Label);
if (e.unlock) p.node.active = !1; else {
p.string = e.value + " / " + e.proto.y;
p.node.active = !0;
}
l.default.SetImage(e.proto.iconPath, t.findChild("Icon").getComponent(cc.Sprite));
};
t.prototype.OnRewardClick = function(e) {
var t = this, n = e.target.parent.data;
n.isGetReward = !0;
this.UpdateList();
for (var o = [], r = 0; r < n.proto.unlockType.length; r++) o.push(new m.RewardProto(n.proto.unlockType[r], n.proto.unlockId[r]));
v.default.ShowView("每日任务", o, function() {
t.UpdateProgressBar();
});
};
t.prototype.OnJumpClick = function(e) {
switch (e.target.parent.data.proto.type) {
case d.DailyMissionType.ShopBuy:
case d.DailyMissionType.UseDiamond:
case d.DailyMissionType.ChargeMoney:
o.default.ShowView(S.default, null);
break;

case d.DailyMissionType.EnterLevel:
case d.DailyMissionType.KillEliteEnemyCnt:
case d.DailyMissionType.KillEnemyCnt:
case d.DailyMissionType.KillBossCnt:
o.default.ShowView(y.default);
break;

case d.DailyMissionType.PassTrain:
o.default.ShowView(w.default, p.BattleMode.Fragment1);
break;

case d.DailyMissionType.UpgradeWeapon:
o.default.ShowView(k.default);
break;

case d.DailyMissionType.UseCoin:
o.default.ShowView(M.default);
}
o.default.HideView(g.default);
};
t.prototype.OnBoxClick = function(e, t) {
var n = parseInt(t);
if (0 == c.default.Instance.activeBoxOpen[n]) {
console.log("open", n);
c.default.Instance.activeBoxOpen[n] = 1;
for (var o = [], r = d.DailyMissionConfig.boxItems[t], i = 0; i < r.unlockType.length; i++) {
var a = r.unlockType[i], l = r.unlockNum[i];
if (a == s.UnlockType.BluePrint) o = u.ChestConfig.GetBlueprintRewards(u.ChestConfig.shopWeaponStuffParam, l, null, r.convertCoin); else if (a == s.UnlockType.EquipmentBluePrint) {
for (var p = 0, w = 0; w < h.default.Instance.equipmentList.length; w++) h.default.Instance.equipmentList[w].unlock.boolValue || p++;
o.push(0 == p ? new m.RewardProto(s.UnlockType.Coin, r.convertCoin) : new m.RewardProto(s.UnlockType.EquipmentBluePrint, l));
} else a == s.UnlockType.Saodang || a == s.UnlockType.Diamond ? o.push(new m.RewardProto(a, l)) : a == s.UnlockType.EquipmentPiece && (o = u.ChestConfig.GetEquipmentRewards(r.equipmentType == f.EquipmentType.Mask ? u.ChestConfig.shopMaskParam : u.ChestConfig.shopWingParam, r.equipmentType, !1, l, r.kindNum, l * r.convertCoin));
}
this.UpdateProgressBar();
v.default.ShowView("每日任务宝箱", o);
}
};
__decorate([ _(r.default) ], t.prototype, "content", void 0);
__decorate([ _(cc.ProgressBar) ], t.prototype, "progressBar", void 0);
__decorate([ _(cc.Node) ], t.prototype, "boxItems", void 0);
return __decorate([ P ], t);
}(cc.Component);
n.default = O;
cc._RF.pop();
}, {
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/ScrollViewUtility": void 0,
"../../Service/PlatformService": void 0,
"../Battle/MicroAnimation": "MicroAnimation",
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/ArchivementModel": "ArchivementModel",
"../Config/ChestConfig": "ChestConfig",
"../Config/Config": "Config",
"../Config/DailyMissionConfig": "DailyMissionConfig",
"../Config/EquipmentConfig": "EquipmentConfig",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./CopyLevelUI": "CopyLevelUI",
"./LevelUI": "LevelUI",
"./MissionUI": "MissionUI",
"./RewardsUI": "RewardsUI",
"./ShopUI": "ShopUI",
"./TalentUI": "TalentUI",
"./WeaponUI": "WeaponUI"
} ],
MissionUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bf6e8BrzHhKjaeJRgnCj2sQ", "MissionUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("./MissionUI_Archivement"), l = e("./MissionUI_DailyMission"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.title = null;
t.missionTab = null;
t.missionContent = null;
t.archivementTab = null;
t.archivementContent = null;
return t;
}
t.prototype.OnSetParams = function() {
if (this.missionContent.systemActive) {
this.missionTab.node.active = !0;
this.missionTab.isChecked = !0;
this.missionContent.node.active = !0;
this.archivementContent.node.active = !1;
this.title.string = "每日任务";
} else {
this.missionTab.node.active = !1;
this.missionTab.isChecked = !1;
this.missionContent.node.active = !1;
this.archivementTab.isChecked = !0;
this.archivementContent.node.active = !0;
this.title.string = "成就";
}
};
t.prototype.OnTabClick = function(e, t) {
this.missionContent.node.active = "1" == t;
this.archivementContent.node.active = "2" == t;
this.title.string = "1" == t ? "每日任务" : "成就";
};
__decorate([ u(cc.Label) ], t.prototype, "title", void 0);
__decorate([ u(cc.Toggle) ], t.prototype, "missionTab", void 0);
__decorate([ u(l.default) ], t.prototype, "missionContent", void 0);
__decorate([ u(cc.Toggle) ], t.prototype, "archivementTab", void 0);
__decorate([ u(a.default) ], t.prototype, "archivementContent", void 0);
return __decorate([ c, o.RegisterView("MissionUI", r.ViewLayer.NormalLayer, r.ViewShowRule.HideAllView) ], t);
}(i.default);
n.default = p;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"./MissionUI_Archivement": "MissionUI_Archivement",
"./MissionUI_DailyMission": "MissionUI_DailyMission"
} ],
MoJing_Summon: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e0179kBhRJDIZXyH7Kki1CQ", "MoJing_Summon");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../Enemy"), i = e("../../LevelContext"), a = e("../../Summon/Summon"), l = e("../../TriggerSource"), s = e("../BaseBullet"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.upPercent = .3;
t.doubleDamageUpCnt = 0;
t.bulletBounceCount = 0;
t.yanJingSkillContext = null;
t.maxBounceCnt = 10;
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
t.prototype.OnInitEx = function(t, n, o) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(r) {
switch (r.label) {
case 0:
return [ 4, e.prototype.OnInitEx.call(this, t, n, o) ];

case 1:
r.sent();
return [ 2 ];
}
});
});
};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
this.node.opacity = null == i.LevelContext.Instance.mainPlayer.vehicle ? 255 : 0;
};
Object.defineProperty(t.prototype, "damageUpPercent", {
get: function() {
return (this.upPercent + .01 * this.owner.GetFeature(o.SkillFeature.SummonDamageUpPercent)) * Math.pow(2, this.doubleDamageUpCnt);
},
enumerable: !1,
configurable: !0
});
t.prototype.onCollisionEnter = function(e) {
var t = this;
if (this.isActive) {
var n = e.getComponent(l.default).handler.getComponent(s.default);
if (cc.isValid(n) && n.skill.isBulletSkill) if (n.mojingBounceCnt >= this.maxBounceCnt) console.warn("魔晶达到最大反弹次数", "damage", n.damage, "collider cnt", n.mojingBounceCnt); else {
n.mojingBounceCnt++;
n.node.scale = Math.min(3, n.node.scale + this.upPercent);
n.damage += this.damageUpPercent * n.skill.GetDamage();
if (this.bulletBounceCount > 0) {
n.leftBounceCount += this.bulletBounceCount;
n.totalHitCount += this.bulletBounceCount;
}
this.yanJingSkillContext && n.OnHitEvent.Add(function(e) {
if (e.target instanceof r.Enemy) {
var n = e.target;
t.yanJingSkillContext.TryBuff(n);
}
});
}
}
};
__decorate([ p() ], t.prototype, "upPercent", void 0);
return __decorate([ u ], t);
}(a.Summon);
n.default = d;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../Enemy": "Enemy",
"../../LevelContext": "LevelContext",
"../../Summon/Summon": "Summon",
"../../TriggerSource": "TriggerSource",
"../BaseBullet": "BaseBullet"
} ],
MonsterConfig_Activity: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "696e7g1K4RFHYWe1oxhVYyA", "MonsterConfig_Activity");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./MonsterConfig");
o.MonsterConfig.AddLMonsterConfig.apply(o.MonsterConfig, [ new o.MonsterProto(1.01, "僵尸", o.MonsterType.Normal, "", "", 37, .34, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.01, "提包僵尸", o.MonsterType.Normal, "", "", 45, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.01, "爆炸怪", o.MonsterType.Normal, "", "", 50, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 25, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(4.01, "毒液怪", o.MonsterType.Normal, "", "", 51, 1, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(5.01, "快女鬼", o.MonsterType.Normal, "", "", 65, 1, 80, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(6.01, "恐龙", o.MonsterType.Normal, "", "", 90, 1, 70, .2, "Prefabs/Enemy/M27/M27", [ [ 0, 100 ] ], 20, 300, 1), new o.MonsterProto(7.01, "子弹怪", o.MonsterType.Normal, "", "", 150, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(1.02, "僵尸", o.MonsterType.Normal, "", "", 63, .34, 72, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.02, "提包僵尸", o.MonsterType.Normal, "", "", 68, 1, 84, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.02, "爆炸怪", o.MonsterType.Normal, "", "", 68, 1, 84, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 25, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(4.02, "毒液怪", o.MonsterType.Normal, "", "", 80, 1, 84, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(5.02, "快女鬼", o.MonsterType.Normal, "", "", 110, 1, 100, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(6.02, "恐龙", o.MonsterType.Normal, "", "", 166, 1, 84, .2, "Prefabs/Enemy/M27/M27", [ [ 0, 100 ] ], 20, 300, 1), new o.MonsterProto(7.02, "子弹怪", o.MonsterType.Normal, "", "", 250, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(1.03, "僵尸", o.MonsterType.Normal, "", "", 75, .34, 78, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.03, "提包僵尸", o.MonsterType.Normal, "", "", 80, 1, 91, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.03, "爆炸怪", o.MonsterType.Normal, "", "", 68, 1, 91, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 25, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(4.03, "毒液怪", o.MonsterType.Normal, "", "", 96, 1, 91, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(5.03, "快女鬼", o.MonsterType.Normal, "", "", 150, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(6.03, "恐龙", o.MonsterType.Normal, "", "", 220, 1, 91, .2, "Prefabs/Enemy/M27/M27", [ [ 0, 100 ] ], 20, 300, 1), new o.MonsterProto(7.03, "子弹怪", o.MonsterType.Normal, "", "", 400, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(1001.01, "蜘蛛_精英", o.MonsterType.Elite, "", "", 350, 1, 80, .2, "Prefabs/Enemy/M05/M05", [ [ 1, 100 ], [ 4, 100 ] ], 300, 300, 1.7), new o.MonsterProto(1002.01, "恐龙_精英", o.MonsterType.Elite, "", "", 500, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 1, 100 ], [ 4, 100 ] ], 500, 300, 1.5), new o.MonsterProto(1003.01, "尸狼_BOSS", o.MonsterType.Boss, "", "", 900, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ] ], 1500, 300, 1.6, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003), new o.MonsterProto(1001.02, "蜘蛛_精英", o.MonsterType.Elite, "", "", 500, 1, 80, .2, "Prefabs/Enemy/M05/M05", [ [ 1, 100 ], [ 4, 100 ] ], 300, 300, 1.7), new o.MonsterProto(1002.02, "恐龙_精英", o.MonsterType.Elite, "", "", 800, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 1, 100 ], [ 4, 100 ] ], 500, 300, 1.5), new o.MonsterProto(1003.02, "尸狼_BOSS", o.MonsterType.Boss, "", "", 1300, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ] ], 1500, 300, 1.6, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003), new o.MonsterProto(1001.03, "蜘蛛_精英", o.MonsterType.Elite, "", "", 700, 1, 80, .2, "Prefabs/Enemy/M05/M05", [ [ 1, 100 ], [ 4, 100 ] ], 300, 300, 1.7), new o.MonsterProto(1002.03, "恐龙_精英", o.MonsterType.Elite, "", "", 950, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 1, 100 ], [ 4, 100 ] ], 500, 300, 1.5), new o.MonsterProto(1003.03, "尸狼_BOSS", o.MonsterType.Boss, "", "", 2e3, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ] ], 1500, 300, 1.6, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003.1) ]);
cc._RF.pop();
}, {
"./MonsterConfig": "MonsterConfig"
} ],
MonsterConfig_Chapter1: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ce304S+QctEhqRr0Ng7B1ro", "MonsterConfig_Chapter1");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./MonsterConfig");
o.MonsterConfig.AddLMonsterConfig.apply(o.MonsterConfig, [ new o.MonsterProto(1, "僵尸", o.MonsterType.Normal, "", "", 22, .34, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2, "僵尸", o.MonsterType.Normal, "", "", 28, .34, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(3, "僵尸", o.MonsterType.Normal, "", "", 50, 1, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(4, "快女鬼", o.MonsterType.Normal, "", "", 24, .34, 110, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 80, 1.05), new o.MonsterProto(5, "快女鬼", o.MonsterType.Normal, "", "", 30, .67, 110, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 100, 1.1), new o.MonsterProto(6, "快女鬼", o.MonsterType.Normal, "", "", 65, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 15, 120, 1.15), new o.MonsterProto(7, "蜘蛛", o.MonsterType.Normal, "", "", 42, .67, 60, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8, "蜘蛛", o.MonsterType.Normal, "", "", 60, .67, 60, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(9, "死爆子弹怪", o.MonsterType.Normal, "", "", 70, 1, 60, .2, "Prefabs/Enemy/M12/M12", [ [ 0, 100 ] ], 10, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 600, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 1) ]), new o.MonsterProto(10, "斧头丧尸", o.MonsterType.Normal, "", "", 100, 1, 60, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 10, 120, 1), new o.MonsterProto(11, "提包丧尸", o.MonsterType.Normal, "", "", 130, 1, 60, .2, "Prefabs/Enemy/M25/M25", [ [ 2, 100 ] ], 15, 120, 1), new o.MonsterProto(12, "尸狼", o.MonsterType.Normal, "", "", 150, 1, 90, .2, "Prefabs/Enemy/M04/M04", [ [ 3, 100 ] ], 20, 120, .9), new o.MonsterProto(13, "爆炸怪", o.MonsterType.Normal, "", "", 30, 1, 60, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14, "爆炸怪", o.MonsterType.Normal, "", "", 60, 1, 60, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15, "爆炸怪", o.MonsterType.Normal, "", "", 80, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16, "爆炸怪", o.MonsterType.Normal, "", "", 100, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(17, "爆炸怪", o.MonsterType.Normal, "", "", 180, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(18, "子弹怪", o.MonsterType.Normal, "", "", 60, .34, 120, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 3.5, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(19, "子弹怪", o.MonsterType.Normal, "", "", 90, .34, 120, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 3.5, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(20, "子弹怪", o.MonsterType.Normal, "", "", 120, .34, 120, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 3.5, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(21, "子弹怪_消失", o.MonsterType.Normal, "", "", 500, .67, 120, .2, "Prefabs/Enemy/M06/M06_1", [ [ 2, 100 ] ], 15, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, .2, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(35, "苍蝇冲击", o.MonsterType.Normal, "", "", 10, .67, 70, .2, "Prefabs/Enemy/M09/M09", [ [ 0, 100 ] ], 2, 300, 1), new o.MonsterProto(36, "苍蝇冲击", o.MonsterType.Normal, "", "", 10, 1, 70, .2, "Prefabs/Enemy/M09/M09", [ [ 0, 100 ] ], 2, 300, 1), new o.MonsterProto(1.1, "僵尸", o.MonsterType.Normal, "", "", 26, .34, 50, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.1, "僵尸", o.MonsterType.Normal, "", "", 34, .34, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.1, "僵尸", o.MonsterType.Normal, "", "", 45, .67, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(4.1, "僵尸", o.MonsterType.Normal, "", "", 80, 1, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(5.1, "僵尸", o.MonsterType.Normal, "", "", 250, 1, 70, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(6.1, "蝙蝠", o.MonsterType.Normal, "", "", 55, .67, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(7.1, "蝙蝠", o.MonsterType.Normal, "", "", 60, .67, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(8.1, "蝙蝠", o.MonsterType.Normal, "", "", 80, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(9.1, "蝙蝠", o.MonsterType.Normal, "", "", 100, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(10.1, "蝙蝠", o.MonsterType.Normal, "", "", 280, 1, 80, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(11.1, "爆炸怪", o.MonsterType.Normal, "", "", 35, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.1, "爆炸怪", o.MonsterType.Normal, "", "", 70, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.1, "爆炸怪", o.MonsterType.Normal, "", "", 90, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.1, "爆炸怪", o.MonsterType.Normal, "", "", 100, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.1, "爆炸怪", o.MonsterType.Normal, "", "", 200, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.1, "尸狼", o.MonsterType.Normal, "", "", 80, .67, 70, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 15, 150, .9), new o.MonsterProto(17.1, "尸狼", o.MonsterType.Normal, "", "", 90, .67, 70, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 15, 150, .9), new o.MonsterProto(18.1, "尸狼", o.MonsterType.Normal, "", "", 100, 1, 70, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 15, 150, .9), new o.MonsterProto(19.1, "尸狼_快跑", o.MonsterType.Normal, "", "", 150, 1, 120, .2, "Prefabs/Enemy/M04/M04", [ [ 3, 100 ] ], 15, 150, 1.1), new o.MonsterProto(20.1, "尸狼_快跑", o.MonsterType.Normal, "", "", 500, 1, 120, .2, "Prefabs/Enemy/M04/M04", [ [ 3, 100 ] ], 15, 150, 1.1), new o.MonsterProto(21.1, "蜘蛛", o.MonsterType.Normal, "", "", 150, 1, 65, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(22.1, "蜘蛛", o.MonsterType.Normal, "", "", 200, 1, 65, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(23.1, "蜘蛛", o.MonsterType.Normal, "", "", 250, 1, 65, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(24.1, "蜘蛛", o.MonsterType.Normal, "", "", 280, 1, 65, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(25.1, "蜘蛛", o.MonsterType.Normal, "", "", 500, 1, 65, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(26.1, "丧尸", o.MonsterType.Normal, "", "", 400, 1, 75, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(27.1, "丧尸", o.MonsterType.Normal, "", "", 850, 1, 75, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(28.1, "丧尸", o.MonsterType.Normal, "", "", 800, 1, 75, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(29.1, "丧尸", o.MonsterType.Normal, "", "", 900, 1, 75, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(30.1, "丧尸", o.MonsterType.Normal, "", "", 1e3, 1, 75, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(31.1, "子弹怪", o.MonsterType.Normal, "", "", 400, 1, 120, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(32.1, "子弹怪", o.MonsterType.Normal, "", "", 600, 1, 120, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 2) ], 450), new o.MonsterProto(33.1, "子弹怪", o.MonsterType.Normal, "", "", 900, 1, 120, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 3.5, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.1, "子弹怪", o.MonsterType.Normal, "", "", 1100, 1, 120, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(35.1, "子弹怪", o.MonsterType.Normal, "", "", 1400, 1, 120, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(36.1, "苍蝇冲击", o.MonsterType.Normal, "", "", 20, .67, 70, .2, "Prefabs/Enemy/M09/M09", [ [ 0, 100 ] ], 2, 300, 1), new o.MonsterProto(37.1, "盾牌怪", o.MonsterType.Normal, "", "", 22, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 0, 100 ] ], 10, 200, 1), new o.MonsterProto(38.1, "分裂怪", o.MonsterType.Normal, "", "", 22, 1, 60, .2, "Prefabs/Enemy/M11/M11", [ [ 0, 100 ] ], 10, 200, 1), new o.MonsterProto(39.1, "死爆子弹怪", o.MonsterType.Normal, "", "", 22, 1, 50, .2, "Prefabs/Enemy/M12/M12", [ [ 0, 100 ] ], 10, 200, 1, [ new o.MonsterSkillProto(1, 0, .34, 600, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 2) ]), new o.MonsterProto(40.1, "隐身怪", o.MonsterType.Normal, "", "", 600, 1, 50, .2, "Prefabs/Enemy/M13/M13", [ [ 0, 100 ] ], 10, 200, 1), new o.MonsterProto(41.1, "炸弹怪", o.MonsterType.Normal, "", "", 800, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 0, 100 ] ], 10, 200, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3.5, 0, 0, "Prefabs/Enemy/M14/Skill") ], 430), new o.MonsterProto(42.1, "毒液怪", o.MonsterType.Normal, "", "", 300, 1, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 200, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(1.2, "僵尸", o.MonsterType.Normal, "", "", 30, .34, 50, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(2.2, "僵尸", o.MonsterType.Normal, "", "", 48, .67, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(3.2, "僵尸", o.MonsterType.Normal, "", "", 80, .67, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(4.2, "僵尸", o.MonsterType.Normal, "", "", 80, 1, 60, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(5.2, "僵尸", o.MonsterType.Normal, "", "", 600, 1, 70, .2, "Prefabs/Enemy/M03/M03", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(6.2, "蝙蝠", o.MonsterType.Normal, "", "", 110, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(7.2, "蝙蝠", o.MonsterType.Normal, "", "", 120, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(8.2, "蝙蝠", o.MonsterType.Normal, "", "", 80, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(9.2, "蝙蝠", o.MonsterType.Normal, "", "", 100, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(10.2, "蝙蝠", o.MonsterType.Normal, "", "", 700, 1, 80, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(11.2, "爆炸怪", o.MonsterType.Normal, "", "", 40, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.2, "爆炸怪", o.MonsterType.Normal, "", "", 80, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.2, "爆炸怪", o.MonsterType.Normal, "", "", 100, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.2, "爆炸怪", o.MonsterType.Normal, "", "", 120, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.2, "爆炸怪", o.MonsterType.Normal, "", "", 200, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.2, "尸狼", o.MonsterType.Normal, "", "", 160, 1, 75, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 15, 150, .9), new o.MonsterProto(17.2, "尸狼", o.MonsterType.Normal, "", "", 180, 1, 75, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 15, 150, .9), new o.MonsterProto(18.2, "尸狼", o.MonsterType.Normal, "", "", 100, 1, 75, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 15, 150, .9), new o.MonsterProto(19.2, "尸狼_快跑", o.MonsterType.Normal, "", "", 180, 1, 150, .2, "Prefabs/Enemy/M04/M04", [ [ 3, 100 ] ], 15, 150, 1.1), new o.MonsterProto(20.2, "尸狼_快跑", o.MonsterType.Normal, "", "", 600, 1, 160, .2, "Prefabs/Enemy/M04/M04", [ [ 3, 100 ] ], 15, 150, 1.1), new o.MonsterProto(21.2, "蜘蛛", o.MonsterType.Normal, "", "", 300, 1, 70, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(22.2, "蜘蛛", o.MonsterType.Normal, "", "", 400, 1, 70, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(23.2, "蜘蛛", o.MonsterType.Normal, "", "", 600, 1, 70, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(24.2, "蜘蛛", o.MonsterType.Normal, "", "", 700, 1, 70, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(25.2, "蜘蛛", o.MonsterType.Normal, "", "", 600, 1, 70, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 20, 100, 1), new o.MonsterProto(26.2, "丧尸", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(27.2, "丧尸", o.MonsterType.Normal, "", "", 1900, 1, 80, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(28.2, "丧尸", o.MonsterType.Normal, "", "", 900, 1, 80, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(29.2, "丧尸", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(30.2, "丧尸", o.MonsterType.Normal, "", "", 1100, 1, 80, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(31.2, "子弹怪", o.MonsterType.Normal, "", "", 400, 1, 100, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(32.2, "子弹怪", o.MonsterType.Normal, "", "", 600, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 2) ], 450), new o.MonsterProto(33.2, "子弹怪", o.MonsterType.Normal, "", "", 900, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 3.5, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.2, "子弹怪", o.MonsterType.Normal, "", "", 1100, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(35.2, "子弹怪", o.MonsterType.Normal, "", "", 1400, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(36.2, "苍蝇冲击", o.MonsterType.Normal, "", "", 20, 1, 70, .2, "Prefabs/Enemy/M09/M09", [ [ 0, 100 ] ], 2, 300, 1), new o.MonsterProto(37.2, "盾牌怪", o.MonsterType.Normal, "", "", 22, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 0, 100 ] ], 10, 200, 1), new o.MonsterProto(38.2, "分裂怪", o.MonsterType.Normal, "", "", 22, 1, 60, .2, "Prefabs/Enemy/M11/M11", [ [ 0, 100 ] ], 10, 200, 1), new o.MonsterProto(39.2, "死爆子弹怪", o.MonsterType.Normal, "", "", 22, 1, 50, .2, "Prefabs/Enemy/M12/M12", [ [ 0, 100 ] ], 10, 200, 1, [ new o.MonsterSkillProto(1, 0, 40, 600, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 2) ]), new o.MonsterProto(40.2, "隐身怪", o.MonsterType.Normal, "", "", 800, 1, 50, .2, "Prefabs/Enemy/M13/M13", [ [ 0, 100 ] ], 10, 200, 1), new o.MonsterProto(41.2, "炸弹怪", o.MonsterType.Normal, "", "", 1100, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 0, 100 ] ], 10, 200, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 430), new o.MonsterProto(42.2, "毒液怪", o.MonsterType.Normal, "", "", 700, 1, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 200, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(1001, "丧尸_精英", o.MonsterType.Elite, "", "", 600, .34, 70, .2, "Prefabs/Enemy/M01/M01", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 100, 2), new o.MonsterProto(1002, "电锯人_精英", o.MonsterType.Elite, "", "", 1300, .67, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 200, 1.7), new o.MonsterProto(1003, "尸狼_精英", o.MonsterType.Elite, "", "", 3e3, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1200, 300, 1.7, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003), new o.MonsterProto(1004, "蜘蛛_精英", o.MonsterType.Elite, "", "", 4e3, 1, 110, .2, "Prefabs/Enemy/M05/M05", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 1500, 300, 1.8), new o.MonsterProto(1005, "夫人_BOSS", o.MonsterType.Boss, "", "", 13e3, 1, 100, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 0 ] ], 2e3, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 0, 9, 0, 0, "Prefabs/Enemy/M07/Skill") ]), new o.MonsterProto(1001.1, "丧尸_精英", o.MonsterType.Elite, "", "", 700, 1, 80, .2, "Prefabs/Enemy/M01/M01", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 100, 2), new o.MonsterProto(1002.1, "电锯人_精英", o.MonsterType.Elite, "", "", 1800, 1, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 200, 1.7), new o.MonsterProto(1003.1, "尸狼_精英", o.MonsterType.Elite, "", "", 3500, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 300, 1.7, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003.1), new o.MonsterProto(1004.1, "蜘蛛_精英", o.MonsterType.Elite, "", "", 8e3, 1, 110, .2, "Prefabs/Enemy/M05/M05", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.8), new o.MonsterProto(1005.1, "夫人_BOSS", o.MonsterType.Boss, "", "", 28e3, 1, 120, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 0 ] ], 2e3, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 0, 7, 0, 0, "Prefabs/Enemy/M07/Skill01") ]), new o.MonsterProto(1001.2, "丧尸_精英", o.MonsterType.Elite, "", "", 800, 1, 80, .2, "Prefabs/Enemy/M01/M01", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 100, 2), new o.MonsterProto(1002.2, "电锯人_精英", o.MonsterType.Elite, "", "", 3e3, 1, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 200, 1.7), new o.MonsterProto(1003.2, "尸狼_精英", o.MonsterType.Elite, "", "", 7e3, 1, 140, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 300, 1.7, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003.2), new o.MonsterProto(1004.2, "蜘蛛_精英", o.MonsterType.Elite, "", "", 13e3, 1, 110, .2, "Prefabs/Enemy/M05/M05", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.8), new o.MonsterProto(1005.2, "夫人_BOSS", o.MonsterType.Boss, "", "", 45e3, 1, 120, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 0 ] ], 2e3, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 0, 8, 0, 0, "Prefabs/Enemy/M07/Skill01"), new o.MonsterSkillProto(2, 0, 1, 0, 5.8, 0, 0, "Prefabs/Enemy/M07/Skill02") ]), new o.MonsterProto(10086, "夫人_BOSS", o.MonsterType.Boss, "", "", 13e3, 1, 130, .2, "Prefabs/Enemy/NewBoss/BulletBoss/Boss", [ [ 1, 100 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(10086.01, 0, 1, 300, 15, 0, 0, "Prefabs/Enemy/NewBoss/BulletBoss/Skills/Skill01", 6), new o.MonsterSkillProto(10086.02, 0, 1, 3e3, 13, 0, 0, "Prefabs/Enemy/NewBoss/BulletBoss/Skills/Skill02", 10), new o.MonsterSkillProto(10086.03, 0, 1, 600, 11, 0, 0, "Prefabs/Enemy/NewBoss/BulletBoss/Skills/Skill03", 20), new o.MonsterSkillProto(10086.04, 0, 1, 1e3, 7, 0, 0, "Prefabs/Enemy/NewBoss/BulletBoss/Skills/Skill04", 20), new o.MonsterSkillProto(10086.05, 0, 1, 0, 16, 0, 0, "Prefabs/Enemy/NewBoss/BulletBoss/Skills/Skill05") ], 0, 10086), new o.MonsterProto(10088, "元素_BOSS", o.MonsterType.Boss, "", "", 13e3, 1, 130, .2, "Prefabs/Enemy/NewBoss/ElementBoss/Boss", [ [ 1, 100 ] ], 2e3, 300, 1.5, [ new o.MonsterSkillProto(10088.01, 0, 1, 600, 15, 0, 0, "Prefabs/Enemy/NewBoss/ElementBoss/Skills/Skill01", 6), new o.MonsterSkillProto(10088.02, 0, 1, 2e3, 15, 0, 0, "Prefabs/Enemy/NewBoss/ElementBoss/Skills/Skill02", 2), new o.MonsterSkillProto(10088.03, 0, 1, 0, 15, 0, 0, "Prefabs/Enemy/NewBoss/ElementBoss/Skills/Skill03") ], 0, 10088), new o.MonsterProto(10089, "召唤_BOSS", o.MonsterType.Boss, "", "", 13e3, 1, 130, .2, "Prefabs/Enemy/NewBoss/SummonBoss/Boss", [ [ 1, 100 ] ], 2e3, 300, 1.5, [ new o.MonsterSkillProto(10089.01, 0, 1, 600, 15, 0, 0, "Prefabs/Enemy/NewBoss/SummonBoss/Skills/Skill01", 6) ], 0, 10089) ]);
cc._RF.pop();
}, {
"./MonsterConfig": "MonsterConfig"
} ],
MonsterConfig_Chapter2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "70b8fbf3t5D1YE3q6qZHOLt", "MonsterConfig_Chapter2");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./MonsterConfig");
o.MonsterConfig.AddLMonsterConfig.apply(o.MonsterConfig, [ new o.MonsterProto(1.4, "新僵尸", o.MonsterType.Normal, "", "", 40, .34, 60, .2, "Prefabs/Enemy/M22/M22", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.4, "新僵尸", o.MonsterType.Normal, "", "", 53, .34, 60, .2, "Prefabs/Enemy/M22/M22", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.4, "新僵尸", o.MonsterType.Normal, "", "", 96, 1, 60, .2, "Prefabs/Enemy/M22/M22", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.4, "电锯人", o.MonsterType.Normal, "", "", 144, .67, 60, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.4, "电锯人", o.MonsterType.Normal, "", "", 180, 1, 60, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.4, "电锯人", o.MonsterType.Normal, "", "", 364, 1, 60, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.4, "电锯人", o.MonsterType.Normal, "", "", 1430, 1, 90, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.4, "爆炸怪", o.MonsterType.Normal, "", "", 50, 1, 60, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.4, "爆炸怪", o.MonsterType.Normal, "", "", 80, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.4, "爆炸怪", o.MonsterType.Normal, "", "", 230, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.4, "爆炸怪", o.MonsterType.Normal, "", "", 450, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.4, "爆炸怪", o.MonsterType.Normal, "", "", 900, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.4, "摩托男", o.MonsterType.Normal, "", "", 286, 1, 100, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.4, "摩托女", o.MonsterType.Normal, "", "", 2340, 1, 120, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 30, 300, .8), new o.MonsterProto(26.4, "提刀怪", o.MonsterType.Normal, "", "", 780, 1, 80, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 20, 190, 1), new o.MonsterProto(27.4, "提刀怪", o.MonsterType.Normal, "", "", 1300, 1, 90, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 20, 300, 1), new o.MonsterProto(28.4, "提刀怪", o.MonsterType.Normal, "", "", 1560, 1, 90, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(31.4, "子弹怪", o.MonsterType.Normal, "", "", 200, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(32.4, "子弹怪", o.MonsterType.Normal, "", "", 500, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(33.4, "子弹怪", o.MonsterType.Normal, "", "", 800, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(34.4, "子弹怪", o.MonsterType.Normal, "", "", 1e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 550), new o.MonsterProto(36.4, "盾牌怪", o.MonsterType.Normal, "", "", 400, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(46.4, "死爆子弹怪", o.MonsterType.Normal, "", "", 600, 1, 80, .2, "Prefabs/Enemy/M12/M12", [ [ 2, 100 ] ], 30, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 800, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 3) ]), new o.MonsterProto(56.4, "炸弹怪", o.MonsterType.Normal, "", "", 400, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.4, "炸弹怪", o.MonsterType.Normal, "", "", 1300, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.4, "毒液怪", o.MonsterType.Normal, "", "", 80, .67, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.4, "毒液怪", o.MonsterType.Normal, "", "", 120, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.4, "快女鬼", o.MonsterType.Normal, "", "", 600, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 150, 1.05), new o.MonsterProto(67.4, "快女鬼", o.MonsterType.Normal, "", "", 1170, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 300, 1.05), new o.MonsterProto(1.5, "新僵尸", o.MonsterType.Normal, "", "", 44, .34, 60, .2, "Prefabs/Enemy/M22/M22", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.5, "新僵尸", o.MonsterType.Normal, "", "", 58, .34, 60, .2, "Prefabs/Enemy/M22/M22", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.5, "新僵尸", o.MonsterType.Normal, "", "", 115, 1, 60, .2, "Prefabs/Enemy/M22/M22", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.5, "电锯人", o.MonsterType.Normal, "", "", 173, 1, 60, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.5, "电锯人", o.MonsterType.Normal, "", "", 216, 1, 60, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.5, "电锯人", o.MonsterType.Normal, "", "", 473, 1, 60, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.5, "电锯人", o.MonsterType.Normal, "", "", 1859, 1, 90, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.5, "爆炸怪", o.MonsterType.Normal, "", "", 60, 1, 60, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.5, "爆炸怪", o.MonsterType.Normal, "", "", 80, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.5, "爆炸怪", o.MonsterType.Normal, "", "", 250, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.5, "爆炸怪", o.MonsterType.Normal, "", "", 500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.5, "爆炸怪", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.5, "摩托男", o.MonsterType.Normal, "", "", 372, 1, 100, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.5, "摩托女", o.MonsterType.Normal, "", "", 3042, 1, 120, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 30, 300, .8), new o.MonsterProto(26.5, "提刀怪", o.MonsterType.Normal, "", "", 1014, 1, 90, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 20, 190, 1), new o.MonsterProto(27.5, "提刀怪", o.MonsterType.Normal, "", "", 1690, 1, 90, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 20, 300, 1), new o.MonsterProto(28.5, "提刀怪", o.MonsterType.Normal, "", "", 2028, 1, 90, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(31.5, "子弹怪", o.MonsterType.Normal, "", "", 330, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(32.5, "子弹怪", o.MonsterType.Normal, "", "", 500, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(33.5, "子弹怪", o.MonsterType.Normal, "", "", 900, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 550), new o.MonsterProto(34.5, "子弹怪", o.MonsterType.Normal, "", "", 1200, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 550), new o.MonsterProto(36.5, "盾牌怪", o.MonsterType.Normal, "", "", 700, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 30, 200, 1), new o.MonsterProto(46.5, "死爆子弹怪", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M12/M12", [ [ 2, 100 ] ], 30, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 800, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 3) ]), new o.MonsterProto(56.5, "炸弹怪", o.MonsterType.Normal, "", "", 500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.5, "炸弹怪", o.MonsterType.Normal, "", "", 1700, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.5, "毒液怪", o.MonsterType.Normal, "", "", 90, .67, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.5, "毒液怪", o.MonsterType.Normal, "", "", 150, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.5, "快女鬼", o.MonsterType.Normal, "", "", 800, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 150, 1.05), new o.MonsterProto(67.5, "快女鬼", o.MonsterType.Normal, "", "", 1521, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 300, 1.05), new o.MonsterProto(1.6, "新僵尸", o.MonsterType.Normal, "", "", 48, .34, 60, .2, "Prefabs/Enemy/M22/M22", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.6, "新僵尸", o.MonsterType.Normal, "", "", 70, .34, 60, .2, "Prefabs/Enemy/M22/M22", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.6, "新僵尸", o.MonsterType.Normal, "", "", 138, 1, 60, .2, "Prefabs/Enemy/M22/M22", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.6, "电锯人", o.MonsterType.Normal, "", "", 225, 1, 60, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.6, "电锯人", o.MonsterType.Normal, "", "", 281, 1, 60, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.6, "电锯人", o.MonsterType.Normal, "", "", 615, 1, 60, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.6, "电锯人", o.MonsterType.Normal, "", "", 2417, 1, 90, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.6, "爆炸怪", o.MonsterType.Normal, "", "", 60, 1, 60, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.6, "爆炸怪", o.MonsterType.Normal, "", "", 90, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.6, "爆炸怪", o.MonsterType.Normal, "", "", 250, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.6, "爆炸怪", o.MonsterType.Normal, "", "", 500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.6, "爆炸怪", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.6, "摩托男", o.MonsterType.Normal, "", "", 483, 1, 100, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.6, "摩托女", o.MonsterType.Normal, "", "", 3955, 1, 120, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 30, 300, .8), new o.MonsterProto(26.6, "提刀怪", o.MonsterType.Normal, "", "", 1318, 1, 90, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 30, 190, 1), new o.MonsterProto(27.6, "提刀怪", o.MonsterType.Normal, "", "", 2197, 1, 90, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(28.6, "提刀怪", o.MonsterType.Normal, "", "", 3042, 1, 90, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 30, 300, 1), new o.MonsterProto(31.6, "子弹怪", o.MonsterType.Normal, "", "", 350, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(32.6, "子弹怪", o.MonsterType.Normal, "", "", 500, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 550), new o.MonsterProto(33.6, "子弹怪", o.MonsterType.Normal, "", "", 900, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 550), new o.MonsterProto(34.6, "子弹怪", o.MonsterType.Normal, "", "", 1200, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 550), new o.MonsterProto(36.6, "盾牌怪", o.MonsterType.Normal, "", "", 850, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(46.6, "死爆子弹怪", o.MonsterType.Normal, "", "", 1300, 1, 80, .2, "Prefabs/Enemy/M12/M12", [ [ 2, 100 ] ], 30, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 800, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 3) ]), new o.MonsterProto(56.6, "炸弹怪", o.MonsterType.Normal, "", "", 700, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.6, "炸弹怪", o.MonsterType.Normal, "", "", 2500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.6, "毒液怪", o.MonsterType.Normal, "", "", 90, .67, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.6, "毒液怪", o.MonsterType.Normal, "", "", 190, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.6, "快女鬼", o.MonsterType.Normal, "", "", 900, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 150, 1.05), new o.MonsterProto(67.6, "快女鬼", o.MonsterType.Normal, "", "", 1977, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 300, 1.05), new o.MonsterProto(1001.4, "电锯人_精英", o.MonsterType.Elite, "", "", 700, .34, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5), new o.MonsterProto(1002.4, "摩托男_精英", o.MonsterType.Elite, "", "", 2500, 1, 100, .2, "Prefabs/Enemy/M20/M20", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 200, 1.5), new o.MonsterProto(1003.4, "死爆子弹_精英", o.MonsterType.Elite, "", "", 5e3, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 300, 2, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 15) ]), new o.MonsterProto(1004.4, "摩托女_精英", o.MonsterType.Elite, "", "", 8e3, 1, 150, .2, "Prefabs/Enemy/M21/M21", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.5), new o.MonsterProto(1005.4, "飞碟_BOSS", o.MonsterType.Boss, "", "", 5e4, 1, 120, .2, "Prefabs/Enemy/M23/M23", [ [ 1, 100 ] ], 20, 300, 1.1, [ new o.MonsterSkillProto(1005.01, 0, 2, 1e3, 99999, 0, 0, "Prefabs/Enemy/M23/Skill1", 13), new o.MonsterSkillProto(1005.02, 0, 2, 1e3, 99999, 0, 0, "Prefabs/Enemy/M23/Skill2", 15), new o.MonsterSkillProto(1005.03, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M23/Skill3", 1), new o.MonsterSkillProto(1005.04, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M23/Skill4", 1) ], 0, 1005.4), new o.MonsterProto(1001.5, "电锯人_精英", o.MonsterType.Elite, "", "", 700, .34, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5), new o.MonsterProto(1002.5, "摩托男_精英", o.MonsterType.Elite, "", "", 2500, 1, 100, .2, "Prefabs/Enemy/M20/M20", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 200, 1.5), new o.MonsterProto(1003.5, "死爆子弹_精英", o.MonsterType.Elite, "", "", 6e3, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 300, 2, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 15) ]), new o.MonsterProto(1004.5, "摩托女_精英", o.MonsterType.Elite, "", "", 12e3, 1, 150, .2, "Prefabs/Enemy/M21/M21", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.5), new o.MonsterProto(1005.5, "飞碟_BOSS", o.MonsterType.Boss, "", "", 6e4, 1, 150, .2, "Prefabs/Enemy/M23/M23", [ [ 1, 100 ] ], 20, 300, 1.1, [ new o.MonsterSkillProto(1005.01, 0, 2, 1e3, 99999, 0, 0, "Prefabs/Enemy/M23/Skill1", 15), new o.MonsterSkillProto(1005.02, 0, 2, 1e3, 99999, 0, 0, "Prefabs/Enemy/M23/Skill2", 20), new o.MonsterSkillProto(1005.03, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M23/Skill3", 1), new o.MonsterSkillProto(1005.04, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M23/Skill4", 1) ], 0, 1005.5), new o.MonsterProto(1001.6, "电锯人_精英", o.MonsterType.Elite, "", "", 700, .34, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5), new o.MonsterProto(1002.6, "摩托男_精英", o.MonsterType.Elite, "", "", 2500, 1, 100, .2, "Prefabs/Enemy/M20/M20", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 200, 1.5), new o.MonsterProto(1003.6, "死爆子弹_精英", o.MonsterType.Elite, "", "", 6500, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 300, 2, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 15) ]), new o.MonsterProto(1004.6, "摩托女_精英", o.MonsterType.Elite, "", "", 15e3, 1, 150, .2, "Prefabs/Enemy/M21/M21", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.5), new o.MonsterProto(1005.6, "飞碟_BOSS", o.MonsterType.Boss, "", "", 7e4, 1, 150, .2, "Prefabs/Enemy/M23/M23", [ [ 1, 100 ] ], 20, 300, 1.1, [ new o.MonsterSkillProto(1005.01, 0, 2, 1e3, 99999, 0, 0, "Prefabs/Enemy/M23/Skill1", 18), new o.MonsterSkillProto(1005.02, 0, 2, 1e3, 99999, 0, 0, "Prefabs/Enemy/M23/Skill2", 30), new o.MonsterSkillProto(1005.03, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M23/Skill3", 1), new o.MonsterSkillProto(1005.04, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M23/Skill4", 1) ], 0, 1005.6) ]);
cc._RF.pop();
}, {
"./MonsterConfig": "MonsterConfig"
} ],
MonsterConfig_Chapter3: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "92dba7HMxtNHqrFS7KGAPEB", "MonsterConfig_Chapter3");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./MonsterConfig");
o.MonsterConfig.AddLMonsterConfig.apply(o.MonsterConfig, [ new o.MonsterProto(1.7, "提包僵尸", o.MonsterType.Normal, "", "", 53, .34, 50, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.7, "提包僵尸", o.MonsterType.Normal, "", "", 77, .67, 60, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.7, "提包僵尸", o.MonsterType.Normal, "", "", 166, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.7, "电锯人", o.MonsterType.Normal, "", "", 270, .1, 70, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.7, "电锯人", o.MonsterType.Normal, "", "", 337, 1, 70, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.7, "电锯人", o.MonsterType.Normal, "", "", 738, 1, 70, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.7, "电锯人", o.MonsterType.Normal, "", "", 2900, 1, 90, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.7, "爆炸怪", o.MonsterType.Normal, "", "", 50, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.7, "爆炸怪", o.MonsterType.Normal, "", "", 80, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.7, "爆炸怪", o.MonsterType.Normal, "", "", 230, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.7, "爆炸怪", o.MonsterType.Normal, "", "", 450, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.7, "爆炸怪", o.MonsterType.Normal, "", "", 900, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.7, "摩托男", o.MonsterType.Normal, "", "", 580, 1, 80, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.7, "恐龙", o.MonsterType.Normal, "", "", 4746, 1, 90, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.7, "太空人", o.MonsterType.Normal, "", "", 1582, 1, 80, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(27.7, "太空人", o.MonsterType.Normal, "", "", 2636, 1, 90, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(28.7, "太空人", o.MonsterType.Normal, "", "", 3650, 1, 90, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 30, 300, 1.3), new o.MonsterProto(31.7, "子弹怪", o.MonsterType.Normal, "", "", 500, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(32.7, "子弹怪", o.MonsterType.Normal, "", "", 1500, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(33.7, "子弹怪", o.MonsterType.Normal, "", "", 5e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(34.7, "子弹怪", o.MonsterType.Normal, "", "", 8e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.7, "盾牌怪", o.MonsterType.Normal, "", "", 400, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(41.7, "分裂怪", o.MonsterType.Normal, "", "", 220, 1, 80, .2, "Prefabs/Enemy/M11/M11", [ [ 3, 100 ] ], 30, 180, 1.1), new o.MonsterProto(46.7, "死爆子弹怪", o.MonsterType.Normal, "", "", 3300, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 2, 100 ] ], 30, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 800, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 3) ]), new o.MonsterProto(56.7, "炸弹怪", o.MonsterType.Normal, "", "", 1600, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.7, "炸弹怪", o.MonsterType.Normal, "", "", 3500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.7, "毒液怪", o.MonsterType.Normal, "", "", 120, .67, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.7, "毒液怪", o.MonsterType.Normal, "", "", 120, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.7, "快僵尸", o.MonsterType.Normal, "", "", 700, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 180, 1.3), new o.MonsterProto(67.7, "快僵尸", o.MonsterType.Normal, "", "", 2373, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 300, 1.3), new o.MonsterProto(71.7, "机器人", o.MonsterType.Normal, "", "", 4500, 1, 90, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(1.8, "提包僵尸", o.MonsterType.Normal, "", "", 58, .34, 50, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.8, "提包僵尸", o.MonsterType.Normal, "", "", 84, .67, 60, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.8, "提包僵尸", o.MonsterType.Normal, "", "", 199, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.8, "电锯人", o.MonsterType.Normal, "", "", 323, 1, 70, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.8, "电锯人", o.MonsterType.Normal, "", "", 404, 1, 70, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.8, "电锯人", o.MonsterType.Normal, "", "", 886, 1, 70, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.8, "电锯人", o.MonsterType.Normal, "", "", 3480, 1, 90, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.8, "爆炸怪", o.MonsterType.Normal, "", "", 60, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.8, "爆炸怪", o.MonsterType.Normal, "", "", 80, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.8, "爆炸怪", o.MonsterType.Normal, "", "", 250, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.8, "爆炸怪", o.MonsterType.Normal, "", "", 500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.8, "爆炸怪", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.8, "摩托男", o.MonsterType.Normal, "", "", 696, 1, 80, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.8, "恐龙", o.MonsterType.Normal, "", "", 5695, 1, 90, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.8, "太空人", o.MonsterType.Normal, "", "", 1898, 1, 90, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(27.8, "太空人", o.MonsterType.Normal, "", "", 3164, 1, 90, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(28.8, "太空人", o.MonsterType.Normal, "", "", 4380, 1, 90, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 30, 300, 1.3), new o.MonsterProto(31.8, "子弹怪", o.MonsterType.Normal, "", "", 500, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(32.8, "子弹怪", o.MonsterType.Normal, "", "", 2500, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(33.8, "子弹怪", o.MonsterType.Normal, "", "", 7e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.8, "子弹怪", o.MonsterType.Normal, "", "", 13e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.8, "盾牌怪", o.MonsterType.Normal, "", "", 700, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 30, 200, 1), new o.MonsterProto(41.8, "分裂怪", o.MonsterType.Normal, "", "", 300, 1, 80, .2, "Prefabs/Enemy/M11/M11", [ [ 3, 100 ] ], 30, 180, 1.1), new o.MonsterProto(46.8, "死爆子弹怪", o.MonsterType.Normal, "", "", 5e3, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 2, 100 ] ], 30, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 800, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 3) ]), new o.MonsterProto(56.8, "炸弹怪", o.MonsterType.Normal, "", "", 2e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.8, "炸弹怪", o.MonsterType.Normal, "", "", 5500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.8, "毒液怪", o.MonsterType.Normal, "", "", 140, .67, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.8, "毒液怪", o.MonsterType.Normal, "", "", 150, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.8, "快僵尸", o.MonsterType.Normal, "", "", 900, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 180, 1.3), new o.MonsterProto(67.8, "快僵尸", o.MonsterType.Normal, "", "", 2847, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 300, 1.3), new o.MonsterProto(71.8, "机器人", o.MonsterType.Normal, "", "", 7e3, 1, 90, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(1.9, "提包僵尸", o.MonsterType.Normal, "", "", 64, .34, 50, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.9, "提包僵尸", o.MonsterType.Normal, "", "", 93, .67, 60, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.9, "提包僵尸", o.MonsterType.Normal, "", "", 239, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.9, "电锯人", o.MonsterType.Normal, "", "", 388, 1, 70, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.9, "电锯人", o.MonsterType.Normal, "", "", 485, 1, 70, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.9, "电锯人", o.MonsterType.Normal, "", "", 1063, 1, 70, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.9, "电锯人", o.MonsterType.Normal, "", "", 4176, 1, 90, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.9, "爆炸怪", o.MonsterType.Normal, "", "", 60, 1, 70, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.9, "爆炸怪", o.MonsterType.Normal, "", "", 90, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.9, "爆炸怪", o.MonsterType.Normal, "", "", 250, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.9, "爆炸怪", o.MonsterType.Normal, "", "", 500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.9, "爆炸怪", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.9, "摩托男", o.MonsterType.Normal, "", "", 835, 1, 80, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.9, "恐龙", o.MonsterType.Normal, "", "", 6834, 1, 90, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.9, "太空人", o.MonsterType.Normal, "", "", 2278, 1, 90, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 30, 300, 1.3), new o.MonsterProto(27.9, "太空人", o.MonsterType.Normal, "", "", 3796, 1, 90, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 30, 190, 1.3), new o.MonsterProto(28.9, "太空人", o.MonsterType.Normal, "", "", 5257, 1, 90, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 30, 300, 1.3), new o.MonsterProto(31.9, "子弹怪", o.MonsterType.Normal, "", "", 700, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(32.9, "子弹怪", o.MonsterType.Normal, "", "", 3e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(33.9, "子弹怪", o.MonsterType.Normal, "", "", 1e4, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.9, "子弹怪", o.MonsterType.Normal, "", "", 25e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.9, "盾牌怪", o.MonsterType.Normal, "", "", 850, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(41.9, "分裂怪", o.MonsterType.Normal, "", "", 350, 1, 80, .2, "Prefabs/Enemy/M11/M11", [ [ 3, 100 ] ], 30, 180, 1.1), new o.MonsterProto(46.9, "死爆子弹怪", o.MonsterType.Normal, "", "", 7e3, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 2, 100 ] ], 30, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 800, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 3) ]), new o.MonsterProto(56.9, "炸弹怪", o.MonsterType.Normal, "", "", 2600, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.9, "炸弹怪", o.MonsterType.Normal, "", "", 8e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.9, "毒液怪", o.MonsterType.Normal, "", "", 180, .67, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.9, "毒液怪", o.MonsterType.Normal, "", "", 190, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.9, "快僵尸", o.MonsterType.Normal, "", "", 1100, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 180, 1.3), new o.MonsterProto(67.9, "快僵尸", o.MonsterType.Normal, "", "", 3417, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 300, 1.3), new o.MonsterProto(71.9, "机器人", o.MonsterType.Normal, "", "", 11e3, 1, 90, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(1001.7, "摩托男_精英", o.MonsterType.Elite, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M20/M20", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5), new o.MonsterProto(1002.7, "机器人_精英", o.MonsterType.Elite, "", "", 3e3, 1, 90, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 200, 1.5), new o.MonsterProto(1003.7, "死爆子弹_精英", o.MonsterType.Elite, "", "", 15e3, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 300, 2, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 15) ]), new o.MonsterProto(1004.7, "恐龙_精英", o.MonsterType.Elite, "", "", 38e3, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.5), new o.MonsterProto(1005.7, "飞船_BOSS", o.MonsterType.Boss, "", "", 8e4, 1, 0, .2, "Prefabs/Enemy/M29/M29", [ [ 1, 100 ] ], 20, 99999999, 1, [ new o.MonsterSkillProto(1005.01, 0, 1, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill01", 4), new o.MonsterSkillProto(1005.02, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill02", 4), new o.MonsterSkillProto(1005.03, 0, 2, 300, 99999, 0, 0, "Prefabs/Enemy/M29/Skill03", 3), new o.MonsterSkillProto(1005.04, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill04", 1), new o.MonsterSkillProto(1005.05, 0, 1, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill01", 6), new o.MonsterSkillProto(1005.06, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill02", 6), new o.MonsterSkillProto(1005.07, 0, 2, 300, 99999, 0, 0, "Prefabs/Enemy/M29/Skill03", 4) ], 0, 1005.9), new o.MonsterProto(1001.8, "摩托男_精英", o.MonsterType.Elite, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M20/M20", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5), new o.MonsterProto(1002.8, "机器人_精英", o.MonsterType.Elite, "", "", 3500, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 200, 1.5), new o.MonsterProto(1003.8, "死爆子弹_精英", o.MonsterType.Elite, "", "", 16e3, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 300, 2, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 15) ]), new o.MonsterProto(1004.8, "恐龙_精英", o.MonsterType.Elite, "", "", 46e3, 1, 110, .2, "Prefabs/Enemy/M27/M27", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.5), new o.MonsterProto(1005.8, "飞船_BOSS", o.MonsterType.Boss, "", "", 9e4, 1, 0, .2, "Prefabs/Enemy/M29/M29", [ [ 1, 100 ] ], 20, 99999999, 1, [ new o.MonsterSkillProto(1005.01, 0, 1, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill01", 4), new o.MonsterSkillProto(1005.02, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill02", 4), new o.MonsterSkillProto(1005.03, 0, 2, 300, 99999, 0, 0, "Prefabs/Enemy/M29/Skill03", 3), new o.MonsterSkillProto(1005.04, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill04", 1), new o.MonsterSkillProto(1005.05, 0, 1, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill01", 6), new o.MonsterSkillProto(1005.06, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill02", 6), new o.MonsterSkillProto(1005.07, 0, 2, 300, 99999, 0, 0, "Prefabs/Enemy/M29/Skill03", 5) ], 0, 1005.9), new o.MonsterProto(1001.9, "摩托男_精英", o.MonsterType.Elite, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M20/M20", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5), new o.MonsterProto(1002.9, "机器人_精英", o.MonsterType.Elite, "", "", 4e3, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 200, 1.5), new o.MonsterProto(1003.9, "死爆子弹_精英", o.MonsterType.Elite, "", "", 18e3, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 300, 2, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 15) ]), new o.MonsterProto(1004.9, "恐龙_精英", o.MonsterType.Elite, "", "", 55e3, 1, 120, .2, "Prefabs/Enemy/M27/M27", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.5), new o.MonsterProto(1005.9, "飞船_BOSS", o.MonsterType.Boss, "", "", 1e5, 1, 0, .2, "Prefabs/Enemy/M29/M29", [ [ 1, 100 ] ], 20, 99999999, 1, [ new o.MonsterSkillProto(1005.01, 0, 1, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill01", 4), new o.MonsterSkillProto(1005.02, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill02", 6), new o.MonsterSkillProto(1005.03, 0, 2, 300, 99999, 0, 0, "Prefabs/Enemy/M29/Skill03", 4), new o.MonsterSkillProto(1005.04, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill04", 1), new o.MonsterSkillProto(1005.05, 0, 1, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill01", 8), new o.MonsterSkillProto(1005.06, 0, 2, 600, 99999, 0, 0, "Prefabs/Enemy/M29/Skill02", 6), new o.MonsterSkillProto(1005.07, 0, 2, 300, 99999, 0, 0, "Prefabs/Enemy/M29/Skill03", 5) ], 0, 1005.9), new o.MonsterProto(1006.9, "召唤小飞船", o.MonsterType.Normal, "", "", 4e3, 1, 80, .2, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 10, 200, 1.5) ]);
cc._RF.pop();
}, {
"./MonsterConfig": "MonsterConfig"
} ],
MonsterConfig_Chapter4: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d1743XONRNF0IHPc3E74cAP", "MonsterConfig_Chapter4");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./MonsterConfig");
o.MonsterConfig.AddLMonsterConfig.apply(o.MonsterConfig, [ new o.MonsterProto(1.11, "食人花", o.MonsterType.Normal, "", "", 53, .67, 50, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(2.11, "食人花", o.MonsterType.Normal, "", "", 58, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(3.11, "食人花", o.MonsterType.Normal, "", "", 102, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(4.11, "食人花", o.MonsterType.Normal, "", "", 263, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(6.11, "电锯人", o.MonsterType.Normal, "", "", 427, .1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.11, "电锯人", o.MonsterType.Normal, "", "", 582, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.11, "电锯人", o.MonsterType.Normal, "", "", 1276, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.11, "电锯人", o.MonsterType.Normal, "", "", 5011, 1, 95, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.11, "爆炸怪", o.MonsterType.Normal, "", "", 50, 1, 75, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.11, "爆炸怪", o.MonsterType.Normal, "", "", 130, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.11, "爆炸怪", o.MonsterType.Normal, "", "", 300, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.11, "爆炸怪", o.MonsterType.Normal, "", "", 900, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.11, "爆炸怪", o.MonsterType.Normal, "", "", 1200, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.11, "摩托男", o.MonsterType.Normal, "", "", 1002, 1, 85, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.11, "恐龙", o.MonsterType.Normal, "", "", 8200, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.11, "飞行怪", o.MonsterType.Normal, "", "", 2733, 1, 85, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(27.11, "飞行怪", o.MonsterType.Normal, "", "", 4556, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(28.11, "飞行怪", o.MonsterType.Normal, "", "", 6308, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 30, 300, 1.3), new o.MonsterProto(33.11, "子弹怪", o.MonsterType.Normal, "", "", 13e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(34.11, "子弹怪", o.MonsterType.Normal, "", "", 2e4, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.11, "盾牌怪", o.MonsterType.Normal, "", "", 400, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(56.11, "炸弹怪", o.MonsterType.Normal, "", "", 1600, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.11, "炸弹怪", o.MonsterType.Normal, "", "", 3500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.11, "毒液怪", o.MonsterType.Normal, "", "", 180, .67, 75, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.11, "毒液怪", o.MonsterType.Normal, "", "", 500, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.11, "快女鬼", o.MonsterType.Normal, "", "", 1400, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 180, 1.05), new o.MonsterProto(67.11, "快女鬼", o.MonsterType.Normal, "", "", 4100, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 300, 1.05), new o.MonsterProto(71.11, "机器人", o.MonsterType.Normal, "", "", 22e3, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(72.11, "火箭筒", o.MonsterType.Normal, "", "", 1100, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 550), new o.MonsterProto(73.11, "火箭筒", o.MonsterType.Normal, "", "", 6e3, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 550), new o.MonsterProto(75.11, "激光外星人", o.MonsterType.Normal, "", "", 400, 1, 150, 0, "Prefabs/Enemy/M28/M28", [ [ 2, 100 ] ], 30, 300, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 0, 4, 0, 0, "Prefabs/Enemy/M28/Skill") ], 550), new o.MonsterProto(1.12, "食人花", o.MonsterType.Normal, "", "", 53, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(2.12, "食人花", o.MonsterType.Normal, "", "", 64, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(3.12, "食人花", o.MonsterType.Normal, "", "", 112, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(4.12, "食人花", o.MonsterType.Normal, "", "", 289, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(6.12, "电锯人", o.MonsterType.Normal, "", "", 470, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.12, "电锯人", o.MonsterType.Normal, "", "", 699, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.12, "电锯人", o.MonsterType.Normal, "", "", 1531, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.12, "电锯人", o.MonsterType.Normal, "", "", 6014, 1, 95, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.12, "爆炸怪", o.MonsterType.Normal, "", "", 60, 1, 75, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.12, "爆炸怪", o.MonsterType.Normal, "", "", 140, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.12, "爆炸怪", o.MonsterType.Normal, "", "", 450, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.12, "爆炸怪", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.12, "爆炸怪", o.MonsterType.Normal, "", "", 1500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.12, "摩托男", o.MonsterType.Normal, "", "", 1203, 1, 85, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.12, "恐龙", o.MonsterType.Normal, "", "", 9840, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.12, "飞行怪", o.MonsterType.Normal, "", "", 3280, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(27.12, "飞行怪", o.MonsterType.Normal, "", "", 5467, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(28.12, "飞行怪", o.MonsterType.Normal, "", "", 7569, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 30, 300, 1.3), new o.MonsterProto(33.12, "子弹怪", o.MonsterType.Normal, "", "", 15e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.12, "子弹怪", o.MonsterType.Normal, "", "", 18e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.12, "盾牌怪", o.MonsterType.Normal, "", "", 700, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 30, 200, 1), new o.MonsterProto(56.12, "炸弹怪", o.MonsterType.Normal, "", "", 2e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.12, "炸弹怪", o.MonsterType.Normal, "", "", 5500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.12, "毒液怪", o.MonsterType.Normal, "", "", 200, .67, 75, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.12, "毒液怪", o.MonsterType.Normal, "", "", 600, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.12, "快女鬼", o.MonsterType.Normal, "", "", 1700, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 180, 1.05), new o.MonsterProto(67.12, "快女鬼", o.MonsterType.Normal, "", "", 4920, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 300, 1.05), new o.MonsterProto(71.12, "机器人", o.MonsterType.Normal, "", "", 25e3, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(72.12, "火箭筒", o.MonsterType.Normal, "", "", 1300, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 550), new o.MonsterProto(73.12, "火箭筒", o.MonsterType.Normal, "", "", 7200, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 550), new o.MonsterProto(75.12, "激光外星人", o.MonsterType.Normal, "", "", 500, 1, 150, 0, "Prefabs/Enemy/M28/M28", [ [ 2, 100 ] ], 30, 300, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 0, 4, 0, 0, "Prefabs/Enemy/M28/Skill") ], 550), new o.MonsterProto(1.13, "食人花", o.MonsterType.Normal, "", "", 58, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(2.13, "食人花", o.MonsterType.Normal, "", "", 71, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(3.13, "食人花", o.MonsterType.Normal, "", "", 123, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(4.13, "食人花", o.MonsterType.Normal, "", "", 318, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(6.13, "电锯人", o.MonsterType.Normal, "", "", 517, 1, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.13, "电锯人", o.MonsterType.Normal, "", "", 838, 1, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.13, "电锯人", o.MonsterType.Normal, "", "", 1837, 1, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.13, "电锯人", o.MonsterType.Normal, "", "", 7216, 1, 95, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.13, "爆炸怪", o.MonsterType.Normal, "", "", 60, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.13, "爆炸怪", o.MonsterType.Normal, "", "", 160, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.13, "爆炸怪", o.MonsterType.Normal, "", "", 500, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.13, "爆炸怪", o.MonsterType.Normal, "", "", 1200, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.13, "爆炸怪", o.MonsterType.Normal, "", "", 2e3, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.13, "摩托男", o.MonsterType.Normal, "", "", 1443, 1, 85, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.13, "恐龙", o.MonsterType.Normal, "", "", 11808, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.13, "飞行怪", o.MonsterType.Normal, "", "", 3936, 1, 95, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 30, 300, 1.3), new o.MonsterProto(27.13, "飞行怪", o.MonsterType.Normal, "", "", 6560, 1, 95, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 30, 190, 1.3), new o.MonsterProto(28.13, "飞行怪", o.MonsterType.Normal, "", "", 9083, 1, 95, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 30, 300, 1.3), new o.MonsterProto(33.13, "子弹怪", o.MonsterType.Normal, "", "", 18e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.13, "子弹怪", o.MonsterType.Normal, "", "", 25e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.13, "盾牌怪", o.MonsterType.Normal, "", "", 850, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(56.13, "炸弹怪", o.MonsterType.Normal, "", "", 2600, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.13, "炸弹怪", o.MonsterType.Normal, "", "", 8e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.13, "毒液怪", o.MonsterType.Normal, "", "", 220, .67, 75, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.13, "毒液怪", o.MonsterType.Normal, "", "", 720, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.13, "快女鬼", o.MonsterType.Normal, "", "", 2e3, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 180, 1.05), new o.MonsterProto(67.13, "快女鬼", o.MonsterType.Normal, "", "", 5904, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 300, 1.05), new o.MonsterProto(71.13, "机器人", o.MonsterType.Normal, "", "", 3e4, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(72.13, "火箭筒", o.MonsterType.Normal, "", "", 1600, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 550), new o.MonsterProto(73.13, "火箭筒", o.MonsterType.Normal, "", "", 8800, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 550), new o.MonsterProto(75.13, "激光外星人", o.MonsterType.Normal, "", "", 600, 1, 150, 0, "Prefabs/Enemy/M28/M28", [ [ 2, 100 ] ], 30, 300, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 0, 4, 0, 0, "Prefabs/Enemy/M28/Skill") ], 550), new o.MonsterProto(1001.11, "青蛙_精英", o.MonsterType.Elite, "", "", 1500, 1, 0, .2, "Prefabs/Enemy/M31/M31", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5, [ new o.MonsterSkillProto(1, 0, 1, 0, 2, 0, 0, "Prefabs/Enemy/M31/Skill") ]), new o.MonsterProto(1002.11, "死爆子弹_精英", o.MonsterType.Elite, "", "", 4e3, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 300, 2, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 15) ]), new o.MonsterProto(1003.11, "机器人_精英", o.MonsterType.Elite, "", "", 18e3, 1, 90, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 200, 1.5), new o.MonsterProto(1004.11, "恐龙_精英", o.MonsterType.Elite, "", "", 33e3, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.5), new o.MonsterProto(1005.11, "火尸狼_BOSS", o.MonsterType.Boss, "", "", 9e4, 1, 130, .2, "Prefabs/Enemy/Boss04/Boss01", [ [ 1, 100 ] ], 2e3, 300, 1, [ new o.MonsterSkillProto(1005.01, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill01", 1), new o.MonsterSkillProto(1005.02, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill01", 2), new o.MonsterSkillProto(1005.03, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill06", 1), new o.MonsterSkillProto(1005.05, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill07", 2), new o.MonsterSkillProto(1005.04, 0, 1, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill05", 1) ], 0, 1005.11), new o.MonsterProto(1006.11, "毒尸狼_BOSS", o.MonsterType.Boss, "", "", 9e4, 1, 130, .2, "Prefabs/Enemy/Boss04/Boss02", [ [ 1, 100 ] ], 2e3, 300, 1, [ new o.MonsterSkillProto(1005.01, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill02", 1), new o.MonsterSkillProto(1005.02, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill02", 2), new o.MonsterSkillProto(1005.03, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill06", 1), new o.MonsterSkillProto(1005.05, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill07", 2), new o.MonsterSkillProto(1005.04, 0, 1, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill05", 1) ], 0, 1006.11), new o.MonsterProto(1005.111, "召唤小尸狼", o.MonsterType.Normal, "", "", 5e3, 1, 120, .2, "Prefabs/Enemy/Boss04/BossMini", [ [ 0, 100 ] ], 10, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1005.111), new o.MonsterProto(1006.111, "召唤小尸狼", o.MonsterType.Normal, "", "", 5e3, 1, 120, .2, "Prefabs/Enemy/Boss04/BossMini", [ [ 0, 100 ] ], 10, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1005.111), new o.MonsterProto(1001.12, "青蛙_精英", o.MonsterType.Elite, "", "", 1600, 1, 0, .2, "Prefabs/Enemy/M31/M31", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5, [ new o.MonsterSkillProto(1, 0, 1, 0, 3, 0, 0, "Prefabs/Enemy/M31/Skill") ]), new o.MonsterProto(1002.12, "死爆子弹_精英", o.MonsterType.Elite, "", "", 4500, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 300, 2, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 15) ]), new o.MonsterProto(1003.12, "机器人_精英", o.MonsterType.Elite, "", "", 19e3, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 200, 1.5), new o.MonsterProto(1004.12, "恐龙_精英", o.MonsterType.Elite, "", "", 4e4, 1, 110, .2, "Prefabs/Enemy/M27/M27", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.5), new o.MonsterProto(1005.12, "火尸狼_BOSS", o.MonsterType.Boss, "", "", 1e5, 1, 130, .2, "Prefabs/Enemy/Boss04/Boss01", [ [ 1, 100 ] ], 2e3, 300, 1, [ new o.MonsterSkillProto(1005.01, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill01", 1), new o.MonsterSkillProto(1005.02, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill01", 2), new o.MonsterSkillProto(1005.03, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill06", 1), new o.MonsterSkillProto(1005.05, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill07", 2), new o.MonsterSkillProto(1005.04, 0, 1, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill05", 1) ], 0, 1005.11), new o.MonsterProto(1006.12, "毒尸狼_BOSS", o.MonsterType.Boss, "", "", 1e5, 1, 130, .2, "Prefabs/Enemy/Boss04/Boss02", [ [ 1, 100 ] ], 2e3, 300, 1, [ new o.MonsterSkillProto(1005.01, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill02", 1), new o.MonsterSkillProto(1005.02, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill02", 2), new o.MonsterSkillProto(1005.03, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill06", 1), new o.MonsterSkillProto(1005.05, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill07", 2), new o.MonsterSkillProto(1005.04, 0, 1, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill05", 1) ], 0, 1006.11), new o.MonsterProto(1001.13, "青蛙_精英", o.MonsterType.Elite, "", "", 1800, 1, 0, .2, "Prefabs/Enemy/M31/M31", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5, [ new o.MonsterSkillProto(1, 0, 1, 0, 3, 0, 0, "Prefabs/Enemy/M31/Skill") ]), new o.MonsterProto(1002.13, "死爆子弹_精英", o.MonsterType.Elite, "", "", 5500, 1, 100, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 300, 2, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 15) ]), new o.MonsterProto(1003.13, "机器人_精英", o.MonsterType.Elite, "", "", 22e3, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 200, 1.5), new o.MonsterProto(1004.13, "恐龙_精英", o.MonsterType.Elite, "", "", 48e3, 1, 120, .2, "Prefabs/Enemy/M27/M27", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, 1.5), new o.MonsterProto(1005.13, "火尸狼_BOSS", o.MonsterType.Boss, "", "", 11e4, 1, 130, .2, "Prefabs/Enemy/Boss04/Boss01", [ [ 1, 100 ] ], 2e3, 300, 1, [ new o.MonsterSkillProto(1005.01, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill01", 1), new o.MonsterSkillProto(1005.02, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill01", 2), new o.MonsterSkillProto(1005.03, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill06", 1), new o.MonsterSkillProto(1005.05, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill07", 2), new o.MonsterSkillProto(1005.04, 0, 1, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill05", 1) ], 0, 1005.11), new o.MonsterProto(1006.13, "毒尸狼_BOSS", o.MonsterType.Boss, "", "", 11e4, 1, 130, .2, "Prefabs/Enemy/Boss04/Boss02", [ [ 1, 100 ] ], 2e3, 300, 1, [ new o.MonsterSkillProto(1005.01, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill02", 1), new o.MonsterSkillProto(1005.02, 0, 0, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill02", 2), new o.MonsterSkillProto(1005.03, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill06", 1), new o.MonsterSkillProto(1005.05, 0, 0, 1200, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill07", 2), new o.MonsterSkillProto(1005.04, 0, 1, 0, 15, 0, 0, "Prefabs/Enemy/Boss04/Skills/Skill05", 1) ], 0, 1006.11), new o.MonsterProto(104, "青蛙", o.MonsterType.Normal, "", "", 53, 1, 0, 0, "Prefabs/Enemy/M31/M31", [ [ 0, 100 ] ], 10, 50, 1, [ new o.MonsterSkillProto(1, 0, 1, 0, 3, 0, 0, "Prefabs/Enemy/M31/Skill") ]), new o.MonsterProto(105, "火箭筒", o.MonsterType.Normal, "", "", 53, 1, 100, 0, "Prefabs/Enemy/M32/M32", [ [ 0, 100 ] ], 10, 50, 1, [ new o.MonsterSkillProto(1, 0, 1, 450, 5, 0, 0, "Prefabs/Enemy/M32/Skill") ], 450), new o.MonsterProto(106, "激光外星人", o.MonsterType.Normal, "", "", 53, 1, 100, 0, "Prefabs/Enemy/M28/M28", [ [ 0, 100 ] ], 3, 50, 1, [ new o.MonsterSkillProto(1, 0, 1, 0, 5, 0, 0, "Prefabs/Enemy/M28/Skill") ], 550), new o.MonsterProto(107, "苍蝇", o.MonsterType.Normal, "", "", 53, 1, 100, 0, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 3, 50, 1), new o.MonsterProto(108, "食人花", o.MonsterType.Normal, "", "", 53, 1, 100, 0, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 3, 50, 1) ]);
cc._RF.pop();
}, {
"./MonsterConfig": "MonsterConfig"
} ],
MonsterConfig_Chapter5: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "49e24LQqv1J5Lho5/Fub+3B", "MonsterConfig_Chapter5");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./MonsterConfig");
o.MonsterConfig.AddLMonsterConfig.apply(o.MonsterConfig, [ new o.MonsterProto(1.14, "提包僵尸", o.MonsterType.Normal, "", "", 58, .67, 50, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.14, "提包僵尸", o.MonsterType.Normal, "", "", 71, .67, 60, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.14, "提包僵尸", o.MonsterType.Normal, "", "", 136, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(4.14, "提包僵尸", o.MonsterType.Normal, "", "", 350, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.14, "提刀怪", o.MonsterType.Normal, "", "", 568, .1, 75, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.14, "提刀怪", o.MonsterType.Normal, "", "", 1006, 1, 75, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.14, "提刀怪", o.MonsterType.Normal, "", "", 2204, 1, 75, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.14, "提刀怪", o.MonsterType.Normal, "", "", 8659, 1, 95, .2, "Prefabs/Enemy/M18/M18", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.14, "爆炸怪", o.MonsterType.Normal, "", "", 60, 1, 75, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.14, "爆炸怪", o.MonsterType.Normal, "", "", 200, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.14, "爆炸怪", o.MonsterType.Normal, "", "", 500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.14, "爆炸怪", o.MonsterType.Normal, "", "", 900, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.14, "爆炸怪", o.MonsterType.Normal, "", "", 3e3, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.14, "摩托男", o.MonsterType.Normal, "", "", 1732, 1, 85, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.14, "恐龙", o.MonsterType.Normal, "", "", 14170, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.14, "飞行怪", o.MonsterType.Normal, "", "", 4723, 1, 85, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(27.14, "飞行怪", o.MonsterType.Normal, "", "", 7872, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(28.14, "飞行怪", o.MonsterType.Normal, "", "", 10900, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 2, 100 ] ], 30, 300, 1.3), new o.MonsterProto(33.14, "子弹怪", o.MonsterType.Normal, "", "", 13e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(34.14, "子弹怪", o.MonsterType.Normal, "", "", 2e4, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.14, "盾牌怪", o.MonsterType.Normal, "", "", 450, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(56.14, "炸弹怪", o.MonsterType.Normal, "", "", 1600, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.14, "炸弹怪", o.MonsterType.Normal, "", "", 3500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.14, "毒液怪", o.MonsterType.Normal, "", "", 180, .67, 75, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.14, "毒液怪", o.MonsterType.Normal, "", "", 500, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.14, "快僵尸", o.MonsterType.Normal, "", "", 2400, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 180, 1.3), new o.MonsterProto(67.14, "快僵尸", o.MonsterType.Normal, "", "", 7085, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 300, 1.3), new o.MonsterProto(71.14, "机器人", o.MonsterType.Normal, "", "", 22e3, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(72.14, "火箭筒", o.MonsterType.Normal, "", "", 1300, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(73.14, "火箭筒", o.MonsterType.Normal, "", "", 9e3, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(75.14, "激光外星人", o.MonsterType.Normal, "", "", 750, 1, 150, 0, "Prefabs/Enemy/M28/M28", [ [ 2, 100 ] ], 30, 300, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 0, 4, 0, 0, "Prefabs/Enemy/M28/Skill") ], 500), new o.MonsterProto(78.14, "混乱博士", o.MonsterType.Normal, "", "", 1400, 1, 150, .2, "Prefabs/Enemy/M35/M35", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3.5, 0, 0, "Prefabs/Enemy/M35/Skill") ], 430), new o.MonsterProto(1.15, "提包僵尸", o.MonsterType.Normal, "", "", 58, .67, 60, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.15, "提包僵尸", o.MonsterType.Normal, "", "", 71, .67, 60, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.15, "提包僵尸", o.MonsterType.Normal, "", "", 149, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(4.15, "提包僵尸", o.MonsterType.Normal, "", "", 385, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.15, "提刀怪", o.MonsterType.Normal, "", "", 625, 1, 75, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.15, "提刀怪", o.MonsterType.Normal, "", "", 1207, 1, 75, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.15, "提刀怪", o.MonsterType.Normal, "", "", 2645, 1, 75, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.15, "提刀怪", o.MonsterType.Normal, "", "", 10391, 1, 95, .2, "Prefabs/Enemy/M18/M18", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.15, "爆炸怪", o.MonsterType.Normal, "", "", 70, 1, 75, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.15, "爆炸怪", o.MonsterType.Normal, "", "", 250, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.15, "爆炸怪", o.MonsterType.Normal, "", "", 600, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.15, "爆炸怪", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.15, "爆炸怪", o.MonsterType.Normal, "", "", 3500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.15, "摩托男", o.MonsterType.Normal, "", "", 2078, 1, 85, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.15, "恐龙", o.MonsterType.Normal, "", "", 15587, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.15, "飞行怪", o.MonsterType.Normal, "", "", 5668, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(27.15, "飞行怪", o.MonsterType.Normal, "", "", 9447, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(28.15, "飞行怪", o.MonsterType.Normal, "", "", 13080, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 2, 100 ] ], 30, 300, 1.3), new o.MonsterProto(33.15, "子弹怪", o.MonsterType.Normal, "", "", 15e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.15, "子弹怪", o.MonsterType.Normal, "", "", 22e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.15, "盾牌怪", o.MonsterType.Normal, "", "", 500, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 30, 200, 1), new o.MonsterProto(56.15, "炸弹怪", o.MonsterType.Normal, "", "", 2e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.15, "炸弹怪", o.MonsterType.Normal, "", "", 5500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.15, "毒液怪", o.MonsterType.Normal, "", "", 200, .67, 75, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.15, "毒液怪", o.MonsterType.Normal, "", "", 1700, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.15, "快僵尸", o.MonsterType.Normal, "", "", 2900, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 180, 1.3), new o.MonsterProto(67.15, "快僵尸", o.MonsterType.Normal, "", "", 8502, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 300, 1.3), new o.MonsterProto(71.15, "机器人", o.MonsterType.Normal, "", "", 25e3, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(72.15, "火箭筒", o.MonsterType.Normal, "", "", 2e3, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(73.15, "火箭筒", o.MonsterType.Normal, "", "", 11e3, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(75.15, "激光外星人", o.MonsterType.Normal, "", "", 850, 1, 150, 0, "Prefabs/Enemy/M28/M28", [ [ 2, 100 ] ], 30, 300, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 0, 4, 0, 0, "Prefabs/Enemy/M28/Skill") ], 500), new o.MonsterProto(78.15, "混乱博士", o.MonsterType.Normal, "", "", 2e3, 1, 150, .2, "Prefabs/Enemy/M35/M35", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3.5, 0, 0, "Prefabs/Enemy/M35/Skill") ], 430), new o.MonsterProto(1.16, "提包僵尸", o.MonsterType.Normal, "", "", 64, .67, 60, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.16, "提包僵尸", o.MonsterType.Normal, "", "", 78, .67, 60, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.16, "提包僵尸", o.MonsterType.Normal, "", "", 164, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(4.16, "提包僵尸", o.MonsterType.Normal, "", "", 423, 1, 70, .2, "Prefabs/Enemy/M25/M25", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.16, "提刀怪", o.MonsterType.Normal, "", "", 688, 1, 80, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.16, "提刀怪", o.MonsterType.Normal, "", "", 1449, 1, 80, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.16, "提刀怪", o.MonsterType.Normal, "", "", 3174, 1, 80, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.16, "提刀怪", o.MonsterType.Normal, "", "", 12470, 1, 95, .2, "Prefabs/Enemy/M18/M18", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.16, "爆炸怪", o.MonsterType.Normal, "", "", 80, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.16, "爆炸怪", o.MonsterType.Normal, "", "", 300, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.16, "爆炸怪", o.MonsterType.Normal, "", "", 700, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.16, "爆炸怪", o.MonsterType.Normal, "", "", 1200, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.16, "爆炸怪", o.MonsterType.Normal, "", "", 4e3, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.16, "摩托男", o.MonsterType.Normal, "", "", 2494, 1, 85, .2, "Prefabs/Enemy/M20/M20", [ [ 0, 100 ] ], 15, 150, .8), new o.MonsterProto(21.16, "恐龙", o.MonsterType.Normal, "", "", 18704, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.16, "飞行怪", o.MonsterType.Normal, "", "", 6802, 1, 95, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(27.16, "飞行怪", o.MonsterType.Normal, "", "", 11336, 1, 95, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(28.16, "飞行怪", o.MonsterType.Normal, "", "", 15696, 1, 95, .2, "Prefabs/Enemy/M33/M33", [ [ 2, 100 ] ], 30, 300, 1.3), new o.MonsterProto(33.16, "子弹怪", o.MonsterType.Normal, "", "", 18e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.16, "子弹怪", o.MonsterType.Normal, "", "", 25e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.16, "盾牌怪", o.MonsterType.Normal, "", "", 650, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(56.16, "炸弹怪", o.MonsterType.Normal, "", "", 2600, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.16, "炸弹怪", o.MonsterType.Normal, "", "", 8e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.16, "毒液怪", o.MonsterType.Normal, "", "", 220, .67, 75, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.16, "毒液怪", o.MonsterType.Normal, "", "", 2e3, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.16, "快僵尸", o.MonsterType.Normal, "", "", 3400, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 180, 1.3), new o.MonsterProto(67.16, "快僵尸", o.MonsterType.Normal, "", "", 10202, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 300, 1.3), new o.MonsterProto(71.16, "机器人", o.MonsterType.Normal, "", "", 3e4, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(72.16, "火箭筒", o.MonsterType.Normal, "", "", 2500, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(73.16, "火箭筒", o.MonsterType.Normal, "", "", 14e3, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(75.16, "激光外星人", o.MonsterType.Normal, "", "", 1e3, 1, 150, 0, "Prefabs/Enemy/M28/M28", [ [ 2, 100 ] ], 30, 300, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 0, 4, 0, 0, "Prefabs/Enemy/M28/Skill") ], 500), new o.MonsterProto(78.16, "混乱博士", o.MonsterType.Normal, "", "", 2500, 1, 150, .2, "Prefabs/Enemy/M35/M35", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3.5, 0, 0, "Prefabs/Enemy/M35/Skill") ], 430), new o.MonsterProto(1001.14, "青蛙_精英", o.MonsterType.Elite, "", "", 1800, 1, 0, .2, "Prefabs/Enemy/M31/M31", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5, [ new o.MonsterSkillProto(1, 0, 1, 0, 2, 0, 0, "Prefabs/Enemy/M31/Skill") ]), new o.MonsterProto(1002.14, "尸狼_精英", o.MonsterType.Elite, "", "", 6e3, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 300, 1.6, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003), new o.MonsterProto(1003.14, "机器人_精英", o.MonsterType.Elite, "", "", 25e3, 1, 70, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 200, 1.3), new o.MonsterProto(1004.14, "夫人_精英", o.MonsterType.Elite, "", "", 56e3, 1, 120, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(1, 0, 1, 0, 8, 0, 0, "Prefabs/Enemy/M07/Skill01") ]), new o.MonsterProto(1005.14, "鬼王_BOSS", o.MonsterType.Boss, "", "", 11e4, 1, 80, .2, "Prefabs/Enemy/Boss05/Boss", [ [ 1, 100 ] ], 2e3, 300, 1.5, [ new o.MonsterSkillProto(1005.01, 0, 1, 3e3, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill03", 1), new o.MonsterSkillProto(1005.011, 0, 2, 600, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill03_1", 1), new o.MonsterSkillProto(1005.02, 0, 2, 3e3, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill01", 3), new o.MonsterSkillProto(1005.03, 0, 2, 3e3, 13, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill02", 8), new o.MonsterSkillProto(1005.04, 0, 2, 3e3, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill01", 4), new o.MonsterSkillProto(1005.05, 0, 2, 3e3, 13, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill02", 12) ], 0, 1005.14), new o.MonsterProto(1001.15, "青蛙_精英", o.MonsterType.Elite, "", "", 2e3, 1, 0, .2, "Prefabs/Enemy/M31/M31", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5, [ new o.MonsterSkillProto(1, 0, 1, 0, 3, 0, 0, "Prefabs/Enemy/M31/Skill") ]), new o.MonsterProto(1002.15, "尸狼_精英", o.MonsterType.Elite, "", "", 7e3, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 300, 1.6, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003), new o.MonsterProto(1003.15, "机器人_精英", o.MonsterType.Elite, "", "", 29e3, 1, 70, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 200, 1.3), new o.MonsterProto(1004.15, "夫人_精英", o.MonsterType.Elite, "", "", 65e3, 1, 120, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(1, 0, 1, 0, 8, 0, 0, "Prefabs/Enemy/M07/Skill01") ]), new o.MonsterProto(1005.15, "鬼王_BOSS", o.MonsterType.Boss, "", "", 125e3, 1, 80, .2, "Prefabs/Enemy/Boss05/Boss", [ [ 1, 100 ] ], 2e3, 300, 1.5, [ new o.MonsterSkillProto(1005.01, 0, 1, 3e3, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill03", 1), new o.MonsterSkillProto(1005.011, 0, 2, 700, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill03_1", 1), new o.MonsterSkillProto(1005.02, 0, 2, 3e3, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill01", 3), new o.MonsterSkillProto(1005.03, 0, 2, 3e3, 13, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill02", 10), new o.MonsterSkillProto(1005.04, 0, 2, 3e3, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill01", 5), new o.MonsterSkillProto(1005.05, 0, 2, 3e3, 13, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill02", 12) ], 0, 1005.14), new o.MonsterProto(1001.16, "青蛙_精英", o.MonsterType.Elite, "", "", 2300, 1, 0, .2, "Prefabs/Enemy/M31/M31", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5, [ new o.MonsterSkillProto(1, 0, 1, 0, 3, 0, 0, "Prefabs/Enemy/M31/Skill") ]), new o.MonsterProto(1002.16, "尸狼_精英", o.MonsterType.Elite, "", "", 8e3, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 300, 1.6, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003), new o.MonsterProto(1003.16, "机器人_精英", o.MonsterType.Elite, "", "", 35e3, 1, 70, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 200, 1.3), new o.MonsterProto(1004.16, "夫人_精英", o.MonsterType.Elite, "", "", 72e3, 1, 120, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(1, 0, 1, 0, 8, 0, 0, "Prefabs/Enemy/M07/Skill01") ]), new o.MonsterProto(1005.16, "鬼王_BOSS", o.MonsterType.Boss, "", "", 14e4, 1, 80, .2, "Prefabs/Enemy/Boss05/Boss", [ [ 1, 100 ] ], 2e3, 300, 1.5, [ new o.MonsterSkillProto(1005.01, 0, 1, 3e3, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill03", 1), new o.MonsterSkillProto(1005.011, 0, 2, 800, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill03_1", 1), new o.MonsterSkillProto(1005.02, 0, 2, 4e3, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill01", 3), new o.MonsterSkillProto(1005.03, 0, 2, 4e3, 13, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill02", 10), new o.MonsterSkillProto(1005.04, 0, 2, 4e3, 15, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill01", 6), new o.MonsterSkillProto(1005.05, 0, 2, 4e3, 13, 0, 0, "Prefabs/Enemy/Boss05/Skills/Skill02", 12) ], 0, 1005.14) ]);
cc._RF.pop();
}, {
"./MonsterConfig": "MonsterConfig"
} ],
MonsterConfig_Chapter6: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3128erMq31OEqVoUwuZLi0k", "MonsterConfig_Chapter6");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./MonsterConfig");
o.MonsterConfig.AddLMonsterConfig.apply(o.MonsterConfig, [ new o.MonsterProto(6001, "复活骨头", o.MonsterType.Normal, "", "", 53, 1, 60, .2, "Prefabs/Enemy/M36/M36", [ [ 0, 100 ] ], 10, 50, 1.1), new o.MonsterProto(6002, "混乱博士", o.MonsterType.Normal, "", "", 53, 1, 150, .2, "Prefabs/Enemy/M35/M35", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3.5, 0, 0, "Prefabs/Enemy/M35/Skill") ], 430), new o.MonsterProto(6003, "树人", o.MonsterType.Normal, "", "", 53, 1, 150, .2, "Prefabs/Enemy/M37/M37", [ [ 0, 100 ] ], 10, 50, 1.1, [ new o.MonsterSkillProto(1, 0, 0, 60, 5, 0, 0, "Prefabs/Enemy/M37/Skill") ], 430), new o.MonsterProto(1.17, "食人花", o.MonsterType.Normal, "", "", 64, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.17, "食人花", o.MonsterType.Normal, "", "", 78, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.17, "食人花", o.MonsterType.Normal, "", "", 164, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(4.17, "食人花", o.MonsterType.Normal, "", "", 423, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.17, "电锯人", o.MonsterType.Normal, "", "", 688, .1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.17, "电锯人", o.MonsterType.Normal, "", "", 1449, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.17, "电锯人", o.MonsterType.Normal, "", "", 3174, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.17, "电锯人", o.MonsterType.Normal, "", "", 12470, 1, 95, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.17, "爆炸怪", o.MonsterType.Normal, "", "", 78, 1, 75, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.17, "爆炸怪", o.MonsterType.Normal, "", "", 300, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.17, "爆炸怪", o.MonsterType.Normal, "", "", 800, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.17, "爆炸怪", o.MonsterType.Normal, "", "", 1200, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.17, "爆炸怪", o.MonsterType.Normal, "", "", 3e3, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.17, "摩托女", o.MonsterType.Normal, "", "", 2494, 1, 80, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 15, 300, .8), new o.MonsterProto(17.17, "摩托女", o.MonsterType.Normal, "", "", 11336, 1, 80, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 30, 300, .8), new o.MonsterProto(18.17, "摩托女", o.MonsterType.Normal, "", "", 15696, 1, 80, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 30, 300, .8), new o.MonsterProto(21.17, "恐龙", o.MonsterType.Normal, "", "", 18704, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.17, "飞行怪", o.MonsterType.Normal, "", "", 6802, 1, 85, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(27.17, "飞行怪", o.MonsterType.Normal, "", "", 11336, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(28.17, "飞行怪", o.MonsterType.Normal, "", "", 13858, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 30, 300, 1.3), new o.MonsterProto(33.17, "子弹怪", o.MonsterType.Normal, "", "", 15e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(34.17, "子弹怪", o.MonsterType.Normal, "", "", 33e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.17, "盾牌怪", o.MonsterType.Normal, "", "", 507, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(56.17, "炸弹怪", o.MonsterType.Normal, "", "", 2500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.17, "炸弹怪", o.MonsterType.Normal, "", "", 15e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.17, "毒液怪", o.MonsterType.Normal, "", "", 180, .67, 75, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.17, "毒液怪", o.MonsterType.Normal, "", "", 500, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.17, "快僵尸", o.MonsterType.Normal, "", "", 2721, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 180, 1.3), new o.MonsterProto(67.17, "快僵尸", o.MonsterType.Normal, "", "", 10202, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 300, 1.3), new o.MonsterProto(71.17, "机器人", o.MonsterType.Normal, "", "", 25e3, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(72.17, "火箭筒", o.MonsterType.Normal, "", "", 1500, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(73.17, "火箭筒", o.MonsterType.Normal, "", "", 9e3, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(75.17, "激光外星人", o.MonsterType.Normal, "", "", 750, 1, 150, 0, "Prefabs/Enemy/M28/M28", [ [ 2, 100 ] ], 30, 300, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 0, 4, 0, 0, "Prefabs/Enemy/M28/Skill") ], 500), new o.MonsterProto(78.17, "复活骨头", o.MonsterType.Normal, "", "", 120, .67, 70, .2, "Prefabs/Enemy/M36/M36", [ [ 0, 100 ] ], 10, 50, .9), new o.MonsterProto(79.17, "复活骨头", o.MonsterType.Normal, "", "", 250, 1, 70, .2, "Prefabs/Enemy/M36/M36", [ [ 0, 100 ] ], 10, 50, .9), new o.MonsterProto(80.17, "混乱博士", o.MonsterType.Normal, "", "", 9e3, 1, 150, .2, "Prefabs/Enemy/M35/M35", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3.5, 0, 0, "Prefabs/Enemy/M35/Skill") ], 430), new o.MonsterProto(1.18, "食人花", o.MonsterType.Normal, "", "", 64, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.18, "食人花", o.MonsterType.Normal, "", "", 78, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.18, "食人花", o.MonsterType.Normal, "", "", 164, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(4.18, "食人花", o.MonsterType.Normal, "", "", 423, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.18, "电锯人", o.MonsterType.Normal, "", "", 688, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.18, "电锯人", o.MonsterType.Normal, "", "", 1449, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.18, "电锯人", o.MonsterType.Normal, "", "", 3174, 1, 75, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.18, "电锯人", o.MonsterType.Normal, "", "", 13717, 1, 95, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.18, "爆炸怪", o.MonsterType.Normal, "", "", 78, 1, 75, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.18, "爆炸怪", o.MonsterType.Normal, "", "", 330, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.18, "爆炸怪", o.MonsterType.Normal, "", "", 1e3, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.18, "爆炸怪", o.MonsterType.Normal, "", "", 1500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.18, "爆炸怪", o.MonsterType.Normal, "", "", 3500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.18, "摩托女", o.MonsterType.Normal, "", "", 2494, 1, 80, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 15, 300, .8), new o.MonsterProto(17.18, "摩托女", o.MonsterType.Normal, "", "", 11336, 1, 80, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 30, 300, .8), new o.MonsterProto(18.18, "摩托女", o.MonsterType.Normal, "", "", 17266, 1, 80, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 30, 300, .8), new o.MonsterProto(21.18, "恐龙", o.MonsterType.Normal, "", "", 20575, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.18, "飞行怪", o.MonsterType.Normal, "", "", 6802, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(27.18, "飞行怪", o.MonsterType.Normal, "", "", 12470, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(28.18, "飞行怪", o.MonsterType.Normal, "", "", 16630, 1, 90, .2, "Prefabs/Enemy/M33/M33", [ [ 2, 100 ] ], 30, 300, 1.3), new o.MonsterProto(33.18, "子弹怪", o.MonsterType.Normal, "", "", 17e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.18, "子弹怪", o.MonsterType.Normal, "", "", 36e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.18, "盾牌怪", o.MonsterType.Normal, "", "", 507, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 30, 200, 1), new o.MonsterProto(56.18, "炸弹怪", o.MonsterType.Normal, "", "", 3e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.18, "炸弹怪", o.MonsterType.Normal, "", "", 16e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.18, "毒液怪", o.MonsterType.Normal, "", "", 200, .67, 75, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.18, "毒液怪", o.MonsterType.Normal, "", "", 1700, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.18, "快僵尸", o.MonsterType.Normal, "", "", 2721, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 180, 1.3), new o.MonsterProto(67.18, "快僵尸", o.MonsterType.Normal, "", "", 11223, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 300, 1.3), new o.MonsterProto(71.18, "机器人", o.MonsterType.Normal, "", "", 28e3, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(72.18, "火箭筒", o.MonsterType.Normal, "", "", 2500, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(73.18, "火箭筒", o.MonsterType.Normal, "", "", 11e3, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(75.18, "激光外星人", o.MonsterType.Normal, "", "", 850, 1, 150, 0, "Prefabs/Enemy/M28/M28", [ [ 2, 100 ] ], 30, 300, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 0, 4, 0, 0, "Prefabs/Enemy/M28/Skill") ], 500), new o.MonsterProto(78.18, "复活骨头", o.MonsterType.Normal, "", "", 130, .67, 70, .2, "Prefabs/Enemy/M36/M36", [ [ 0, 100 ] ], 10, 50, .9), new o.MonsterProto(79.18, "复活骨头", o.MonsterType.Normal, "", "", 270, 1, 70, .2, "Prefabs/Enemy/M36/M36", [ [ 0, 100 ] ], 10, 50, .9), new o.MonsterProto(80.18, "混乱博士", o.MonsterType.Normal, "", "", 11e3, 1, 150, .2, "Prefabs/Enemy/M35/M35", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3.5, 0, 0, "Prefabs/Enemy/M35/Skill") ], 430), new o.MonsterProto(1.19, "食人花", o.MonsterType.Normal, "", "", 64, .67, 60, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(2.19, "食人花", o.MonsterType.Normal, "", "", 86, .67, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(3.19, "食人花", o.MonsterType.Normal, "", "", 181, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(4.19, "食人花", o.MonsterType.Normal, "", "", 466, 1, 70, .2, "Prefabs/Enemy/M34/M34", [ [ 0, 100 ] ], 10, 50, 1), new o.MonsterProto(6.19, "电锯人", o.MonsterType.Normal, "", "", 756, 1, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(7.19, "电锯人", o.MonsterType.Normal, "", "", 1594, 1, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(8.19, "电锯人", o.MonsterType.Normal, "", "", 3494, 1, 80, .2, "Prefabs/Enemy/M19/M19", [ [ 0, 100 ] ], 15, 100, 1), new o.MonsterProto(9.19, "电锯人", o.MonsterType.Normal, "", "", 15088, 1, 95, .2, "Prefabs/Enemy/M19/M19", [ [ 2, 100 ] ], 30, 300, 1), new o.MonsterProto(11.19, "爆炸怪", o.MonsterType.Normal, "", "", 85, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(12.19, "爆炸怪", o.MonsterType.Normal, "", "", 360, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(13.19, "爆炸怪", o.MonsterType.Normal, "", "", 1200, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(14.19, "爆炸怪", o.MonsterType.Normal, "", "", 1800, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(15.19, "爆炸怪", o.MonsterType.Normal, "", "", 4e3, 1, 85, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 30, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(16.19, "摩托女", o.MonsterType.Normal, "", "", 2743, 1, 80, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 15, 300, .8), new o.MonsterProto(17.19, "摩托女", o.MonsterType.Normal, "", "", 12470, 1, 80, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 20, 300, .8), new o.MonsterProto(18.19, "摩托女", o.MonsterType.Normal, "", "", 18992, 1, 80, .2, "Prefabs/Enemy/M21/M21", [ [ 3, 100 ] ], 30, 300, .8), new o.MonsterProto(21.19, "恐龙", o.MonsterType.Normal, "", "", 22632, 1, 100, .2, "Prefabs/Enemy/M27/M27", [ [ 3, 100 ] ], 30, 300, .9), new o.MonsterProto(26.19, "飞行怪", o.MonsterType.Normal, "", "", 7482, 1, 95, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 300, 1.3), new o.MonsterProto(27.19, "飞行怪", o.MonsterType.Normal, "", "", 13717, 1, 95, .2, "Prefabs/Enemy/M33/M33", [ [ 0, 100 ] ], 20, 190, 1.3), new o.MonsterProto(28.19, "飞行怪", o.MonsterType.Normal, "", "", 19956, 1, 95, .2, "Prefabs/Enemy/M33/M33", [ [ 2, 100 ] ], 30, 300, 1.3), new o.MonsterProto(33.19, "子弹怪", o.MonsterType.Normal, "", "", 19e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(34.19, "子弹怪", o.MonsterType.Normal, "", "", 3e4, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 50, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(36.19, "盾牌怪", o.MonsterType.Normal, "", "", 558, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(56.19, "炸弹怪", o.MonsterType.Normal, "", "", 4e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(57.19, "炸弹怪", o.MonsterType.Normal, "", "", 14e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 500), new o.MonsterProto(60.19, "毒液怪", o.MonsterType.Normal, "", "", 220, .67, 75, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 150, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(61.19, "毒液怪", o.MonsterType.Normal, "", "", 2e3, 1, 85, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(66.19, "快僵尸", o.MonsterType.Normal, "", "", 2993, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 180, 1.3), new o.MonsterProto(67.19, "快僵尸", o.MonsterType.Normal, "", "", 12345, 1, 120, .2, "Prefabs/Enemy/M24/M24", [ [ 0, 100 ] ], 10, 300, 1.3), new o.MonsterProto(71.19, "机器人", o.MonsterType.Normal, "", "", 3e4, 1, 100, .2, "Prefabs/Enemy/M26/M26", [ [ 0, 100 ] ], 10, 180, 1), new o.MonsterProto(72.19, "火箭筒", o.MonsterType.Normal, "", "", 3e3, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(73.19, "火箭筒", o.MonsterType.Normal, "", "", 14e3, 1, 150, 0, "Prefabs/Enemy/M32/M32", [ [ 2, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 1, 550, 4, 0, 0, "Prefabs/Enemy/M32/Skill") ], 500), new o.MonsterProto(75.19, "激光外星人", o.MonsterType.Normal, "", "", 1e3, 1, 150, 0, "Prefabs/Enemy/M28/M28", [ [ 2, 100 ] ], 30, 300, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 0, 4, 0, 0, "Prefabs/Enemy/M28/Skill") ], 500), new o.MonsterProto(78.19, "复活骨头", o.MonsterType.Normal, "", "", 140, .67, 70, .2, "Prefabs/Enemy/M36/M36", [ [ 0, 100 ] ], 10, 50, .9), new o.MonsterProto(79.19, "复活骨头", o.MonsterType.Normal, "", "", 300, 1, 70, .2, "Prefabs/Enemy/M36/M36", [ [ 0, 100 ] ], 10, 50, .9), new o.MonsterProto(80.19, "混乱博士", o.MonsterType.Normal, "", "", 14e3, 1, 150, .2, "Prefabs/Enemy/M35/M35", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3.5, 0, 0, "Prefabs/Enemy/M35/Skill") ], 430), new o.MonsterProto(1001.17, "树人_精英", o.MonsterType.Elite, "", "", 2e3, 1, 170, .2, "Prefabs/Enemy/M37/M37", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5, [ new o.MonsterSkillProto(1, 0, 0, 60, 4, 0, 0, "Prefabs/Enemy/M37/Skill") ], 420), new o.MonsterProto(1002.17, "尸狼_精英", o.MonsterType.Elite, "", "", 7e3, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 300, 1.6, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003), new o.MonsterProto(1003.17, "机器人_精英", o.MonsterType.Elite, "", "", 35e3, 1, 70, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 200, 1.3), new o.MonsterProto(1004.17, "夫人_精英", o.MonsterType.Elite, "", "", 75e3, 1, 120, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(1, 0, 1, 0, 8, 0, 0, "Prefabs/Enemy/M07/Skill01") ]), new o.MonsterProto(1005.17, "南瓜_BOSS", o.MonsterType.Boss, "", "", 16e4, 1, 80, .2, "Prefabs/Enemy/Boss06/Boss", [ [ 1, 100 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(1005.01, 0, 2, 1500, 5, 0, 0, "Prefabs/Enemy/Boss06/Skills/Skill01", 3), new o.MonsterSkillProto(1005.02, 0, 2, 350, 1, 0, 0, "Prefabs/Enemy/Boss06/Skills/Skill02", 1), new o.MonsterSkillProto(1005.03, 0, 2, 150, 8, 0, 0, "Prefabs/Enemy/Boss06/Skills/Skill03", 3) ], 0, 1005.17), new o.MonsterProto(1001.18, "树人_精英", o.MonsterType.Elite, "", "", 2500, 1, 170, .2, "Prefabs/Enemy/M37/M37", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5, [ new o.MonsterSkillProto(1, 0, 0, 60, 4, 0, 0, "Prefabs/Enemy/M37/Skill") ], 420), new o.MonsterProto(1002.18, "尸狼_精英", o.MonsterType.Elite, "", "", 8e3, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 300, 1.6, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003), new o.MonsterProto(1003.18, "机器人_精英", o.MonsterType.Elite, "", "", 38e3, 1, 70, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 200, 1.3), new o.MonsterProto(1004.18, "夫人_精英", o.MonsterType.Elite, "", "", 78e3, 1, 120, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(1, 0, 1, 0, 8, 0, 0, "Prefabs/Enemy/M07/Skill01") ]), new o.MonsterProto(1005.18, "南瓜_BOSS", o.MonsterType.Boss, "", "", 19e4, 1, 80, .2, "Prefabs/Enemy/Boss06/Boss", [ [ 1, 100 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(1005.01, 0, 2, 2e3, 5, 0, 0, "Prefabs/Enemy/Boss06/Skills/Skill01", 4), new o.MonsterSkillProto(1005.02, 0, 2, 350, 1, 0, 0, "Prefabs/Enemy/Boss06/Skills/Skill02", 1), new o.MonsterSkillProto(1005.03, 0, 2, 200, 8, 0, 0, "Prefabs/Enemy/Boss06/Skills/Skill03", 4) ], 0, 1005.17), new o.MonsterProto(1001.19, "混乱博士", o.MonsterType.Elite, "", "", 3e3, 1, 170, .2, "Prefabs/Enemy/M35/M35", [ [ 1, 100 ], [ 4, 100 ], [ 10, 20 ] ], 500, 200, 1.5, [ new o.MonsterSkillProto(1, 0, 40, 60, 3.5, 0, 0, "Prefabs/Enemy/M35/Skill") ], 430), new o.MonsterProto(1002.19, "尸狼_精英", o.MonsterType.Elite, "", "", 6e3, 1, 110, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 4, 100 ], [ 10, 30 ] ], 800, 300, 1.6, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003), new o.MonsterProto(1003.19, "机器人_精英", o.MonsterType.Elite, "", "", 4e4, 1, 70, .2, "Prefabs/Enemy/M26/M26", [ [ 1, 100 ], [ 5, 100 ], [ 10, 35 ] ], 1500, 200, 1.3), new o.MonsterProto(1004.19, "夫人_精英", o.MonsterType.Elite, "", "", 8e4, 1, 120, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 100 ], [ 4, 100 ], [ 10, 40 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(1, 0, 1, 0, 8, 0, 0, "Prefabs/Enemy/M07/Skill01") ]), new o.MonsterProto(1005.19, "南瓜_BOSS", o.MonsterType.Boss, "", "", 23e4, 1, 80, .2, "Prefabs/Enemy/Boss06/Boss", [ [ 1, 100 ] ], 2e3, 300, .8, [ new o.MonsterSkillProto(1005.01, 0, 2, 3e3, 5, 0, 0, "Prefabs/Enemy/Boss06/Skills/Skill01", 4), new o.MonsterSkillProto(1005.02, 0, 2, 400, 1, 0, 0, "Prefabs/Enemy/Boss06/Skills/Skill02", 1), new o.MonsterSkillProto(1005.03, 0, 2, 200, 8, 0, 0, "Prefabs/Enemy/Boss06/Skills/Skill03", 4) ], 0, 1005.17) ]);
cc._RF.pop();
}, {
"./MonsterConfig": "MonsterConfig"
} ],
MonsterConfig_Endless: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d055fp8wy1JmoSAVCIEWenZ", "MonsterConfig_Endless");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./MonsterConfig");
o.MonsterConfig.AddLMonsterConfig.apply(o.MonsterConfig, [ new o.MonsterProto(1.3, "丧尸", o.MonsterType.Normal, "", "", 44, .34, 50, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(2.3, "丧尸", o.MonsterType.Normal, "", "", 56, .34, 60, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(3.3, "丧尸", o.MonsterType.Normal, "", "", 115, .67, 60, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(4.3, "丧尸", o.MonsterType.Normal, "", "", 4556, 1, 70, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 10, 100, 1), new o.MonsterProto(5.3, "丧尸", o.MonsterType.Normal, "", "", 15e3, 1, 90, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 10, 300, 1), new o.MonsterProto(6.3, "丧尸", o.MonsterType.Normal, "", "", 18e3, 1, 90, .2, "Prefabs/Enemy/M01/M01", [ [ 0, 100 ] ], 10, 300, 1), new o.MonsterProto(11.3, "蝙蝠", o.MonsterType.Normal, "", "", 173, .67, 60, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(12.3, "蝙蝠", o.MonsterType.Normal, "", "", 216, .67, 60, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(13.3, "蝙蝠", o.MonsterType.Normal, "", "", 3713, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(14.3, "蝙蝠", o.MonsterType.Normal, "", "", 7e3, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 200, 1), new o.MonsterProto(15.3, "蝙蝠", o.MonsterType.Normal, "", "", 7500, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 200, 1), new o.MonsterProto(16.3, "蝙蝠", o.MonsterType.Normal, "", "", 8e3, 1, 70, .2, "Prefabs/Enemy/M02/M02", [ [ 0, 100 ] ], 10, 200, 1), new o.MonsterProto(21.3, "爆炸怪", o.MonsterType.Normal, "", "", 60, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 15, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(22.3, "爆炸怪", o.MonsterType.Normal, "", "", 150, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 15, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(23.3, "爆炸怪", o.MonsterType.Normal, "", "", 280, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 15, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(24.3, "爆炸怪", o.MonsterType.Normal, "", "", 700, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 15, 150, .75, [ new o.MonsterSkillProto(1, 0, 60, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(25.3, "爆炸怪", o.MonsterType.Normal, "", "", 1300, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 15, 150, .75, [ new o.MonsterSkillProto(1, 0, 80, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(26.3, "爆炸怪", o.MonsterType.Normal, "", "", 2500, 1, 80, .2, "Prefabs/Enemy/M08/M08", [ [ 2, 100 ] ], 15, 150, .75, [ new o.MonsterSkillProto(1, 0, 40, 60, 0, 0, 0, "Prefabs/Enemy/M08/Skill") ]), new o.MonsterProto(31.3, "尸狼", o.MonsterType.Normal, "", "", 372, .67, 75, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 10, 150, .9), new o.MonsterProto(32.3, "尸狼", o.MonsterType.Normal, "", "", 473, .67, 75, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 10, 150, .9), new o.MonsterProto(33.3, "尸狼", o.MonsterType.Normal, "", "", 8500, 1, 75, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 10, 200, .9), new o.MonsterProto(34.3, "尸狼", o.MonsterType.Normal, "", "", 8e3, 1, 75, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 10, 200, .9), new o.MonsterProto(35.3, "尸狼", o.MonsterType.Normal, "", "", 7e3, 1, 100, .2, "Prefabs/Enemy/M04/M04", [ [ 0, 100 ] ], 10, 200, .9), new o.MonsterProto(41.3, "蜘蛛", o.MonsterType.Normal, "", "", 1014, 1, 70, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 10, 100, .9), new o.MonsterProto(42.3, "蜘蛛", o.MonsterType.Normal, "", "", 2250, 1, 70, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 10, 100, .9), new o.MonsterProto(43.3, "蜘蛛", o.MonsterType.Normal, "", "", 2500, 1, 70, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 10, 100, .9), new o.MonsterProto(44.3, "蜘蛛", o.MonsterType.Normal, "", "", 2700, 1, 70, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 10, 100, .9), new o.MonsterProto(45.3, "蜘蛛", o.MonsterType.Normal, "", "", 9200, 1, 90, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 10, 250, .9), new o.MonsterProto(46.3, "蜘蛛", o.MonsterType.Normal, "", "", 9200, 1, 90, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 10, 250, .9), new o.MonsterProto(47.3, "蜘蛛", o.MonsterType.Normal, "", "", 12e3, 1, 90, .2, "Prefabs/Enemy/M05/M05", [ [ 0, 100 ] ], 10, 250, .9), new o.MonsterProto(51.3, "老鼠", o.MonsterType.Normal, "", "", 3038, 1, 70, .2, "Prefabs/Enemy/M17/M17", [ [ 0, 100 ] ], 10, 300, .9), new o.MonsterProto(52.3, "老鼠", o.MonsterType.Normal, "", "", 5063, 1, 70, .2, "Prefabs/Enemy/M17/M17", [ [ 0, 100 ] ], 10, 300, .9), new o.MonsterProto(53.3, "老鼠", o.MonsterType.Normal, "", "", 5869, 1, 70, .2, "Prefabs/Enemy/M17/M17", [ [ 0, 100 ] ], 10, 300, .9), new o.MonsterProto(54.3, "老鼠", o.MonsterType.Normal, "", "", 6575, 1, 70, .2, "Prefabs/Enemy/M17/M17", [ [ 0, 100 ] ], 10, 300, .9), new o.MonsterProto(55.3, "老鼠", o.MonsterType.Normal, "", "", 6575, 1, 70, .2, "Prefabs/Enemy/M17/M17", [ [ 0, 100 ] ], 10, 300, .9), new o.MonsterProto(61.3, "子弹怪", o.MonsterType.Normal, "", "", 320, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(62.3, "子弹怪", o.MonsterType.Normal, "", "", 1200, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 4, 0, 0, "Prefabs/Enemy/M06/Skill") ], 450), new o.MonsterProto(63.3, "子弹怪", o.MonsterType.Normal, "", "", 5e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 3.5, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(64.3, "子弹怪", o.MonsterType.Normal, "", "", 9e3, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 3, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(65.3, "子弹怪", o.MonsterType.Normal, "", "", 1e4, 1, 130, .2, "Prefabs/Enemy/M06/M06", [ [ 3, 100 ] ], 30, 200, .9, [ new o.MonsterSkillProto(1, 0, 1, 1e3, 3, 0, 0, "Prefabs/Enemy/M06/Skill", 3) ], 450), new o.MonsterProto(71.3, "盾牌怪", o.MonsterType.Normal, "", "", 360, .67, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 2, 100 ] ], 20, 200, 1), new o.MonsterProto(81.3, "分裂怪", o.MonsterType.Normal, "", "", 4800, 1, 80, .2, "Prefabs/Enemy/M11/M11", [ [ 3, 100 ] ], 30, 180, 1.1), new o.MonsterProto(82.3, "分裂怪", o.MonsterType.Normal, "", "", 5e3, 1, 80, .2, "Prefabs/Enemy/M11/M11", [ [ 3, 100 ] ], 30, 180, 1.1), new o.MonsterProto(91.3, "死爆子弹怪", o.MonsterType.Normal, "", "", 130, .34, 70, .2, "Prefabs/Enemy/M12/M12", [ [ 2, 100 ] ], 20, 200, 1, [ new o.MonsterSkillProto(1, 0, .67, 800, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 3) ]), new o.MonsterProto(92.3, "死爆子弹怪", o.MonsterType.Normal, "", "", 2500, 1, 70, .2, "Prefabs/Enemy/M12/M12", [ [ 2, 100 ] ], 20, 200, 1, [ new o.MonsterSkillProto(1, 0, 1, 800, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 3) ]), new o.MonsterProto(101.3, "隐身怪", o.MonsterType.Normal, "", "", 1100, 1, 90, .2, "Prefabs/Enemy/M13/M13", [ [ 3, 100 ] ], 30, 100, 1), new o.MonsterProto(102.3, "隐身怪", o.MonsterType.Normal, "", "", 2e3, 1, 90, .2, "Prefabs/Enemy/M13/M13", [ [ 3, 100 ] ], 30, 100, 1), new o.MonsterProto(111.3, "炸弹怪", o.MonsterType.Normal, "", "", 1e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 430), new o.MonsterProto(112.3, "炸弹怪", o.MonsterType.Normal, "", "", 2500, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 430), new o.MonsterProto(113.3, "炸弹怪", o.MonsterType.Normal, "", "", 7e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 430), new o.MonsterProto(114.3, "炸弹怪", o.MonsterType.Normal, "", "", 9e3, 1, 130, .2, "Prefabs/Enemy/M14/M14", [ [ 3, 100 ] ], 30, 300, 1, [ new o.MonsterSkillProto(1, 0, 40, 60, 3, 0, 0, "Prefabs/Enemy/M14/Skill") ], 430), new o.MonsterProto(121.3, "毒液怪", o.MonsterType.Normal, "", "", 90, .67, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(122.3, "毒液怪", o.MonsterType.Normal, "", "", 3500, 1, 90, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(123.3, "毒液怪", o.MonsterType.Normal, "", "", 6e3, 1, 100, .2, "Prefabs/Enemy/M15/M15", [ [ 0, 100 ] ], 10, 180, 1, [ new o.MonsterSkillProto(1, 0, 40, 80, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(131.3, "苍蝇冲击", o.MonsterType.Normal, "", "", 20, 1, 70, .2, "Prefabs/Enemy/M09/M09", [ [ 0, 100 ] ], 2, 300, 1), new o.MonsterProto(132.3, "快女鬼", o.MonsterType.Normal, "", "", 2100, 1, 120, .2, "Prefabs/Enemy/M16/M16", [ [ 0, 100 ] ], 10, 150, 1), new o.MonsterProto(141.3, "提刀怪", o.MonsterType.Normal, "", "", 9e3, 1, 90, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 10, 220, 1), new o.MonsterProto(142.3, "提刀怪", o.MonsterType.Normal, "", "", 25e3, 1, 120, .2, "Prefabs/Enemy/M18/M18", [ [ 0, 100 ] ], 10, 300, 1), new o.MonsterProto(1001.3, "毒液怪_精英", o.MonsterType.Elite, "", "", 700, 1, 70, .2, "Prefabs/Enemy/M15/M15", [ [ 1, 100 ], [ 4, 100 ], [ 8, 40 ], [ 10, 20 ] ], 500, 100, 1.5, [ new o.MonsterSkillProto(1, 0, 1, 60, 0, 0, 0, "Prefabs/Enemy/M15/Skill") ]), new o.MonsterProto(1002.3, "死爆子弹_精英", o.MonsterType.Elite, "", "", 3e3, 1, 70, .2, "Prefabs/Enemy/M12/M12", [ [ 1, 100 ], [ 4, 100 ], [ 8, 40 ], [ 10, 20 ] ], 800, 200, 1.3, [ new o.MonsterSkillProto(1, 0, 1, 600, 0, 0, 0, "Prefabs/Enemy/M12/Skill", 8) ]), new o.MonsterProto(1003.3, "尸狼_精英", o.MonsterType.Elite, "", "", 7e3, 1, 140, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 5, 100 ], [ 8, 40 ], [ 10, 20 ] ], 1e3, 300, 1.5, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003.2), new o.MonsterProto(1004.3, "盾牌怪_精英", o.MonsterType.Elite, "", "", 1e4, 1, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 1, 100 ], [ 4, 100 ], [ 8, 40 ], [ 10, 20 ] ], 1e3, 300, 1.3), new o.MonsterProto(1005.3, "隐身怪_精英", o.MonsterType.Elite, "", "", 45e3, 1, 90, .2, "Prefabs/Enemy/M13/M13", [ [ 1, 100 ], [ 5, 100 ], [ 8, 40 ], [ 10, 30 ] ], 1500, 300, 1.5), new o.MonsterProto(1006.3, "夫人_精英", o.MonsterType.Elite, "", "", 11e4, 1.5, 130, .2, "Prefabs/Enemy/M07/M07", [ [ 1, 100 ], [ 4, 100 ], [ 8, 40 ], [ 10, 30 ] ], 1500, 300, .8, [ new o.MonsterSkillProto(1, 0, 1, 0, 10, 0, 0, "Prefabs/Enemy/M07/Skill") ]), new o.MonsterProto(1007.3, "尸狼_精英", o.MonsterType.Elite, "", "", 85e3, 1.5, 140, .2, "Prefabs/Enemy/M04/M04_Boss", [ [ 1, 100 ], [ 4, 100 ], [ 8, 40 ], [ 10, 30 ] ], 1500, 300, 1.5, [ new o.MonsterSkillProto(1, 0, 1, 0, 6, 0, 0, "Prefabs/Enemy/M04/Skill") ], 0, 1003.2), new o.MonsterProto(1008.3, "盾牌怪_精英", o.MonsterType.Elite, "", "", 7e4, 1.5, 130, .2, "Prefabs/Enemy/M10/M10", [ [ 1, 100 ], [ 5, 100 ], [ 8, 40 ], [ 10, 30 ] ], 2e3, 300, 1.5), new o.MonsterProto(1009.3, "飞碟_BOSS", o.MonsterType.Boss, "", "", 4e5, 2, 150, .2, "Prefabs/Enemy/M23/M23", [ [ 1, 100 ] ], 20, 300, 1.1, [ new o.MonsterSkillProto(1005.01, 0, 1, 1e3, 99999, 0, 0, "Prefabs/Enemy/M23/Skill1", 18), new o.MonsterSkillProto(1005.02, 0, 1, 1e3, 99999, 0, 0, "Prefabs/Enemy/M23/Skill2", 30), new o.MonsterSkillProto(1005.03, 0, 1, 600, 99999, 0, 0, "Prefabs/Enemy/M23/Skill3", 1), new o.MonsterSkillProto(1005.04, 0, 1, 600, 99999, 0, 0, "Prefabs/Enemy/M23/Skill4", 1) ], 0, 1005.6) ]);
cc._RF.pop();
}, {
"./MonsterConfig": "MonsterConfig"
} ],
MonsterConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "16b97m7tM5BkpdTIvskmhy2", "MonsterConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.MonsterConfig = n.MonsterProto = n.MonsterSkillProto = n.MonsterType = void 0;
var o = e("./SkillConfig");
(function(e) {
e[e.Normal = 0] = "Normal";
e[e.Elite = 1] = "Elite";
e[e.Boss = 2] = "Boss";
})(n.MonsterType || (n.MonsterType = {}));
var r = function(e) {
__extends(t, e);
function t(t, n, r, i, a, l, s, c, u, p) {
void 0 === u && (u = 1);
void 0 === p && (p = null);
var d = e.call(this, t, 0, 0, o.SkillType.Other, "", "", "", "", n, r, i, a, s, c, null, u, null, null, p) || this;
d.id = t;
d.lastTime = n;
d.damage = r;
d.range = i;
d.cd = a;
d.fireIntervel = l;
d.damageIntervel = s;
d.resPath = c;
d.bulletNumber = u;
d.opt = p;
return d;
}
return t;
}(o.SkillProto);
n.MonsterSkillProto = r;
n.MonsterProto = function(e, t, n, o, r, i, a, l, s, c, u, p, d, f, h, m, w) {
void 0 === f && (f = 1);
void 0 === m && (m = 0);
void 0 === w && (w = 0);
this.id = e;
this.name = t;
this.type = n;
this.desc = o;
this.icon = r;
this.health = i;
this.damage = a;
this.speed = l;
this.damageIntervel = s;
this.resPath = c;
this.dropItems = u;
this.exp = p;
this.mass = d;
this.scale = f;
this.skills = h;
this.fireRange = m;
this.skillPatternAIId = w;
};
var i = function() {
function e() {}
e.GetMonster = function(t) {
return e.monsters.find(function(e) {
return e.id == t;
});
};
e.AddLMonsterConfig = function() {
for (var t, n = [], o = 0; o < arguments.length; o++) n[o] = arguments[o];
(t = e.monsters).push.apply(t, n);
};
e.monsters = [];
return e;
}();
n.MonsterConfig = i;
cc._RF.pop();
}, {
"./SkillConfig": "SkillConfig"
} ],
MonsterSpanwnMgr: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "35409BV/bNLEoeGF0IwsnTE", "MonsterSpanwnMgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.MonsterSpanwnMgr = void 0;
var o = e("../../../Framework/Core/Resource/AssetManager"), r = function() {
function e() {
this.caches = new Map();
}
e.prototype.CreateNode = function(e, t, n, r, i) {
void 0 === t && (t = null);
return __awaiter(this, void 0, Promise, function() {
var a, l, s;
return __generator(this, function(c) {
switch (c.label) {
case 0:
a = e instanceof cc.Prefab ? e.nativeUrl : e;
if (!(l = this.caches.get(a))) {
l = o.default.Default.CreateCache(a, 30);
this.caches.set(a, l);
}
return [ 4, l.CreateNode(e, t, n, r, i) ];

case 1:
(s = c.sent()) && (s.__cache__ = l);
return [ 2, s ];
}
});
});
};
e.prototype.DestroyNode = function(e) {
if (e) {
var t = e.__cache__;
if (t) {
t.DestroyNode(e);
if (0 == t.usingNodeCount) {
this.caches.delete(t.name);
o.default.Default.DestroyCache(t);
}
} else {
console.warn("MonsterSpanwnMgr.DestroyNode failed! cache not found!", e);
e.destroy();
}
}
};
e.prototype.Clear = function() {
this.caches.forEach(function(e) {
e.Clear();
});
this.caches.clear();
};
e.prototype.DebugLog = function() {
this.caches.forEach(function(e) {
console.log(e.name, "total:", e.totalNodeCount, "using:", e.usingNodeCount);
});
};
e.Instance = new e();
return e;
}();
n.MonsterSpanwnMgr = r;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/AssetManager": void 0
} ],
MotionStreakReset: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "28cd5br0fRC1Lwhq0i5qX36", "MotionStreakReset");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = r.requireComponent, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.root = null;
t.streak = null;
t.stroke = 0;
return t;
}
t.prototype.onLoad = function() {
this.streak = this.getComponent(cc.MotionStreak);
this.stroke = this.streak.stroke;
};
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.streak.reset();
};
t.prototype.OnUpdate = function() {
var e = this.stroke * (this.root ? this.root : this.node).scale;
this.streak.stroke != e && (this.streak.stroke = e);
};
__decorate([ a(cc.Node) ], t.prototype, "root", void 0);
return __decorate([ i, l(cc.MotionStreak) ], t);
}(o.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
MoveTowardToPlayer: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "177e3ZqAdlPB7IEAXSrkwKX", "MoveTowardToPlayer");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../LevelContext"), r = e("../../../Framework/Core/Resource/MyComponent"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.moveSpeed = 10;
t.passedTime = 0;
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
t.v4 = cc.v2();
t.v5 = cc.v2();
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.passedTime = 0;
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
var t = o.LevelContext.Instance.mainPlayer.node.getPosition(this.v1).sub(this.node.getPosition(this.v2), this.v3).normalize();
this.node.setPosition(this.node.getPosition(this.v4).add(t.multiplyScalar(this.moveSpeed * e), this.v5));
};
__decorate([ l() ], t.prototype, "moveSpeed", void 0);
return __decorate([ a ], t);
}(r.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../LevelContext": "LevelContext"
} ],
MyAnimation: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "1a7bf5fYCpDtJLrJrqO9eN2", "MyAnimation");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.MyAnimation = void 0;
var o = cc._decorator, r = o.ccclass, i = (o.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
return __decorate([ r ], t);
}(cc.Component));
n.MyAnimation = i;
cc._RF.pop();
}, {} ],
MyCameraFollow: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "08d9cyIGrNLGZMmGjuOOyS0", "MyCameraFollow");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../LockArea"), r = e("./FollowTarget"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.xRange = cc.v2();
t.yRange = cc.v2();
t.area = new o.LockArea();
t.vv = cc.v2();
return t;
}
t.prototype.onLoad = function() {
this.area.xRange = this.xRange;
this.area.yRange = this.yRange;
};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
this.node.getPosition(this.vv);
this.area.xRange.equals(cc.Vec2.ZERO) && this.area.yRange.equals(cc.Vec2.ZERO) || this.area.Limit(this.vv, !1);
this.node.setPosition(this.vv);
};
__decorate([ l() ], t.prototype, "xRange", void 0);
__decorate([ l() ], t.prototype, "yRange", void 0);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../LockArea": "LockArea",
"./FollowTarget": "FollowTarget"
} ],
MyParticleSystem: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2e167Zf6ghNRqc28dO66ZiH", "MyParticleSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.MyParticleSystem = void 0;
var o = cc._decorator, r = o.ccclass, i = (o.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
return __decorate([ r ], t);
}(cc.Component));
n.MyParticleSystem = i;
cc._RF.pop();
}, {} ],
MyPayButton: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8a6e31E8d5Jkaajv1Q5YnKB", "MyPayButton");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/UI/WaitingUI"), r = e("../../Framework/Core/Views/ViewUIManager"), i = e("../../Service/Extension/PayButton"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onPayResult = function(t, n, i, a, l) {
var s = e.prototype.onPayResult.call(this, t, n, i, a, l);
s && r.default.HideView(o.default);
return s;
};
t.prototype.onPayRequest = function(t) {
r.default.ShowView(o.default, 10);
e.prototype.onPayRequest.call(this, t);
};
return __decorate([ l ], t);
}(i.default));
n.default = s;
cc._RF.pop();
}, {
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Service/Extension/PayButton": void 0
} ],
MyVideoAdBtn: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "10b267cbCtMf5csOj5IgF83", "MyVideoAdBtn");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/UI/PromptUI"), r = e("../../Service/Extension/Bilibili/WxTrackReport"), i = e("../../Service/Extension/ClueOceanEngine/WxClueReport"), a = e("../../Service/Extension/ShareVideoButtonComponent"), l = e("../../Service/Extension/VideoAdButton"), s = e("../../Service/IPlatformProxy"), c = e("../../Service/PlatformService"), u = e("../../Service/RemoteSetting"), p = e("../Config/GiftConfig"), d = cc._decorator, f = d.ccclass, h = d.property, m = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.adIconNode = null;
t.noAdTipsNode = null;
return t;
}
n = t;
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
var t = new cc.Component.EventHandler();
t.target = this.node;
t.component = "MyVideoAdBtn";
t.handler = "onVideoFail";
this.OnFailed.push(t);
var n = new cc.Component.EventHandler();
n.target = this.node;
n.component = "MyVideoAdBtn";
n.handler = "onVideoSuc";
this.OnSuccessed.push(n);
};
t.prototype.onVideoSuc = function() {
if (c.default.platformType == s.PlatformType.WeXin) {
i.default.ReportShowVideo();
r.default.ReportShowVideo();
}
};
t.prototype.onVideoFail = function() {
var e = this;
if (c.default.platformType == s.PlatformType.TouTiao) {
var t = Date.now() / 1e3;
t - n.shareLastTime > u.default.Get("ShareWhenVideoFailInterval", 300) && a.default.Share(this.scene, null, function() {
n.shareLastTime = t;
cc.Component.EventHandler.emitEvents(e.OnSuccessed, null, null);
});
n.videoFailLastTime = t;
}
};
t.prototype.update = function() {
this.adIconNode && (this.adIconNode.active = !p.freeAd.boolValue);
this.noAdTipsNode && (this.noAdTipsNode.active = p.freeAd.boolValue);
};
t.prototype.onClicked = function(t, r) {
if (p.freeAd.boolValue) {
if (this.OnSuccessed.length > 0) for (var i = 0; i < this.OnSuccessed.length; i++) {
this.OnSuccessed[i];
cc.Component.EventHandler.emitEvents([ this.OnSuccessed[i] ], t, this.OnSuccessed[i].customEventData);
}
} else {
if (c.default.platformType == s.PlatformType.TouTiao && Date.now() / 1e3 - n.videoFailLastTime < u.default.Get("VideoAdFailInterval", 5)) {
o.default.Show("广告暂未准备好，请稍后再试。");
return;
}
e.prototype.onClicked.call(this, t, r);
}
};
var n;
t.shareLastTime = 0;
t.videoFailLastTime = 0;
__decorate([ h(cc.Node) ], t.prototype, "adIconNode", void 0);
__decorate([ h(cc.Node) ], t.prototype, "noAdTipsNode", void 0);
return n = __decorate([ f ], t);
}(l.default);
n.default = m;
cc._RF.pop();
}, {
"../../Framework/UI/PromptUI": void 0,
"../../Service/Extension/Bilibili/WxTrackReport": void 0,
"../../Service/Extension/ClueOceanEngine/WxClueReport": void 0,
"../../Service/Extension/ShareVideoButtonComponent": void 0,
"../../Service/Extension/VideoAdButton": void 0,
"../../Service/IPlatformProxy": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../Config/GiftConfig": "GiftConfig"
} ],
NoAdUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d2ce1IVGRFBuoXrIExyH2wO", "NoAdUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Core/Views/ViewUIManager"), l = e("../../Framework/Localize/LocalizeManager"), s = e("../../Service/AccountManager"), c = e("../../Service/PlatformService"), u = e("../../Service/RemoteSetting"), p = e("../Config/GameModel"), d = e("../Config/GiftConfig"), f = e("../Config/ShopConfig"), h = e("./MyPayButton"), m = cc._decorator, w = m.ccclass, y = m.property, g = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.btn = null;
t.numLabel = null;
t.goldIcon = null;
t.goldNum = null;
t.showAdPack = !1;
return t;
}
n = t;
t.prototype.onLoad = function() {
this.showAdPack = u.default.Get("showAdPack", !0);
var e = f.ShopConfig.GetPackData(this.showAdPack ? f.ShopItemType.AdPack : f.ShopItemType.ADCard), t = this.btn.getComponent(h.default);
t.payId = e.moneyIndex + "";
t.productName = f.ShopItemName[e.type];
};
t.Show = function(e) {
if ((e || p.default.Instance.noAdCount.value < u.default.Get("PopNoAdCount", 3)) && c.default.payable && !d.freeAd.boolValue) {
e || p.default.Instance.noAdCount.value++;
a.default.ShowView(n);
}
};
t.prototype.OnSetParams = function() {
this.goldIcon.active = this.showAdPack;
this.goldNum.node.active = this.showAdPack;
var e = f.ShopConfig.GetPackData(this.showAdPack ? f.ShopItemType.AdPack : f.ShopItemType.ADCard), t = u.default.GetPayItem(e.moneyIndex + "");
this.btn.active = !d.freeAd.boolValue;
this.numLabel.string = (l.default.Language == s.LanguageType.ZH ? "¥" : "$") + (.01 * t.price).toFixed(1);
this.showAdPack && (this.goldNum.string = "x" + (t ? t.count : e.num));
};
var n;
__decorate([ y(cc.Node) ], t.prototype, "btn", void 0);
__decorate([ y(cc.Label) ], t.prototype, "numLabel", void 0);
__decorate([ y(cc.Node) ], t.prototype, "goldIcon", void 0);
__decorate([ y(cc.Label) ], t.prototype, "goldNum", void 0);
return n = __decorate([ w, o.RegisterView("NoAdUI", r.ViewLayer.PopupLayer) ], t);
}(i.default);
n.default = g;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Service/AccountManager": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"../Config/ShopConfig": "ShopConfig",
"./MyPayButton": "MyPayButton"
} ],
NoRotation: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a844eCyqERHMZ9Rn4KfHtpX", "NoRotation");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../RVO2/IBody"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.relative = null;
t.body = null;
t.enableDirScaleH = !1;
t.scaleX = 1;
return t;
}
t.prototype.onLoad = function() {
this.scaleX = this.node.scaleX;
};
t.prototype.lateUpdate = function() {
var e = -this.relative.angle;
Math.abs(e - this.node.angle) > 1 && (this.node.angle = -this.relative.angle);
if (this.enableDirScaleH) {
var t = Math.sign(this.body.finalVelocity.x);
this.node.scaleX = t * this.scaleX;
}
};
__decorate([ a(cc.Node) ], t.prototype, "relative", void 0);
__decorate([ a(o.IBody) ], t.prototype, "body", void 0);
__decorate([ a() ], t.prototype, "enableDirScaleH", void 0);
return __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../../RVO2/IBody": "IBody"
} ],
NoticeUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b01b7wnHo9EQ484pHLqUW4f", "NoticeUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/UI/WaitingUI"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Framework/UI/ScrollViewUtility"), c = e("../../Service/KolaBiService"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.scrollView = null;
t.toggleContainer = null;
t.titleLabel = null;
return t;
}
n = t;
t.prototype.OnShowView = function() {
if (n.noticeData && 0 != n.noticeData.length) {
for (var e = 0; e < n.noticeData.length; e++) {
var t = n.noticeData[e], o = this.toggleContainer.node.getOrCreateAndActiveChild(e);
o.findChild("Label").getComponent(cc.Label).string = t.tabName;
o.findChild("Selected/Label").getComponent(cc.Label).string = t.tabName;
}
this.UpdateContent(0);
} else this.HideView();
};
t.prototype.UpdateContent = function(e) {
var t = n.noticeData[e];
this.titleLabel.string = t.title;
this.scrollView.InitCellDataList(t.contents, function(e, t, n) {
n.getComponent(cc.Label).string = t;
});
};
t.Show = function() {
return __awaiter(this, void 0, Promise, function() {
return __generator(this, function() {
l.default.ShowView(o.default);
return [ 2, new Promise(function(e) {
c.default.RequestGameNotice(function(t) {
n.noticeData = t;
l.default.ShowView(n);
e();
l.default.HideView(o.default);
}, function() {
e();
});
}) ];
});
});
};
t.prototype.OnTabClick = function(e) {
this.UpdateContent(e.target.getSiblingIndex());
};
var n;
t.noticeData = null;
__decorate([ d(s.default) ], t.prototype, "scrollView", void 0);
__decorate([ d(cc.ToggleContainer) ], t.prototype, "toggleContainer", void 0);
__decorate([ d(cc.Label) ], t.prototype, "titleLabel", void 0);
return n = __decorate([ p, r.RegisterView("NoticeUI", i.ViewLayer.NormalLayer) ], t);
}(a.default);
n.default = f;
cc._RF.pop();
}, {
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/ScrollViewUtility": void 0,
"../../Service/KolaBiService": void 0
} ],
NuHuoChongJi2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e8451VvXr9Hy7olszM5UQrA", "NuHuoChongJi2");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.addDamageRate = 1;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IsActive = !0;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IsActive = !1;
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
n.AddDamageRate = this.addDamageRate;
return [ 2 ];
});
});
};
var n;
t.IsActive = !1;
t.AddDamageRate = 0;
__decorate([ a() ], t.prototype, "addDamageRate", void 0);
return n = __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
NuHuoChongJi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "196d6nEDDtNJIcxi4npBG5z", "NuHuoChongJi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../BaseSkill"), a = e("./NuHuoChongJi2"), l = cc._decorator, s = l.ccclass, c = (l.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return n.context.skillData.proto.damage * (1 + (a.default.IsActive ? a.default.AddDamageRate : 0));
};
return [ 2 ];
});
});
};
t.prototype.OnHitEntity = function(e) {
e.context.owner == this.context.owner && (e.context.skillData && e.context.skillData.id != this.context.skillData.id - 3 || this.context.PlayEffectHandler(this.fireEffect, this.fireSound, e.target.body.position, 0, r.LevelContext.Instance.effectLayer, null));
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ s ], t);
}(i.default));
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill",
"./NuHuoChongJi2": "NuHuoChongJi2"
} ],
NuMou: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0de2dpFpqpHqIfQ6AOTWKIA", "NuMou");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../View/GralicParticle"), r = e("../BaseSkill"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 2;
t.damage = 5;
t.t = 0;
t.eft = null;
t.particle = null;
return t;
}
t.prototype.start = function() {
this.eft = this.context.cache.CreateNodeSync(this.context.fireEffect, this.context.owner.aimPnt, cc.Vec2.ZERO);
this.particle = this.eft.getComponentInChildren(o.default);
};
t.prototype.OnUpdate = function(e) {
this.t += e;
var t = this.intervel;
if (this.context.owner.GetSkillProto(194)) {
t *= .5;
this.particle.timeScale = 1.5;
} else this.particle.timeScale = 1;
var n = this.context.owner, o = n.vision;
if (this.t >= t) {
this.t -= t;
var r = this.damage, i = this.context.owner.GetSkillProto(192), a = this.context.owner.GetSkillProto(191);
i && (r *= 2);
for (var l = 0; l < o.colliders.length; l++) {
var s = o.colliders[l];
cc.isValid(s) && (a ? n.weaponSkill.context.Damage(s.node, cc.Vec2.ZERO, r) : this.context.Damage(s.node, cc.Vec2.ZERO, r));
}
}
this.eft && (this.eft.scale = .02 * n.visioinCollider.radius);
};
__decorate([ l() ], t.prototype, "intervel", void 0);
__decorate([ l() ], t.prototype, "damage", void 0);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../View/GralicParticle": "GralicParticle",
"../BaseSkill": "BaseSkill"
} ],
NuanLiu: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3c468Tc7tNK4ZGtcoXax8mn", "NuanLiu");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../../Config/MonsterConfig"), i = e("../../../Messaging/MessageBroadcastReceiver"), a = e("../BaseSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ratio = 5;
t.triggerInterval = 50;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
i.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
i.RemoveBroadcastReceiver(this);
};
t.prototype.OnBurnDamage = function(e) {
var t;
if (!(o.default.RandomInt(0, 1e4) > 100 * this.ratio) && cc.isValid(this.context.owner) && e.owner && e.context.owner == this.context.owner) {
var n = Date.now(), i = null !== (t = this.context.owner.burnTriggerAddHealthStartTime) && void 0 !== t ? t : 0;
if (e.owner.proto.type != r.MonsterType.Boss || n - i >= 1e3 * this.triggerInterval) {
this.context.owner.AddHealth(1);
this.context.owner.burnTriggerAddHealthStartTime = n;
}
}
};
__decorate([ c() ], t.prototype, "ratio", void 0);
__decorate([ i.BroadcastHandler ], t.prototype, "OnBurnDamage", null);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../../Config/MonsterConfig": "MonsterConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill"
} ],
NvRen: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "82fbfZ9qwZOiYM98KjCRGaE", "NvRen");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../BaseSkill"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.interval = 10;
t.bulletIntervelUpPercent = 10;
t.bulletHitCountUp = 1;
t.totalBulletHitCount = 0;
t.totalIntervelUpPercent = 0;
t.psTime = 0;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.context.owner.AddListener(this);
};
t.prototype.onDisable = function() {
this.context.owner.RemoveListener(this);
e.prototype.onDisable.call(this);
};
t.prototype.OnDamage = function(e, t, n, r, i) {
void 0 === t && (t = 0);
void 0 === n && (n = 100);
void 0 === r && (r = null);
void 0 === i && (i = cc.Vec2.ZERO);
if (e == this.context.owner) {
this.psTime = 0;
this.context.owner.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, -this.totalIntervelUpPercent);
this.context.owner.AddFeatureEx(o.SkillFeature.BulletHitCountUp, -this.totalBulletHitCount);
this.context.owner.ResetFeatures();
this.totalBulletHitCount = 0;
this.totalIntervelUpPercent = 0;
}
};
t.prototype.OnUpdate = function(e) {
this.psTime += e;
if (this.psTime >= this.interval) {
this.psTime = 0;
this.context.owner.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, this.bulletIntervelUpPercent);
this.context.owner.AddFeatureEx(o.SkillFeature.BulletHitCountUp, this.bulletHitCountUp);
this.context.owner.ResetFeatures();
this.totalBulletHitCount += this.bulletHitCountUp;
this.totalIntervelUpPercent += this.bulletIntervelUpPercent;
}
};
__decorate([ l() ], t.prototype, "interval", void 0);
__decorate([ l() ], t.prototype, "bulletIntervelUpPercent", void 0);
__decorate([ l() ], t.prototype, "bulletHitCountUp", void 0);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../BaseSkill": "BaseSkill"
} ],
Obstacle: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "569e05HRPZGEYhvGKIoj6xb", "Obstacle");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Obstacle = void 0;
n.Obstacle = function() {
this.collisionMask_ = 4294967295;
};
cc._RF.pop();
}, {} ],
OfflineRewardUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "859cctFPjtJZ5swoA9AUO6I", "OfflineRewardUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../Battle/Util"), l = e("../Config/GameModel"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.coinLabel = null;
t.timeLabel = null;
t.offlineSec = 0;
return t;
}
Object.defineProperty(t.prototype, "offlineCoins", {
get: function() {
var e = this.offlineSec / 60, t = 0;
if (e > 2880) {
t += 20 * (e - 2880);
e = 2880;
}
if (e > 1440) {
t += 10 * (e - 1440);
e = 1440;
}
if (e > 720) {
t += 5 * (e - 720);
e = 720;
}
t += 3 * e;
return Math.round(Math.min(77040, t));
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t, "lessOfflineSec", {
get: function() {
return 1800;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnSetParams = function(e) {
this.offlineSec = e;
this.coinLabel.string = "+" + this.offlineCoins;
this.timeLabel.string = a.default.FormatTimeHHMMSS(e, !0);
};
t.prototype.Close = function() {
l.default.Instance.AddCoin(this.offlineCoins, "离线奖励");
l.default.Save();
this.HideView();
};
__decorate([ u(cc.Label) ], t.prototype, "coinLabel", void 0);
__decorate([ u(cc.Label) ], t.prototype, "timeLabel", void 0);
return __decorate([ c, o.RegisterView("OfflineRewardUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = p;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../Battle/Util": "Util",
"../Config/GameModel": "GameModel"
} ],
OppositeRotate: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8c350MWiWpImKQMmn684+I8", "OppositeRotate");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.targets = [];
return t;
}
Object.defineProperty(t.prototype, "tagetsAngle", {
get: function() {
for (var e = 0, t = 0; t < this.targets.length; t++) e += this.targets[t].angle;
return e;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnUpdate = function() {
this.node.angle = -this.tagetsAngle;
};
__decorate([ a(cc.Node) ], t.prototype, "targets", void 0);
return __decorate([ i ], t);
}(o.MyComponent);
n.default = l;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
ParticleIgnoreTimeScale: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ff58dl3dtVJx6xwaivNvfHH", "ParticleIgnoreTimeScale");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ParticleIgnoreTimeScale = void 0;
var o = cc._decorator, r = o.ccclass, i = (o.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
this.getComponent(cc.ParticleSystem).ignoreTimeScale = !0;
};
return __decorate([ r ], t);
}(cc.Component));
n.ParticleIgnoreTimeScale = i;
cc._RF.pop();
}, {} ],
PetData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "723e3MsfgdKQYzuMO5/aYxm", "PetData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.PetData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("./SkillConfig"), i = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.level = 0;
t.visible = !0;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "unlock", {
get: function() {
return this.level > 0 && this.visible;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = PetConfig.GetPet(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
t.Clone = function(e) {
var n = new t();
n.id = e.id;
n.level = e.level;
n.proto;
return n;
};
t.prototype.GetFeatureValue = function(e, t) {
if (!this.proto.feature || 0 == this.proto.feature.length) return 0;
if (e == r.SkillFeature.AttackUp) return this.proto.attrs[this.level - 1].attack;
if (e == r.SkillFeature.BulletSpeed) return this.proto.attrs[this.level - 1].fireSpeed;
for (var n = 0; n < this.proto.feature.length; n++) {
var o = this.proto.feature[n];
if (o.type == e) return o.GetValue(o.getValueByPlayerLevel ? t : this.level);
}
return 0;
};
t.prototype.GetPetFeatureProto = function(e) {
if (!this.proto.feature || 0 == this.proto.feature.length) return null;
for (var t = 0; t < this.proto.feature.length; t++) {
var n = this.proto.feature[t];
if (n.type == e) return n;
}
return null;
};
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("c") ], t.prototype, "level", void 0);
__decorate([ o.SerializeField("d") ], t.prototype, "visible", void 0);
return t;
}(o.default);
n.PetData = i;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"./SkillConfig": "SkillConfig"
} ],
PiaoYiChongCi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a54cbP/3JFGDJnNXMeKC5UP", "PiaoYiChongCi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../EffectSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.time = 5;
t.accel = 50;
t.passedTime = 0;
t.isAccel = !1;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnUpdate = function(e) {
if (this.isAccel) {
this.passedTime += e;
if (this.passedTime >= this.time) {
this.isAccel = !1;
this.passedTime = 0;
this.context.owner.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, -this.accel);
this.context.owner.ResetFeatures();
}
}
};
t.prototype.OnDashEnd = function() {
if (this.isAccel) this.passedTime = 0; else {
this.isAccel = !0;
this.context.owner.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, this.accel);
this.context.owner.ResetFeatures();
}
};
__decorate([ s() ], t.prototype, "time", void 0);
__decorate([ s() ], t.prototype, "accel", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnDashEnd", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../EffectSkill": "EffectSkill"
} ],
PlaySoundEffect: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "53333W6WBZFuZpTHxpqtRo6", "PlaySoundEffect");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.PlaySoundEffect = void 0;
var o = e("../../Framework/Core/Resource/SoundsManager"), r = e("../../Framework/Core/Resource/MyComponent"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.sound = null;
t.loop = !1;
t.stopOnDisable = !1;
t.delayTime = 0;
t.sndId = null;
return t;
}
t.prototype.OnPoolEnable = function() {};
t.prototype.onEnable = function() {
return __awaiter(this, void 0, void 0, function() {
var t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
e.prototype.onEnable.call(this);
return this.delayTime > 0 ? [ 4, this.waitForTime(this.delayTime) ] : [ 3, 2 ];

case 1:
n.sent();
n.label = 2;

case 2:
t = this;
return [ 4, o.default.instance.PlayEffectSync(this.sound, this.loop) ];

case 3:
t.sndId = n.sent();
return [ 2 ];
}
});
});
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
this.stopOnDisable && this.Stop();
};
t.prototype.Stop = function() {
this.sndId && o.default.instance.StopEffect(this.sndId);
};
__decorate([ l(cc.AudioClip) ], t.prototype, "sound", void 0);
__decorate([ l() ], t.prototype, "loop", void 0);
__decorate([ l() ], t.prototype, "stopOnDisable", void 0);
__decorate([ l() ], t.prototype, "delayTime", void 0);
return __decorate([ a ], t);
}(r.MyComponent);
n.PlaySoundEffect = s;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0
} ],
PlayerGhost: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ce794hYdzFHBqbeBMcWhogN", "PlayerGhost");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.PlayerGhost = void 0;
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("./LevelContext"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.srcBody = null;
t.ghost = null;
t.viewSprite = null;
t.v1 = cc.v2();
return t;
}
t.prototype.lateUpdate = function() {
if (this.player) {
var e = !(this.player.dead || null != this.player.vehicle);
this.ghost.opacity = e ? 255 : 0;
if (e) {
this.ghost.setPosition(this.player.node.getPosition(this.v1));
this.ghost.scale = this.player.node.scale;
this.viewSprite.spriteFrame = this.srcBody.spriteFrame;
this.viewSprite.node.scaleX = this.player.view.scaleX;
this.viewSprite.node.setPosition(this.player.view.getPosition(this.v1));
}
}
};
t.prototype.CreateGhost = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, i, a, l;
return __generator(this, function(s) {
switch (s.label) {
case 0:
this.ghost = new cc.Node();
(t = cc.instantiate(this.srcBody.node)).opacity = 100;
t.setParent(this.ghost);
this.viewSprite = t.addComponent(cc.Sprite);
this.viewSprite.spriteFrame = this.srcBody.spriteFrame;
this.ghost.setParent(r.LevelContext.Instance.topPlayerLayer);
this.player = e;
return [ 4, o.default.Default.LoadRes("Battle/SpriteOnlyOutline", cc.Material) ];

case 1:
n = s.sent();
this.viewSprite.setMaterial(0, n);
i = this.viewSprite.spriteFrame.getTexture();
a = i.width;
l = i.height;
this.viewSprite.getMaterial(0).setProperty("imgInfo", new cc.Vec4(2, a, l, 1));
return [ 2 ];
}
});
});
};
__decorate([ l(cc.Sprite) ], t.prototype, "srcBody", void 0);
return __decorate([ a ], t);
}(cc.Component);
n.PlayerGhost = s;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"./LevelContext": "LevelContext"
} ],
PlayerHUD: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "16828o4AC9Hgas8rkSqu/bd", "PlayerHUD");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.PlayerHUD = void 0;
var o = e("../Messaging/MessageBroadcastReceiver"), r = e("./Entity"), i = e("./EntityHUD"), a = e("./LevelContext"), l = e("./Util"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletCdBar = null;
t.detectRoot = null;
t.detectCollider = null;
t.detectBg = null;
t.lockRoot = null;
t.lockLeft = null;
t.lockRight = null;
t.lockTop = null;
t.lockBottom = null;
t.bulletLabel = null;
t.dashLabel = null;
t.defaultDetectLen = 250;
t.v1 = cc.v2();
t.detectEnemies = [];
return t;
}
t.prototype.onLoad = function() {
this.bulletCdBar.parent.active = !1;
this.detectCollider.active = !1;
this.lockRoot.active = !1;
this.lockRoot.parent = a.LevelContext.Instance.effectLayer;
this.detectRoot.parent = a.LevelContext.Instance.playerLayer;
this.detectRoot.setSiblingIndex(0);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnUpdate = function(t) {
if (a.LevelContext.Instance && a.LevelContext.Instance.mainPlayer) {
e.prototype.OnUpdate.call(this, t);
this.UpdateCd(t);
this.UpdateFireTarget();
var n = this.owner.node.parent.convertToNodeSpaceAR(this.owner.firePnt.convertToWorldSpaceAR(cc.Vec2.ZERO, this.v1), this.v1);
this.detectRoot.active = !this.owner.isDashing;
this.detectRoot.setPosition(n);
if (this.owner.autoSelectTarget) {
var o = l.default.forward2Angle(this.owner.fireForward);
this.SetAimRotation(o);
}
}
};
t.prototype.OnBulletReloadEnd = function() {
this.OnBulletNumChanged();
};
t.prototype.OnBulletNumChanged = function() {
var e = a.LevelContext.Instance.mainPlayer;
this.bulletLabel.string = "" + e.bulletNum;
this.bulletLabel.node.active = this.owner.bulletNum > 0;
};
t.prototype.OnPlayerFireBullet = function() {
this.OnBulletNumChanged();
};
t.prototype.OnLevelStart = function() {
this.OnBulletNumChanged();
};
t.prototype.UpdateCd = function() {
var e = this.owner.bulletNum <= 0;
this.bulletCdBar.parent.active = e;
e && (this.bulletCdBar.x = this.owner.curBulletCd / this.owner.maxBulletCd * this.bulletCdBar.parent.width);
};
t.prototype.UpdateFireTarget = function() {
this.owner.autoSelectTarget || 0 == this.detectEnemies.length && (this.owner.fireTarget = null);
var e = 0;
if (this.owner.fireTargetExist) e = cc.Vec2.distance(this.owner.fireTarget.aimPos, this.owner.firePos); else {
this.defaultDetectLen;
e = 1280;
}
this.detectBg.width = e;
this.detectBg.active = this.owner.isManualCtrl;
if (this.owner.fireTargetExist) {
this.lockRoot.setPosition(this.owner.fireTarget.body.position);
this.lockRoot.active = this.owner.fireTargetManual;
} else this.lockRoot.active = !1;
};
t.prototype.SetAimRotation = function(e) {
this.detectRoot.angle = e;
};
t.prototype.onCollisionEnter = function(e) {
if ("Enemy" == e.node.group) {
var t = e.node.parent.getComponent(r.Entity);
this.detectEnemies.push(t);
this.OnDetectEnemyChanged();
}
};
t.prototype.onCollisionExit = function(e) {
if ("Enemy" == e.node.group) {
var t = e.node.parent.getComponent(r.Entity), n = this.detectEnemies.indexOf(t);
n >= 0 && this.detectEnemies.splice(n, 1);
}
};
t.prototype.OnDetectEnemyChanged = function() {
for (var e = Number.MAX_SAFE_INTEGER, t = null, n = 0; n < this.detectEnemies.length; n++) {
var o = this.detectEnemies[n];
if (o.isInCamera && o.targetable && !o.dead) {
var r = cc.Vec2.squaredDistance(this.owner.body.position, o.body.position);
if (r <= e) {
e = r;
t = o;
}
}
}
this.owner.fireTarget = t;
this.owner.fireTargetManual = null != t;
if (t) {
var i = t.node.getContentSize();
this.lockLeft.setPosition(.5 * -i.width, .5 * i.height);
this.lockRight.setPosition(.5 * i.width, .5 * i.height);
this.lockTop.setPosition(0, i.height);
this.lockBottom.setPosition(0, 0);
l.default.forward(this.owner.fireTarget.aimPos, this.owner.firePos, this.owner.fireForward);
}
};
__decorate([ u(cc.Node) ], t.prototype, "bulletCdBar", void 0);
__decorate([ u(cc.Node) ], t.prototype, "detectRoot", void 0);
__decorate([ u(cc.Node) ], t.prototype, "detectCollider", void 0);
__decorate([ u(cc.Node) ], t.prototype, "detectBg", void 0);
__decorate([ u(cc.Node) ], t.prototype, "lockRoot", void 0);
__decorate([ u(cc.Node) ], t.prototype, "lockLeft", void 0);
__decorate([ u(cc.Node) ], t.prototype, "lockRight", void 0);
__decorate([ u(cc.Node) ], t.prototype, "lockTop", void 0);
__decorate([ u(cc.Node) ], t.prototype, "lockBottom", void 0);
__decorate([ u(cc.Label) ], t.prototype, "bulletLabel", void 0);
__decorate([ u(cc.Label) ], t.prototype, "dashLabel", void 0);
__decorate([ u() ], t.prototype, "defaultDetectLen", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnBulletReloadEnd", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnBulletNumChanged", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnPlayerFireBullet", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnLevelStart", null);
return __decorate([ c ], t);
}(i.EntityHUD);
n.PlayerHUD = p;
cc._RF.pop();
}, {
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./Entity": "Entity",
"./EntityHUD": "EntityHUD",
"./LevelContext": "LevelContext",
"./Util": "Util"
} ],
PlayerOutlineEffect: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e2992ZnRAhMYK5bAdWSWbIt", "PlayerOutlineEffect");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = e("./EntityViewEffect"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.prefab = null;
t.intervel = .3;
t.duration = 1;
t.count = 3;
return t;
}
Object.defineProperty(t.prototype, "totalTime", {
get: function() {
return this.intervel * this.count + this.duration;
},
enumerable: !1,
configurable: !0
});
t.prototype.onEnable = function() {
this.prefab.node.active = !1;
this.SpawnAll();
};
t.prototype.SpawnAll = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function(t) {
switch (t.label) {
case 0:
e = 0;
t.label = 1;

case 1:
if (!(e < this.count)) return [ 3, 4 ];
this.Spawn(e == this.count - 1);
return [ 4, this.waitForTime(this.intervel) ];

case 2:
t.sent();
t.label = 3;

case 3:
e++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.Spawn = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n;
return __generator(this, function(o) {
switch (o.label) {
case 0:
t = cc.instantiate(this.prefab.node);
n = t.getComponent(r.default);
t.setParent(this.node);
t.active = !0;
n.ResetOutlineParams();
return [ 4, this.waitForTime(this.duration) ];

case 1:
o.sent();
t.destroy();
e && this.node.destroy();
return [ 2 ];
}
});
});
};
__decorate([ l(r.default) ], t.prototype, "prefab", void 0);
__decorate([ l() ], t.prototype, "intervel", void 0);
__decorate([ l() ], t.prototype, "duration", void 0);
__decorate([ l() ], t.prototype, "count", void 0);
return __decorate([ a ], t);
}(o.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"./EntityViewEffect": "EntityViewEffect"
} ],
PlayerVision: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7ae22MOk6BN4rP1xPFKHwFf", "PlayerVision");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.collider = null;
t.colliders = [];
t.enemies = [];
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.collider = this.getComponent(cc.CircleCollider);
this.colliders = [];
this.enemies = [];
};
t.prototype.onCollisionEnter = function(e) {
this.isActive && this.colliders.push(e);
};
t.prototype.onCollisionExit = function(e) {
var t = this.colliders.indexOf(e);
t < 0 || this.colliders.splice(t, 1);
};
return __decorate([ i ], t);
}(o.MyComponent));
n.default = a;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0
} ],
Player: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d2ef9j2YZhA+7lOA2a2xgaP", "Player");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Player = void 0;
var o = e("../../Framework/Core/Views/ViewUIManager"), r = e("../Config/Config"), i = e("../Config/GameModel"), a = e("../Config/SkillConfig"), l = e("../Config/BattleSkillData"), s = e("../RVO2/RVOBody"), c = e("../UI/BattleLevelupUI"), u = e("../UI/BattleReliveUI"), p = e("../UI/BattleResultUI"), d = e("./Entity"), f = e("./LevelContext"), h = e("./Util"), m = e("./View/TailRenderer"), w = e("./State/Animator"), y = e("./State/Condition"), g = e("./PlayerVision"), v = e("../../Framework/Core/Resource/EffectManager"), S = e("./PlayerHUD"), M = e("../../Framework/Core/Resource/AssetManager"), k = e("../../Framework/Core/Resource/SoundsManager"), C = e("./WeaponControl"), P = e("../Config/TalentData"), _ = e("../Config/TalentConfig"), O = e("./View/FollowTarget"), b = e("../UI/BookUI"), F = e("../../Service/Extension/Input/TouchInput"), I = e("../../Service/kl"), E = e("../Config/EquipmentConfig"), D = e("../UI/BoxUI2"), R = e("./PlayerGhost"), L = cc._decorator, B = L.ccclass, U = L.property, T = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.hudPrefab = null;
t.boxIndicatorPrefab = null;
t.visioinCollider = null;
t.footCollider = null;
t.heroData = null;
t.weaponData = null;
t.equipDatas = [];
t.weapon = null;
t.ghost = null;
t.exp = 0;
t.level = 1;
t.pickableCnt = 1;
t.leftShieldCnt = 0;
t.getAllLevelupCnt = 0;
t.reliveCnt = 0;
t.isClone = !1;
t.isManualCtrl = !1;
t.pickItemRadius = 0;
t.fireIntervel = 0;
t.summons = [];
t.boxIndicators = [];
t.tailRender = null;
t.vision = null;
t.vehicle = null;
t.input = cc.v2();
t.tmpExp = 0;
t.isShowingExpUI = !1;
t.hitColor = cc.color(0, 255, 255, 255);
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
Object.defineProperty(t.prototype, "isAutoAtk", {
get: function() {
return this.GetFeature(a.SkillFeature.AutoFire) > 0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "maxActiveSkillCnt", {
get: function() {
return this.heroData.proto.activeSkillCnt + f.LevelContext.Instance.levelProto.skillCnt;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "maxPasstiveSkillCnt", {
get: function() {
return this.heroData.proto.passitiveSkillCnt + f.LevelContext.Instance.levelProto.skillCnt;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "maxHeroSkillCnt", {
get: function() {
return 3;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "allActiveSkill", {
get: function() {
var e = [];
this.activeSkills.forEach(function(t) {
if (t.isNormalSkill) {
var n = t.group;
n && n.activeSkill && !e.contains(n) && e.push(n);
}
});
return e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "allPasstiveSkill", {
get: function() {
var e = [];
this.activeSkills.forEach(function(t) {
if (t.isNormalSkill) {
var n = t.group;
!n || n.activeSkill || e.contains(n) || e.push(n);
}
});
return e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "allSuperSkill", {
get: function() {
var e = [];
this.activeSkills.forEach(function(t) {
if (!t.isNormalSkill) {
var n = t.group;
n && n.type == a.SkillGroupType.Super && e.push(t.proto);
}
});
return e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "allHeroSkill", {
get: function() {
var e = [], t = a.SkillConfig.GetHeroSkillGroupByHero(this.heroData.id);
t && this.activeSkills.forEach(function(n) {
n.isHeroSkill && n.proto.groupId == t.id && e.push(n.proto);
});
return e;
},
enumerable: !1,
configurable: !0
});
t.prototype.ContainGroup = function(e) {
return this.activeSkills.find(function(t) {
return t.proto.groupId == e;
});
};
Object.defineProperty(t.prototype, "totalReliveCount", {
get: function() {
return this.GetFeature(a.SkillFeature.ReliveUp);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "crazyCoinTime", {
get: function() {
return r.Config.CrazyCoinTime * (1 + .01 * this.GetFeature(a.SkillFeature.CrazyCoinTimeUpPercent));
},
enumerable: !1,
configurable: !0
});
t.prototype.GetSkillLevel = function(e) {
for (var t = 1, n = 0; n < this.activeSkills.length; n++) {
var o = this.activeSkills[n];
if (o && o.isNormalSkill) {
var r = o.group;
if (r == e) {
var i = r.GetLv(o.id);
t < i && (t = i);
}
}
}
return t;
};
t.prototype.onLoad = function() {
return __awaiter(this, void 0, void 0, function() {
var t;
return __generator(this, function() {
this.isMainPlayer = !0;
this.pickItemRadius = r.Config.BasePickRange;
this.tailRender = this.getComponent(m.default);
this.vision = this.visioinCollider.getComponent(g.default);
t = cc.instantiate(this.hudPrefab);
this.hud = t.getComponent(S.PlayerHUD);
this.hud.node.parent = f.LevelContext.Instance.textLayer;
this.hud.node.getOrAddComponent(O.default).SetTarget(this.node);
e.prototype.onLoad.call(this);
return [ 2 ];
});
});
};
t.prototype.onDestroy = function() {};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
this.UpdateInput();
this.OnUpdateTarget();
this.isClone || this.UpdateBoxIndicator();
};
t.prototype.UpdateInput = function() {
if (!(this.dead || this.timeScale <= 0 || this.isDashing || this.controlableCnt <= 0)) {
var e = f.LevelContext.Instance.joystick;
this.input.set(e.equals(cc.Vec2.ZERO) ? F.default.instance.joystickValue : e.normalize());
if (this.chaosCnt > 0) {
this.input.x *= -1;
this.input.y *= -1;
}
this.body.velocity = this.input.multiplyScalar(this.speed);
}
};
t.prototype.CalcTargetDir = function() {
var e = this.firePos, t = this.fireTarget.aimPos;
Math.abs(e.x - t.x) < 50 || Math.abs(e.y - t.y) < 50 ? h.default.forward(t, this.aimPos, this.fireForward) : h.default.forward(t, e, this.fireForward);
};
t.prototype.OnUpdateTarget = function() {
if (!(this.controlableCnt <= 0)) if (this.isManualCtrl) ; else if (this.fireTargetManual && this.fireTargetExist) if (this.fireTarget.isInCamera) this.CalcTargetDir(); else {
this.fireTarget = null;
this.fireTargetManual = !1;
} else {
if (this.autoSelectTarget && !(this.fireTargetExist && h.default.time - this.lastUpdateTargetTime < .5)) {
var e = f.LevelContext.Instance.GetNearestEnemy(this.body.position);
if (this.fireTarget != e) {
this.fireTarget = e;
this.fireTargetManual = !1;
}
}
this.fireTargetExist ? this.CalcTargetDir() : this.fireForward.set(this.body.forward);
}
};
t.prototype.OnDead = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function(n) {
switch (n.label) {
case 0:
this.ClearBuffs();
this.body.isActive = !1;
this.controlableCnt--;
e = t;
this.HitFly(150, e, .5);
f.LevelContext.Instance.cameraShake.Start(2, .1);
h.default.Vibrate();
return [ 4, f.LevelContext.Instance.waitForTime(.5) ];

case 1:
n.sent();
this.node.opacity = 0;
this.viewEft.ShowDeadEffect(cc.Vec2.ZERO);
return [ 4, f.LevelContext.Instance.waitForTime(.5) ];

case 2:
n.sent();
return this.reliveCnt <= this.totalReliveCount ? [ 4, o.default.ShowView(u.default) ] : [ 3, 5 ];

case 3:
n.sent();
return [ 4, o.default.UntilHide(u.default) ];

case 4:
n.sent();
this.node.opacity = 255;
this.controlableCnt++;
return [ 2 ];

case 5:
this.node.active = !1;
return [ 4, f.LevelContext.Instance.waitForTime(.5) ];

case 6:
n.sent();
o.default.ShowView(p.default, !1);
return [ 2 ];
}
});
});
};
t.prototype.OnInit = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, o;
return __generator(this, function(a) {
switch (a.label) {
case 0:
this.body instanceof s.RVOBody && this.body.SetCollideMask(r.Config.RVOLayer_Player);
t = this.getComponent(C.WeaponControl);
this.ghost = this.getComponent(R.PlayerGhost);
this.ghost && t.maskNode.childrenCount <= 0 && this.ghost.CreateGhost(this);
return [ 4, this.AddWeapon(e) ];

case 1:
a.sent();
return [ 4, I.default.catchAsync(this, this.InitEquipment, t) ];

case 2:
a.sent();
return [ 4, I.default.catchAsync(this, this.InitFeatureSkill) ];

case 3:
a.sent();
this.health = this.maxHealth;
this.bulletNum = this.maxBulletNum;
n = 0;
a.label = 4;

case 4:
return n < i.default.Instance.talentList.length ? (o = i.default.Instance.talentList[n]).lv > 0 && o.active ? [ 4, I.default.catchAsync(this, this.AddTalent, o) ] : [ 3, 6 ] : [ 3, 7 ];

case 5:
a.sent();
a.label = 6;

case 6:
n++;
return [ 3, 4 ];

case 7:
this.LoadAnimator();
return [ 2 ];
}
});
});
};
t.prototype.InitFeatureSkill = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
return this.heroData.proto.featureSkill ? [ 4, this.AddSkill1(this.heroData.proto.featureSkill) ] : [ 2 ];

case 1:
return [ 2, e.sent() ];
}
});
});
};
t.prototype.InitEquipment = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, o, r, a, l, s, c, u, p, d, f;
return __generator(this, function(h) {
switch (h.label) {
case 0:
t = i.default.Instance;
n = t.equipmentList;
o = 0;
h.label = 1;

case 1:
if (!(o < n.length)) return [ 3, 5 ];
if (!(r = n[o]).isEquip) return [ 3, 4 ];
this.equipDatas.push(r);
for (a = 0; a < r.proto.features.length; a++) {
l = r.proto.features[a];
this.AddFeature(l);
}
return [ 4, M.default.Default.LoadRes(r.proto.resPath) ];

case 2:
s = h.sent();
c = cc.instantiate(s);
u = c.getComponentsInChildren(cc.Sprite);
for (p = 0; p < u.length; p++) {
d = u[p];
this.viewEft.sprites.push(d);
}
c.setPosition(cc.Vec2.ZERO);
if (r.proto.type == E.EquipmentType.Wing) {
(f = c.findChild("Front")) && f.setParent(e.wingFrontNode);
c.setParent(e.wingNode);
} else c.setParent(e.maskNode);
return r.proto.skillProto ? [ 4, this.AddSkill1(r.proto.skillProto) ] : [ 3, 4 ];

case 3:
h.sent();
h.label = 4;

case 4:
o++;
return [ 3, 1 ];

case 5:
return [ 2 ];
}
});
});
};
t.prototype.AddWeapon = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, o, r, i, l, s;
return __generator(this, function(c) {
switch (c.label) {
case 0:
this.weaponData = e;
this.weaponData.proto.skillProto.resPath = e.skillPath;
return [ 4, M.default.Default.LoadRes(e.resPath) ];

case 1:
t = c.sent();
(n = cc.instantiate(t)).setParent(this.getComponent(C.WeaponControl).gunNode);
n.setPosition(0, 0);
n.angle = 0;
this.AddFeatureEx(a.SkillFeature.ElementDamageUp, e.proto.elementDamage);
this.AddFeatureEx(a.SkillFeature.SummonDamageUp, e.proto.summonDamage);
this.AddFeatureEx(a.SkillFeature.DashDamageUp, e.proto.dashDamage);
this.AddFeatureEx(a.SkillFeature.CritDamageUpPercent, e.proto.critDamage);
this.AddFeatureEx(a.SkillFeature.CritUp, e.proto.crit);
for (o = 0; o < e.level.intValue; o++) {
r = e.proto.levelProps[o].features;
for (i = 0; i < r.length; i++) {
l = r[i];
this.AddFeatureEx(l.type, l.x);
}
}
for (o = 0; o < e.classLevel.intValue; o++) {
r = e.proto.classProps[o].features;
for (i = 0; i < r.length; i++) {
l = r[i];
this.AddFeatureEx(l.type, l.x);
}
}
return [ 4, this.AddSkill1(e.proto.skillProto) ];

case 2:
s = c.sent();
this.weaponSkill = s;
if (s) {
s.hitbackForce = s.context.hitbackForce = e.proto.hitback;
s.hitbackTime = s.context.hitbackTime = .1;
}
return [ 2 ];
}
});
});
};
t.prototype.RemoveWeapon = function() {
var e = this.weaponData;
this.getComponent(C.WeaponControl).gunNode.destroyAllChildren();
this.AddFeatureEx(a.SkillFeature.ElementDamageUp, -e.proto.elementDamage);
this.AddFeatureEx(a.SkillFeature.SummonDamageUp, -e.proto.summonDamage);
this.AddFeatureEx(a.SkillFeature.DashDamageUp, -e.proto.dashDamage);
this.AddFeatureEx(a.SkillFeature.CritDamageUpPercent, -e.proto.critDamage);
this.AddFeatureEx(a.SkillFeature.CritUp, -e.proto.crit);
for (var t = 0; t < e.level.intValue; t++) for (var n = e.proto.levelProps[t].features, o = 0; o < n.length; o++) {
var r = n[o];
this.AddFeatureEx(r.type, -r.x);
}
for (t = 0; t < e.classLevel.intValue; t++) for (n = e.proto.classProps[t].features, 
o = 0; o < n.length; o++) {
r = n[o];
this.AddFeatureEx(r.type, -r.x);
}
this.RemoveSkill(e.proto.skillProto.id);
};
t.prototype.LoadAnimator = function() {
var e = this, t = this.node.getOrAddComponent(w.default);
t.animation = this.anim;
t.AddProperty("Fire");
t.AddProperty("Attack");
t.AddProperty("IsHitFly", !1);
t.AddProperty("Run", !1);
t.AddProperty("IsDead", function() {
return e.dead;
});
t.AddProperty("IsMoving", function() {
return !e.body.velocity.equals(cc.Vec2.ZERO);
});
t.AddProperty("NormalSpeed", function() {
return e.body.velocity.lengthSqr() / (e.speed * e.speed);
});
var n = new w.AnimatorState("Idle", t, "Idle"), o = new w.AnimatorState("Run", t, "Run"), r = new w.AnimatorState("HitFly", t, "Idle"), i = new w.AnimatorState("Fire", t, "Fire"), a = new w.AnimatorState("Attack", t, "Attack"), l = t.anyState;
t.defaultState = n;
l.AddTransition(i, {
addtive: !0
}, !1, new y.Trigger("Fire"));
l.AddTransition(a, {
addtive: !0
}, !1, new y.Trigger("Attack"));
l.AddTransition(r, {
reset: !0
}, !1, new y.Equal("IsHitFly", !0));
l.AddTransition(n, null, !1, new y.Equal("IsHitFly", !1), new y.Equal("IsMoving", !1));
l.AddTransition(o, null, !1, new y.Equal("IsHitFly", !1), new y.Equal("IsMoving", !0), new y.GreaterEqual("NormalSpeed", .5));
this.animator = t;
};
t.prototype.UpdateAnimSpeed = function() {};
t.prototype.Damage = function(t, n, o, r) {
void 0 === r && (r = cc.Vec2.ZERO);
if (this.isWuDi) return !1;
if (this.leftShieldCnt > 0) {
this.leftShieldCnt--;
0 == this.leftShieldCnt && (this.wuDiLeftTime += .5);
return !1;
}
if (this.health <= 1) {
var i = this.GetSkill(_.TalentConfig.GuardianSkillID);
i && i && i.sacrifice(this) && this.health++;
}
console.warn("damage player", t);
t = Math.min(1, t);
var a = e.prototype.Damage.call(this, t, n, o);
if (a) {
this.wuDiLeftTime += 2;
this.viewEft.ShowTwinkleEffect(2);
}
return a;
};
t.prototype.ResetFeatures = function() {
var e = this.maxHealth;
this.maxHealth = Math.max(1, this.GetFeature(a.SkillFeature.PlayerMaxHealthUp) + (1 + .01 * this.GetFeature(a.SkillFeature.PlayerMaxHealthUpPercent)) * this.heroData.proto.health);
e > this.maxHealth && this.health > this.maxHealth ? this.AddHealth(Math.floor(this.maxHealth - this.health)) : e < this.maxHealth && this.health < this.maxHealth && this.AddHealth(Math.floor(this.maxHealth - e));
e != this.maxHealth && this.SendMessage("OnHealthChanged", this, this.health);
this.pickItemRadius = (1 + .01 * this.GetFeature(a.SkillFeature.PickRangeUpPercent)) * r.Config.BasePickRange;
var t = (1 + .01 * this.GetFeature(a.SkillFeature.PlayerSpeedUpPercent)) * this.heroData.proto.speed;
this.ResetSpeed(t);
this.fireIntervel = 1 / (this.weaponData.proto.fireSpeed * (1 + .01 * this.GetFeature(a.SkillFeature.BulletIntervelUpPercent)));
this.fireIntervel = Math.max(.05, this.fireIntervel);
var n = 0 != this.GetFeature(a.SkillFeature.BulletMiniCapacity);
this.maxBulletNum = n ? 1 : (this.weaponData.proto.capacity + this.GetFeature(a.SkillFeature.BulletCapacityUp)) * (1 + .01 * this.GetFeature(a.SkillFeature.BulletCapacityUpPercent));
n && this.AddBulletNumber(1 - this.bulletNum);
this.maxBulletCd = this.weaponData.proto.reloadTime / (1 + .01 * this.GetFeature(a.SkillFeature.BulletCDUpPercent));
this.maxBulletCd = Math.max(.05, this.maxBulletCd);
var o = 1 + .01 * this.GetFeature(a.SkillFeature.PlayerScaleUp);
this.node.scale = o;
o = (1 + .01 * this.GetFeature(a.SkillFeature.PlayerVisionUpPercent)) / o;
this.visioinCollider.radius = r.Config.BaseVisionRange * o;
if (this.dashSkill) {
var i = this.dashSkill.maxDashCnt;
this.dashSkill.maxDashCnt = 1 + this.GetFeature(a.SkillFeature.DashCountUp);
i != this.dashSkill.maxDashCnt && (this.dashSkill.leftDashCnt += Math.floor(this.dashSkill.maxDashCnt - i));
}
};
t.prototype.ResetSpeed = function(e) {
cc.tween(this).to(.3, {
speed: e
}).start();
};
t.prototype.AddExp = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, i, l;
return __generator(this, function(s) {
switch (s.label) {
case 0:
if (this.dead) return [ 2 ];
e *= 1 + .01 * this.GetFeature(a.SkillFeature.ExpUpPercent);
if (this.isShowingExpUI) {
this.tmpExp += e;
return [ 2 ];
}
if (f.LevelContext.Instance.crazyCoinLeftTime > 0) {
f.LevelContext.Instance.crazyCoinLeftTime = Math.min(f.LevelContext.Instance.crazyCoinLeftTime + r.Config.CrazyCoinAddTime * e, this.crazyCoinTime);
f.LevelContext.Instance.crazyCoins += e;
}
this.exp += e;
t = this.heroData.proto.GetLevelExp(this.level + 1);
n = 0;
for (;this.exp >= t; ) {
this.exp = Math.max(0, this.exp - t);
this.level++;
this.heroData.level = this.level;
this.broadcastMessage("OnBattleSkillLevelUp", f.LevelContext.Instance.levelProto.id, this.heroData.proto.id, this.level);
t = this.heroData.proto.GetLevelExp(this.level + 1);
n++;
}
this.broadcastMessage("OnExpChanged", this);
i = 0;
s.label = 1;

case 1:
if (!(i < n)) return [ 3, 9 ];
this.pickableCnt--;
this.isShowingExpUI = !0;
this.ghost && (this.ghost.ghost.active = !1);
k.default.instance.PlayEffect("levelup");
this.AddWudiTime(.75);
f.LevelContext.Instance.cameraShake.Start(5, .3);
return [ 4, v.EffectManager.PlayEffect(null, "Prefabs/NewSkill/Levelup", this.vehicle ? this.vehicle.node : this.node, cc.Vec2.ZERO) ];

case 2:
s.sent();
return [ 4, f.LevelContext.Instance.waitForTime(.1) ];

case 3:
s.sent();
this.ShockAwayMonsters();
return [ 4, f.LevelContext.Instance.waitForTime(.55) ];

case 4:
s.sent();
return this.dead ? [ 3, 7 ] : [ 4, o.default.ShowView(c.default) ];

case 5:
s.sent();
return [ 4, o.default.UntilHide(c.default) ];

case 6:
s.sent();
s.label = 7;

case 7:
this.pickableCnt++;
this.ghost && (this.ghost.ghost.active = !0);
s.label = 8;

case 8:
i++;
return [ 3, 1 ];

case 9:
this.isShowingExpUI = !1;
if (this.tmpExp > 0) {
l = this.tmpExp;
this.tmpExp = 0;
this.AddExp(l);
}
return [ 2 ];
}
});
});
};
t.prototype.ShockAwayMonsters = function(e, t) {
void 0 === e && (e = 900);
for (var n = cc.v2(), o = 0; o < f.LevelContext.Instance.enemies.length; o++) {
var r = f.LevelContext.Instance.enemies[o];
if (r.hitFlyAble && !r.staitcCollision) {
var i = cc.Vec2.subtract(n, r.body.position, this.body.position);
if (!(t && i.lengthSqr() > t * t)) {
i.normalizeSelf().mulSelf(e);
r.body.AddForce(n.x, n.y, .1);
}
}
}
};
t.prototype.OpenBox = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
return [ 4, o.default.ShowView(D.default) ];

case 1:
e.sent();
return [ 4, o.default.UntilHide(D.default) ];

case 2:
e.sent();
return [ 2 ];
}
});
});
};
t.prototype.OpenBook = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
return [ 4, o.default.ShowView(b.default) ];

case 1:
e.sent();
return [ 4, o.default.UntilHide(b.default) ];

case 2:
e.sent();
return [ 2 ];
}
});
});
};
t.prototype.AddSkill = function(e, t) {
return __awaiter(this, void 0, Promise, function() {
var n, o;
return __generator(this, function(r) {
switch (r.label) {
case 0:
n = i.default.Instance;
o = n.GetSkill(e);
return [ 4, this.AddSkill1(o.proto, t) ];

case 1:
return [ 2, r.sent() ];
}
});
});
};
t.prototype.AddSkill1 = function(e, t) {
return __awaiter(this, void 0, Promise, function() {
var n, o;
return __generator(this, function(r) {
switch (r.label) {
case 0:
n = new l.BattleSkillData(e);
return [ 4, this.AddSkillByData(n, t) ];

case 1:
o = r.sent();
this.broadcastMessage("OnAddSkill", n);
this.ResetFeatures();
return [ 2, o ];
}
});
});
};
t.prototype.RemoveSkill = function(t) {
var n = e.prototype.RemoveSkill.call(this, t);
this.broadcastMessage("OnRemoveSkill", t);
return n;
};
t.prototype.GetSummon = function(e) {
return this.summons.find(function(t) {
return t.proto.id == e;
});
};
t.prototype.AddTalentId = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
var n, o;
return __generator(this, function(r) {
switch (r.label) {
case 0:
n = _.TalentConfig.GetTalent(e);
(o = new P.TalentData(n)).active = !0;
o.lv = t;
return [ 4, this.AddTalent(o) ];

case 1:
r.sent();
return [ 2 ];
}
});
});
};
t.prototype.AddTalent = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t = this;
return __generator(this, function(n) {
switch (n.label) {
case 0:
e.proto.features && e.proto.features.forEach(function(n) {
t.AddFeatureEx(n.type, n.x * e.lv, n.y, n.replace, n.downPercent);
});
return e.proto.skillProto ? [ 4, this.AddSkill1(e.proto.skillProto) ] : [ 3, 2 ];

case 1:
n.sent().StartTalent(e);
return [ 3, 3 ];

case 2:
this.ResetFeatures();
n.label = 3;

case 3:
this.broadcastMessage("OnAddTalent", e);
console.log("添加天赋", e.proto.name, e.lv);
return [ 2 ];
}
});
});
};
t.prototype.IsInVision = function(e) {
for (var t = 0; t < this.vision.colliders.length; t++) {
var n = this.vision.colliders[t];
if (cc.isValid(n) && n.node.parent.getComponent(d.Entity) == e) return !0;
}
return !1;
};
t.prototype.AddWudiTime = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
this.wuDiLeftTime += e;
if (this.wuDiEf) return [ 3, 2 ];
t = this;
return [ 4, M.default.Default.CreateNode("Prefabs/Effect/BaoHuZhao_EF", this.node, cc.Vec2.ZERO) ];

case 1:
t.wuDiEf = n.sent();
n.label = 2;

case 2:
return [ 2 ];
}
});
});
};
t.prototype.UpdateBoxIndicator = function() {
if (this.boxIndicators) for (var e = Math.max(this.boxIndicators.length, f.LevelContext.Instance.boxes.length + f.LevelContext.Instance.vehicles.length), t = 0; t < e; t++) {
var n = this.boxIndicators[t], o = t < f.LevelContext.Instance.boxes.length ? f.LevelContext.Instance.boxes[t] : f.LevelContext.Instance.vehicles[t];
this.UpdateIndicator(n, o);
}
};
t.prototype.UpdateIndicator = function(e, t) {
if (t && !t.isInCamera) {
if (!e) {
(e = M.default.Default.CreateNodeSync(this.boxIndicatorPrefab)).getOrAddComponent(O.default).SetTarget(this.node);
e.setParent(f.LevelContext.Instance.effectLayer);
this.boxIndicators.push(e);
}
e.active = !f.LevelContext.Instance.isFightingBoss;
e.angle = h.default.forward2Angle(t.node.getPosition(this.v1).sub(this.body.position, this.v2).normalize());
} else e && (e.active = !1);
};
t.prototype.OnFinal = function() {
e.prototype.OnFinal.call(this);
for (var t = 0; t < this.boxIndicators.length; t++) {
var n = this.boxIndicators[t];
M.default.Default.DestroyNode(n);
}
this.boxIndicators = null;
};
__decorate([ U(cc.Prefab) ], t.prototype, "hudPrefab", void 0);
__decorate([ U(cc.Prefab) ], t.prototype, "boxIndicatorPrefab", void 0);
__decorate([ U(cc.CircleCollider) ], t.prototype, "visioinCollider", void 0);
__decorate([ U(cc.Collider) ], t.prototype, "footCollider", void 0);
return __decorate([ B ], t);
}(d.Entity);
n.Player = T;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Service/Extension/Input/TouchInput": void 0,
"../../Service/kl": void 0,
"../Config/BattleSkillData": "BattleSkillData",
"../Config/Config": "Config",
"../Config/EquipmentConfig": "EquipmentConfig",
"../Config/GameModel": "GameModel",
"../Config/SkillConfig": "SkillConfig",
"../Config/TalentConfig": "TalentConfig",
"../Config/TalentData": "TalentData",
"../RVO2/RVOBody": "RVOBody",
"../UI/BattleLevelupUI": "BattleLevelupUI",
"../UI/BattleReliveUI": "BattleReliveUI",
"../UI/BattleResultUI": "BattleResultUI",
"../UI/BookUI": "BookUI",
"../UI/BoxUI2": "BoxUI2",
"./Entity": "Entity",
"./LevelContext": "LevelContext",
"./PlayerGhost": "PlayerGhost",
"./PlayerHUD": "PlayerHUD",
"./PlayerVision": "PlayerVision",
"./State/Animator": "Animator",
"./State/Condition": "Condition",
"./Util": "Util",
"./View/FollowTarget": "FollowTarget",
"./View/TailRenderer": "TailRenderer",
"./WeaponControl": "WeaponControl"
} ],
ProcessSaveData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "43be8aRPflOAb7P1ZNCHjjH", "ProcessSaveData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ProcessSaveData = n.ProcessWeaponData = n.ProcessTalentData = n.ProcessItemData = void 0;
var o = e("./Config");
n.ProcessItemData = function() {};
n.ProcessTalentData = function() {};
n.ProcessWeaponData = function(e, t, n) {
this.id = e;
this.classLevel = t;
this.level = n;
};
n.ProcessSaveData = function() {
this.battleMode = o.BattleMode.Level;
this.curLevel = 1;
this.selectedHeroId = 0;
this.selectedWeaponId = 0;
this.playerPositionX = 0;
this.playerPositionY = 0;
this.playerLv = 0;
this.playerExp = 0;
this.playerHp = 0;
this.playerSkills = [];
this.playerSkillDatas = [];
this.playerTalentDatas = [];
this.getAllLevelupCnt = 0;
this.reliveCnt = 0;
this.items = [];
this.weaponData = null;
this.totalTime = 0;
this.changeSkillCnt = 0;
this.killEnemyCnt = 0;
this.totalCoins = 0;
this.goldCloverCnt = 0;
this.vehicleCnt = 0;
this.seniorBoxCnt = 0;
this.heroSkillAppear = [];
this.sellItems = null;
};
cc._RF.pop();
}, {
"./Config": "Config"
} ],
QiaoHunDanJia: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b3745zKRvVOGayzDYEQIX7E", "QiaoHunDanJia");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.accelStep = 5;
t.acceledValue_ = 0;
return t;
}
Object.defineProperty(t.prototype, "acceledValue", {
get: function() {
return this.acceledValue_;
},
enumerable: !1,
configurable: !0
});
t.prototype.AddAcceledValue = function(e) {
this.acceledValue_ += e;
var t = this.context.owner;
t.AddFeatureEx(o.SkillFeature.BulletCDUpPercent, e);
t.ResetFeatures();
};
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnKillEnemy = function() {
this.AddAcceledValue(this.accelStep);
};
t.prototype.OnBulletReloadEnd = function() {
this.AddAcceledValue(-this.acceledValue);
};
__decorate([ s() ], t.prototype, "accelStep", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
__decorate([ r.BroadcastHandler ], t.prototype, "OnBulletReloadEnd", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill"
} ],
RVOBody: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d3a99TVBUFBX5M0JszF/Gkw", "RVOBody");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.RVOBody = void 0;
var o = e("./IBody"), r = e("./RVOScene"), i = e("./Vector2"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.velocityLerp = 15;
t.bodyRadius = 25;
t.skin = 0;
t.static = !1;
t.mask = 4294967295;
t.tmp = new i.Vector2();
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
if (r.RVOScene.Instance) {
var t = r.RVOScene.Instance.impl;
if (t) {
var n = new i.Vector2(this.velocity.x, -this.velocity.y);
null != this.agentId && r.RVOScene.Instance.impl.delAgent(this.agentId);
this.agentId = t.addAgent2(new i.Vector2(this.node.x, -this.node.y), 2 * this.bodyRadius - this.skin, 1, 1, 1, this.bodyRadius, this.static ? 0 : 100, n);
t.setAgentCollideMask(this.agentId, this.mask);
r.RVOScene.Instance.bodies.push(this);
}
}
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
if (null != this.agentId) {
r.RVOScene.Instance.impl.delAgent(this.agentId);
this.agentId = null;
}
var t = r.RVOScene.Instance.bodies.indexOf(this);
t >= 0 && r.RVOScene.Instance.bodies.splice(t, 1);
};
t.prototype.OnRVOUpdate = function(e) {
if (null != this.agentId && !this.static) {
this.finalVelocity.x = this.velocity.x;
this.finalVelocity.y = this.velocity.y;
for (var t = this.forceList.length - 1; t >= 0; t--) {
var n = this.forceList[t];
n.Update(e);
this.finalVelocity.addSelf(n.force);
if (n.IsFinish()) {
this.forceList.splice(t, 1);
n.onCompelete && n.onCompelete();
}
}
this.tmp.x = this.finalVelocity.x * this.timeScale;
this.tmp.y = -this.finalVelocity.y * this.timeScale;
r.RVOScene.Instance.impl.setAgentPrefVelocity(this.agentId, this.tmp);
var o = Math.sqrt(this.tmp.x * this.tmp.x + this.tmp.y * this.tmp.y);
r.RVOScene.Instance.impl.setAgentMaxSpeed(this.agentId, o);
}
};
t.prototype.OnRVOLateUpdate = function() {};
t.prototype.OnUpdate = function(e) {
null != this.agentId && this.UpdatePos(e);
};
t.prototype.UpdatePos = function(e) {
var t = r.RVOScene.Instance.impl.getAgentPosition(this.agentId), n = cc.misc.clampf(this.velocityLerp * e, 0, 1), o = cc.misc.lerp(this.node.x, t.x, n), i = cc.misc.lerp(this.node.y, -t.y, n);
this.node.setPosition(o, i);
};
Object.defineProperty(t.prototype, "position", {
get: function() {
this.node.getPosition(this.pos);
return this.pos;
},
set: function(e) {
null != this.agentId && r.RVOScene.Instance.impl.setAgentPosition(this.agentId, new i.Vector2(e.x, -e.y));
this.node.setPosition(e);
},
enumerable: !1,
configurable: !0
});
t.prototype.SetRadius = function(e, t) {
if (null != this.agentId) {
r.RVOScene.Instance.impl.setAgentNeighborDist(this.agentId, 2 * e - t);
r.RVOScene.Instance.impl.setAgentRadius(this.agentId, e);
this.bodyRadius = e;
} else console.warn("SetRadius failed!", this);
};
t.prototype.SetCollideMask = function(e) {
if (null != this.agentId) {
this.mask = e;
r.RVOScene.Instance.impl.setAgentCollideMask(this.agentId, this.mask);
} else console.warn("SetCollideMask failed!", this);
};
__decorate([ s() ], t.prototype, "velocityLerp", void 0);
__decorate([ s() ], t.prototype, "bodyRadius", void 0);
__decorate([ s() ], t.prototype, "skin", void 0);
__decorate([ s() ], t.prototype, "static", void 0);
__decorate([ s() ], t.prototype, "mask", void 0);
return __decorate([ l ], t);
}(o.IBody);
n.RVOBody = c;
cc._RF.pop();
}, {
"./IBody": "IBody",
"./RVOScene": "RVOScene",
"./Vector2": "Vector2"
} ],
RVODebug: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "edb2eiEyVpHRrvx6mkorHt3", "RVODebug");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.RVODebug = void 0;
var o = e("./RVOScene"), r = cc._decorator, i = r.ccclass, a = r.property, l = r.requireComponent, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.scale = 1;
t.agentColor = cc.Color.clone(cc.Color.GREEN);
t.obstacleColor = cc.Color.clone(cc.Color.RED);
t.g = null;
return t;
}
t.prototype.onLoad = function() {
this.g = this.getComponent(cc.Graphics);
};
t.prototype.update = function() {
if (o.RVOScene.Instance) {
var e = o.RVOScene.Instance.impl;
if (e) {
this.g.clear();
this.g.strokeColor = this.obstacleColor;
this.g.lineWidth = 4 * this.scale;
for (var t = Object.assign([], e.obstacles_); t.length > 0; ) {
var n = t[0], r = n, i = 0;
t.splice(0, 1);
this.g.moveTo(n.point_.x * this.scale, -n.point_.y * this.scale);
for (;0 == i || n != r; ) {
i++;
n = n.next_;
this.g.lineTo(n.point_.x * this.scale, -n.point_.y * this.scale);
t.splice(t.indexOf(n), 1);
}
this.g.close();
}
e.obstacles_.length > 0 && this.g.stroke();
if (e.agents_.length > 0) {
this.g.fillColor = this.agentColor;
for (var a = 0; a < e.agents_.length; a++) {
var l = e.agents_[a];
this.g.circle(l.position_.x * this.scale, -l.position_.y * this.scale, l.radius_ * this.scale);
}
this.g.fill();
}
}
}
};
__decorate([ a ], t.prototype, "scale", void 0);
__decorate([ a ], t.prototype, "agentColor", void 0);
__decorate([ a ], t.prototype, "obstacleColor", void 0);
return __decorate([ i, l(cc.Graphics) ], t);
}(cc.Component);
n.RVODebug = s;
cc._RF.pop();
}, {
"./RVOScene": "RVOScene"
} ],
RVOMath: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "97661TFRNBOPbsbjYOEKKNN", "RVOMath");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.RVOMath = void 0;
var o = e("./Vector2"), r = function() {
function e() {}
e.Sqr = function(e) {
return e * e;
};
e.Sqrt = function(e) {
return Math.sqrt(e);
};
e.AbsSq = function(e) {
return o.Vector2.Dot(e, e);
};
e.FAbs = function(e) {
return Math.abs(e);
};
e.Abs = function(t) {
return e.Sqrt(e.AbsSq(t));
};
e.Normalize = function(t, n) {
void 0 === n && (n = new o.Vector2());
var r = e.Abs(t);
return o.Vector2.Divide(t, r, n);
};
e.Det = function(e, t) {
return e.x * t.y - e.y * t.x;
};
e.DistSqPointLineSegment = function(t, n, r) {
var i = o.Vector2.Subtract(r, t), a = o.Vector2.Subtract(n, t), l = o.Vector2.Dot(i, a) / e.AbsSq(a);
if (l < 0) return e.AbsSq(i);
if (l > 1) return e.AbsSq(o.Vector2.Subtract(r, n));
a = o.Vector2.Multiply(a, l, a);
a = o.Vector2.Add(t, a, a);
return e.AbsSq(o.Vector2.Subtract(r, a, a));
};
e.LeftOf = function(t, n, r) {
return e.Det(o.Vector2.Subtract(t, r), o.Vector2.Subtract(n, t));
};
e.RVO_EPSILON = 1e-5;
return e;
}();
n.RVOMath = r;
cc._RF.pop();
}, {
"./Vector2": "Vector2"
} ],
RVOObstacle: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "13721k8asVCKr/hNtCTw6nl", "RVOObstacle");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.RVOObstacle = void 0;
var o = e("./RVOScene"), r = e("./Vector2"), i = cc._decorator, a = i.ccclass, l = i.property, s = i.requireComponent, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.relativeNode = null;
t.box = null;
t.mask = 4294967295;
t.agentId = null;
return t;
}
t.prototype.onEnable = function() {
if (o.RVOScene.Instance) {
this.box || (this.box = this.getComponent(cc.BoxCollider));
this.box && null == this.agentId && this.AddObstacle();
}
};
t.prototype.AddObstacle = function() {
var e = [], t = this.box.node.getPosition();
if (this.relativeNode) {
var n = this.box.node.convertToWorldSpaceAR(cc.Vec2.ZERO);
t = this.relativeNode.parent.convertToNodeSpaceAR(n);
}
var i = this.box.size, a = new cc.Vec2(t.x - .5 * i.width, -t.y + .5 * i.height), l = new cc.Vec2(t.x + .5 * i.width, -t.y + .5 * i.height), s = new cc.Vec2(t.x + .5 * i.width, -t.y - .5 * i.height), c = new cc.Vec2(t.x - .5 * i.width, -t.y - .5 * i.height);
e.push(a);
e.push(c);
e.push(s);
e.push(l);
for (var u = [], p = 0; p < e.length; p++) {
var d = e[p];
u.push(new r.Vector2(d.x, d.y));
}
this.agentId = o.RVOScene.Instance.impl.addObstacle(u, this.mask);
};
__decorate([ l(cc.Node) ], t.prototype, "relativeNode", void 0);
__decorate([ l(cc.BoxCollider) ], t.prototype, "box", void 0);
__decorate([ l ], t.prototype, "mask", void 0);
return __decorate([ a, s(cc.BoxCollider) ], t);
}(cc.Component);
n.RVOObstacle = c;
cc._RF.pop();
}, {
"./RVOScene": "RVOScene",
"./Vector2": "Vector2"
} ],
RVOScene: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "050a3kWn45GB7xLzdXSNU9Z", "RVOScene");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.RVOScene = void 0;
var o = e("../../Framework/Core/Resource/MyComponent"), r = e("./Simulator"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.timeStep = .06;
t.passedTime = 0;
t.bodies = [];
t.impl_ = new r.Simulator();
return t;
}
n = t;
Object.defineProperty(t.prototype, "impl", {
get: function() {
return this.impl_;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t, "Instance", {
get: function() {
return n.instance_;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
n.instance_ = this;
this.impl.Initialize();
};
t.prototype.onDestroy = function() {
this.impl.Clear();
this.impl_ = null;
};
t.prototype.start = function() {
this.impl.processObstacles();
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
this.impl.setTimeStep(this.timeStep);
var t = cc.director.getScheduler().getTimeScale(), n = this.timeStep / t;
if (this.passedTime >= n) {
this.passedTime = 0;
for (var o = this.bodies.length - 1; o >= 0; o--) (r = this.bodies[o]).enabledInHierarchy && r.OnRVOUpdate(this.timeStep);
this.impl.doStep();
for (o = this.bodies.length - 1; o >= 0; o--) {
var r;
(r = this.bodies[o]).enabledInHierarchy && r.OnRVOLateUpdate(this.timeStep);
}
}
};
var n;
t.instance_ = null;
__decorate([ l() ], t.prototype, "timeStep", void 0);
return n = __decorate([ a ], t);
}(o.MyComponent);
n.RVOScene = s;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0,
"./Simulator": "Simulator"
} ],
RenderSorter: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b1d7a3d3MVNa76FKevodkXo", "RenderSorter");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, r = o.ccclass, i = o.property, a = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.offset = 0;
t.y = 0;
t.isDirty = !0;
t.lastY = 0;
return t;
}
t.prototype.onLoad = function() {
var e = this;
this.node.on(cc.Node.EventType.POSITION_CHANGED, function() {
e.isDirty = !0;
});
};
t.prototype.lateUpdate = function() {
if (this.isDirty && 0 != this.node.opacity) {
this.isDirty = !1;
this.sort();
}
};
t.prototype.sort = function() {
this.y = Math.clamp(-Math.floor(this.node.y + this.offset), cc.macro.MIN_ZINDEX, cc.macro.MAX_ZINDEX);
if (Math.abs(this.y - this.lastY) > 5) {
this.lastY = this.y;
this.node.zIndex != this.y && (this.node.zIndex = this.y);
}
};
__decorate([ i() ], t.prototype, "offset", void 0);
return __decorate([ r ], t);
}(cc.Component);
n.default = a;
cc._RF.pop();
}, {} ],
RewardsUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "02589O2Vz9FoaqTtUaQXevX", "RewardsUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/SoundsManager"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Framework/Localize/LocalizeManager"), c = e("../Battle/LevelContext"), u = e("../Battle/Util"), p = e("../Config/ArchivementConfig"), d = e("../Config/GameModel"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.itemsNode = null;
t.titleLabel = null;
t.callback = null;
t.scene = "";
t.rewards = [];
return t;
}
n = t;
t.ShowView = function(e, t, o) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
n.GetReward(e, t);
return [ 2, l.default.ShowView(n, e, t, o) ];
});
});
};
t.prototype.OnSetParams = function(e, t, n) {
this.rewards = t;
this.callback = n;
this.scene = e;
this.itemsNode.enabledAllChild(!1);
for (var r = 0; r < this.rewards.length; r++) {
var i = this.itemsNode.getOrCreateAndActiveChild(r), a = this.rewards[r], l = a.name, d = a.iconPath;
i.findChild("bg2").active = a.unlockType == p.UnlockType.Weapon || a.unlockType == p.UnlockType.Equipment;
i.findChild("Label").getComponent(cc.Label).string = l;
u.default.SetImage(a.pieceIconPath, i.findChild("piece").getComponent(cc.Sprite));
i.findChild("Number").getComponent(cc.Label).string = a.unlockType == p.UnlockType.Weapon ? s.LFTXT("{0}阶", a.level) + (a.lv ? s.LFTXT("{0}级", a.lv) : "") : "x" + a.count;
var f = i.findChild("Icon");
u.default.SetImage(d, f.getComponent(cc.Sprite));
f.scale = a.unlockType == p.UnlockType.EquipmentPiece ? 1.2 : 2;
if (!c.LevelContext.Instance) {
i.setScale(0, 0, 0);
cc.tween(i).delay(.15 * r).to(.15, {
scale: 1.1
}, {
easing: "sineInOut"
}).to(.03, {
scale: 1
}).start();
}
}
o.default.instance.PlayEffect("box2");
};
t.GetReward = function(e, t) {
for (var n = 0; n < t.length; n++) t[n].GetReward(e);
d.default.Save();
};
t.prototype.Close = function() {
this.HideView();
this.callback && this.callback();
};
var n;
__decorate([ m(cc.Node) ], t.prototype, "itemsNode", void 0);
__decorate([ m(cc.Label) ], t.prototype, "titleLabel", void 0);
return n = __decorate([ h, r.RegisterView("RewardsUI", i.ViewLayer.TopLayer) ], t);
}(a.default);
n.default = w;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/GameModel": "GameModel"
} ],
RongGuangHuanFa: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e3c5axHaqpFILqYGHN8JqwA", "RongGuangHuanFa");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/BattleItemConfig"), r = e("../../../Config/SkillConfig"), i = e("../../../Messaging/MessageBroadcastReceiver"), a = e("../BaseSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.accel = 15;
t.intervel = 1;
t.taskId = null;
return t;
}
t.prototype.AddAcceledValue = function(e, t) {
var n = this.context.owner;
n.AddFeatureEx(r.SkillFeature.PlayerSpeedUpPercent, e);
t && n.ResetFeatures();
};
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
i.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
i.RemoveBroadcastReceiver(this);
};
t.prototype.OnGetBattleItem = function(e, t) {
var n = this;
if (o.BattleItemConfig.IsExp(t)) {
if (this.taskId) {
this.CancelRun(this.taskId);
this.AddAcceledValue(-this.accel, !1);
}
this.AddAcceledValue(this.accel, !0);
this.taskId = this.DelayRun(this.intervel, function() {
n.AddAcceledValue(-n.accel, !0);
n.taskId = null;
});
}
};
__decorate([ c() ], t.prototype, "accel", void 0);
__decorate([ c() ], t.prototype, "intervel", void 0);
__decorate([ i.BroadcastHandler ], t.prototype, "OnGetBattleItem", null);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Config/BattleItemConfig": "BattleItemConfig",
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill"
} ],
Rotate_Skill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "961c6k85NxGUa1DXKi55u5x", "Rotate_Skill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Config/SkillConfig"), r = e("../Skill/EffectHandler"), i = e("./Rotate"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.handler = null;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.handler = this.getComponent(r.default);
};
t.prototype.OnUpdate = function(e) {
var t, n = null === (t = this.handler.skill) || void 0 === t ? void 0 : t.GetFeature(o.SkillFeature.BulletSpeedUpPercent);
this.node.angle += e * this.speed * (1 + .01 * n);
};
return __decorate([ l ], t);
}(i.default));
n.default = s;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"../Skill/EffectHandler": "EffectHandler",
"./Rotate": "Rotate"
} ],
Rotate: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "30d87hIacVF/IcLv6hWGitf", "Rotate");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.duration = 1;
t.dir = 1;
t.speed = 1;
return t;
}
t.prototype.onLoad = function() {
this.speed = 360 / this.duration * this.dir;
};
t.prototype.OnUpdate = function(e) {
this.node.angle += e * this.speed;
};
__decorate([ a() ], t.prototype, "duration", void 0);
__decorate([ a() ], t.prototype, "dir", void 0);
return __decorate([ i ], t);
}(o.MyComponent);
n.default = l;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
RushSectionHandlerBullet: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "aefedKYd95GSLfnmM5g+ZSC", "RushSectionHandlerBullet");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../LevelContext"), i = e("./RushSectionHandler"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletPrefab = null;
t.bulletAngle = 1;
t.bulletNum = 1;
t.fireInterval = 0;
t.angleOffsetRange = cc.v2(0, 0);
t.passedTime = 0;
t.direction = cc.v2();
return t;
}
t.prototype.OnSectionStart = function() {
this.direction = this.context.GetFireInfo().dir;
this.passedTime = 0;
};
t.prototype.OnSectionEnd = function() {};
t.prototype.OnSectionUpdate = function(e) {
this.passedTime += e;
if (this.passedTime >= this.fireInterval) {
this.passedTime -= this.fireInterval;
this.OnFire();
}
};
t.prototype.OnFire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, i, a, l;
return __generator(this, function() {
e = o.default.A2R(this.bulletAngle);
t = e * (this.bulletNum - 1);
n = .5 * -t + o.default.A2R(o.default.Random(this.angleOffsetRange.x, this.angleOffsetRange.y));
i = this.context.owner.aimPos;
for (a = 0; a < this.bulletNum; a++) {
l = n + a * e;
this.context.CreateBullet(this.bulletPrefab, r.LevelContext.Instance.effectLayer, cc.v2(this.direction).rotate(l), i, !1, !1);
}
return [ 2 ];
});
});
};
__decorate([ s(cc.Prefab) ], t.prototype, "bulletPrefab", void 0);
__decorate([ s() ], t.prototype, "bulletAngle", void 0);
__decorate([ s() ], t.prototype, "bulletNum", void 0);
__decorate([ s() ], t.prototype, "fireInterval", void 0);
__decorate([ s() ], t.prototype, "angleOffsetRange", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../LevelContext": "LevelContext",
"./RushSectionHandler": "RushSectionHandler"
} ],
RushSectionHandlerEffect: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "cd464kNG7RKMrKtipNdSOuP", "RushSectionHandlerEffect");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("./RushSectionHandler"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.fireEffect = null;
t.groundLayer = !1;
t.playerLayer = !1;
t.delayDestoryTime = 3;
t.fireInterval = 0;
t.passedTime = 0;
return t;
}
t.prototype.OnSectionStart = function() {};
t.prototype.OnSectionEnd = function() {};
t.prototype.OnSectionUpdate = function(e) {
this.passedTime += e;
if (this.passedTime >= this.fireInterval) {
this.passedTime -= this.fireInterval;
this.OnFire();
}
};
t.prototype.GetEffectLayer = function() {
return this.groundLayer ? o.LevelContext.Instance.groundLayer : this.playerLayer ? o.LevelContext.Instance.playerLayer : o.LevelContext.Instance.effectLayer;
};
t.prototype.OnFire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t = this;
return __generator(this, function() {
e = this.context.CreateEffectHandler(this.fireEffect, null, this.context.owner.body.position, 0, o.LevelContext.Instance.playerLayer, !0, null);
cc.tween(e).delay(this.delayDestoryTime).call(function() {
cc.isValid(e) && (t.context && t.context.cache ? t.context.cache.DestroyNode(e) : e.destroy());
}).start();
return [ 2 ];
});
});
};
__decorate([ l(cc.Prefab) ], t.prototype, "fireEffect", void 0);
__decorate([ l() ], t.prototype, "groundLayer", void 0);
__decorate([ l() ], t.prototype, "playerLayer", void 0);
__decorate([ l() ], t.prototype, "delayDestoryTime", void 0);
__decorate([ l() ], t.prototype, "fireInterval", void 0);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"./RushSectionHandler": "RushSectionHandler"
} ],
RushSectionHandlerSummon: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "1b1faJ2BvhPRab9u8GK1UvC", "RushSectionHandlerSummon");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../../Config/MonsterConfig"), i = e("../../Level/LevelMonsterSpawn"), a = e("../../LevelContext"), l = e("./RushSectionHandler"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.monsterId = 0;
t.offsetRadiusRange = cc.v2();
t.bornEffect = null;
t.bornSound = null;
t.bornCount = 0;
t.enemys = [];
t.passedTime = 0;
return t;
}
t.prototype.OnSectionStart = function() {};
t.prototype.OnSectionEnd = function() {
for (var e = 0; e < this.bornCount; e++) this.DoBorn();
};
t.prototype.DoBorn = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, l, s;
return __generator(this, function(c) {
switch (c.label) {
case 0:
e = r.MonsterConfig.GetMonster(this.monsterId);
t = 0;
c.label = 1;

case 1:
if (!(t < this.context.fireCount)) return [ 3, 4 ];
n = o.default.Random(this.offsetRadiusRange.x, this.offsetRadiusRange.y);
l = this.context.owner.body.position.add(cc.v2(o.default.Random(-1, 1), o.default.Random(-1, 1)).mul(n));
this.bornEffect && this.context.PlayEffectHandler(this.bornEffect, this.bornSound, l, 0, a.LevelContext.Instance.effectLayer, null);
return [ 4, i.LevelMonsterSpawn.CreateMonsterEx(e, l.x, l.y, 0, !0, !0, !0) ];

case 2:
s = c.sent();
this.enemys.push(s);
c.label = 3;

case 3:
t++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
__decorate([ u({
tooltip: "召唤物id"
}) ], t.prototype, "monsterId", void 0);
__decorate([ u() ], t.prototype, "offsetRadiusRange", void 0);
__decorate([ u(cc.Prefab) ], t.prototype, "bornEffect", void 0);
__decorate([ u({
type: cc.AudioClip
}) ], t.prototype, "bornSound", void 0);
__decorate([ u() ], t.prototype, "bornCount", void 0);
return __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../../Config/MonsterConfig": "MonsterConfig",
"../../Level/LevelMonsterSpawn": "LevelMonsterSpawn",
"../../LevelContext": "LevelContext",
"./RushSectionHandler": "RushSectionHandler"
} ],
RushSectionHandler: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8d0675VCa9JxLyjX+K2tHFh", "RushSectionHandler");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.skillRush = null;
t.context = null;
return t;
}
t.prototype.OnInit = function(e) {
this.skillRush = e;
this.context = e.context;
};
t.prototype.OnSectionStart = function() {};
t.prototype.OnSectionEnd = function() {};
t.prototype.OnSectionUpdate = function() {};
return __decorate([ i ], t);
}(o.MyComponent));
n.default = a;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/MyComponent": void 0
} ],
Rush: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "244f6eqyAZJnZBb1KAmGa45", "Rush");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/SoundsManager"), r = e("../../../RVO2/IBody"), i = e("../../LevelContext"), a = e("../../Util"), l = e("../../View/TailRenderer"), s = e("../BaseSkill"), c = e("./RushSectionHandler"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.prepareTime = 1;
t.force = 1e3;
t.rushTime = .3;
t.accel = -900;
t.prepareAnimName = "";
t.rushAnimName = "";
t.sectionInterval = .5;
t.prepareEffect = null;
t.sectionEffect = null;
t.canDamageOnRush = !1;
t.sectionHandler = null;
t.isRushing = !1;
t.warningEft = null;
return t;
}
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(n) {
switch (n.label) {
case 0:
return [ 4, e.prototype.OnInit.call(this, t) ];

case 1:
n.sent();
this.sectionHandler && this.sectionHandler.OnInit(this);
return [ 2 ];
}
});
});
};
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
this.context.owner.walkableCnt--;
this.canDamageOnRush || (this.context.owner.canDamage = !1);
return [ 4, this.Prepare(this.prepareTime, e) ];

case 1:
n.sent();
if (!cc.isValid(this.context.owner)) return [ 2 ];
this.context.owner.walkableCnt++;
t = 0;
n.label = 2;

case 2:
return t < this.context.fireCount ? [ 4, this.RushSection(t, e) ] : [ 3, 5 ];

case 3:
n.sent();
n.label = 4;

case 4:
t++;
return [ 3, 2 ];

case 5:
if (!cc.isValid(this.context.owner)) return [ 2 ];
this.canDamageOnRush || (this.context.owner.canDamage = !0);
this.context.owner.PlayAnims("Move");
return [ 2 ];
}
});
});
};
t.prototype.Prepare = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(n) {
switch (n.label) {
case 0:
this.context.owner.PlayAnims(this.prepareAnimName);
this.ShowWarning(e, this.context.owner.firePos, t);
return [ 4, this.waitForTime(e) ];

case 1:
n.sent();
return [ 2 ];
}
});
});
};
t.prototype.RushSection = function(e, t) {
var n;
return __awaiter(this, void 0, void 0, function() {
var a, s, c;
return __generator(this, function(u) {
switch (u.label) {
case 0:
if (!cc.isValid(this.context.owner)) return [ 2 ];
this.isRushing = !0;
this.context.owner.PlayAnims(this.rushAnimName);
(a = null !== (n = this.context.owner.getComponent(l.default)) && void 0 !== n ? n : this.context.owner.getComponentInChildren(l.default)).enabled = !0;
s = new r.AccelForce(t.x * this.force, t.y * this.force, this.rushTime, this.accel);
this.context.owner.body.AddForce1(s);
o.default.instance.PlayEffectSync(this.fireSound);
this.sectionHandler && this.sectionHandler.OnSectionStart();
return [ 4, this.waitForTime(this.rushTime) ];

case 1:
u.sent();
if (!cc.isValid(this.context.owner)) return [ 2 ];
a.enabled = !1;
this.context.owner.body.velocity = cc.Vec2.ZERO;
this.sectionHandler && this.sectionHandler.OnSectionEnd();
this.sectionEffect && (c = this.context).PlayEffectHandler(this.sectionEffect, null, c.owner.firePos, 0, i.LevelContext.Instance.effectLayer, null).setScale(c.owner.node.scale * Math.sign(c.owner.view.scaleX) * c.owner.rightForward, c.owner.node.scale);
this.isRushing = !1;
if (!(e < this.context.fireCount - 1)) return [ 3, 3 ];
this.FaceTarget(t);
return [ 4, this.Prepare(this.sectionInterval, t) ];

case 2:
u.sent();
u.label = 3;

case 3:
return [ 2 ];
}
});
});
};
t.prototype.ShowWarning = function(e, t, n) {
var o = this;
if (this.prepareEffect) {
this.warningEft || (this.warningEft = this.context.cache.CreateNodeSync(this.prepareEffect, i.LevelContext.Instance.groundLayer));
this.warningEft.active = !0;
this.warningEft.setPosition(t);
this.warningEft.angle = a.default.forward2Angle(n);
cc.tween(this.warningEft).delay(e).call(function() {
cc.isValid(o.warningEft) && (o.warningEft.active = !1);
}).start();
}
};
t.prototype.FaceTarget = function(e) {
e.set(this.context.GetFireInfo().dir);
this.context.owner.fireForward = e;
this.context.owner.UpdateFace();
};
t.prototype.OnUpdate = function(e) {
this.isRushing && this.sectionHandler && this.sectionHandler.OnSectionUpdate(e);
};
t.prototype.OnBegin = function() {
var e = this.context.owner;
e.controlableCnt--;
e.ai.enabled = !1;
e.disableFreezeCnt++;
};
t.prototype.OnEnd = function() {
var e = this.context.owner;
if (cc.isValid(e)) {
e.ai.enabled = !0;
e.controlableCnt++;
e.disableFreezeCnt--;
}
};
__decorate([ d() ], t.prototype, "prepareTime", void 0);
__decorate([ d() ], t.prototype, "force", void 0);
__decorate([ d() ], t.prototype, "rushTime", void 0);
__decorate([ d() ], t.prototype, "accel", void 0);
__decorate([ d() ], t.prototype, "prepareAnimName", void 0);
__decorate([ d() ], t.prototype, "rushAnimName", void 0);
__decorate([ d() ], t.prototype, "sectionInterval", void 0);
__decorate([ d(cc.Prefab) ], t.prototype, "prepareEffect", void 0);
__decorate([ d(cc.Prefab) ], t.prototype, "sectionEffect", void 0);
__decorate([ d() ], t.prototype, "canDamageOnRush", void 0);
__decorate([ d(c.default) ], t.prototype, "sectionHandler", void 0);
return __decorate([ p ], t);
}(s.default);
n.default = f;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/SoundsManager": void 0,
"../../../RVO2/IBody": "IBody",
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../../View/TailRenderer": "TailRenderer",
"../BaseSkill": "BaseSkill",
"./RushSectionHandler": "RushSectionHandler"
} ],
SafeBool: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d2a587REwJHJY7XeUt3mIak", "SafeBool");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../../Service/kl"), i = function(e) {
__extends(t, e);
function t(t) {
var n = e.call(this) || this;
n.currentCryptoKey = 0;
n.hiddenValue = 0;
n.boolValue = t;
return n;
}
n = t;
Object.defineProperty(t.prototype, "boolValue", {
get: function() {
return this.InternalDecrypt();
},
set: function(e) {
this.currentCryptoKey = r.default.RandomInt(-128, 128);
this.hiddenValue = n.Encrypt(e, this.currentCryptoKey);
},
enumerable: !1,
configurable: !0
});
t.Encrypt = function(e, t) {
return (e ? 213 : 181) ^ t;
};
t.Decrypt = function(e, t) {
return 181 != (e ^ t);
};
t.prototype.InternalDecrypt = function() {
return n.Decrypt(this.hiddenValue, this.currentCryptoKey);
};
var n;
__decorate([ o.SerializeField("a") ], t.prototype, "currentCryptoKey", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "hiddenValue", void 0);
return n = __decorate([ o.SerializeClass() ], t);
}(o.default);
n.default = i;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../../Service/kl": void 0
} ],
SafeInt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3221ftVbIxLoKHbLpS0F94u", "SafeInt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../../Service/kl"), i = function(e) {
__extends(t, e);
function t(t) {
var n = e.call(this) || this;
n.currentCryptoKey = 0;
n.hiddenValue = 0;
n.intValue = t;
return n;
}
n = t;
Object.defineProperty(t.prototype, "intValue", {
get: function() {
return this.InternalDecrypt();
},
set: function(e) {
if (e > n.MaxValue || e < -n.MaxValue) console.error("SafeInt超出范围", e, n.MaxValue); else {
e = Math.floor(e);
this.currentCryptoKey = r.default.RandomInt(-n.MaxValue, n.MaxValue);
this.hiddenValue = n.Encrypt(e, this.currentCryptoKey);
}
},
enumerable: !1,
configurable: !0
});
t.Encrypt = function(e, t) {
return e ^ t;
};
t.Decrypt = function(e, t) {
return e ^ t;
};
t.prototype.InternalDecrypt = function() {
return n.Decrypt(this.hiddenValue, this.currentCryptoKey);
};
var n;
t.MaxValue = 1073741823;
__decorate([ o.SerializeField("a") ], t.prototype, "currentCryptoKey", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "hiddenValue", void 0);
return n = __decorate([ o.SerializeClass() ], t);
}(o.default);
n.default = i;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../../Service/kl": void 0
} ],
SecondWind: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "90836aoYWtAlKpJiStX2Mcn", "SecondWind");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("./BaseTalentSkill"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.minHp = 1;
t.addHp = 3;
t.isTrick = !1;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.context.owner.AddListener(this);
};
t.prototype.onDisable = function() {
this.context.owner.RemoveListener(this);
e.prototype.onDisable.call(this);
};
t.prototype.OnStartTalent = function() {
this.isTrick = !1;
};
t.prototype.OnDamage = function(e, t, n, r, i) {
void 0 === t && (t = 0);
void 0 === n && (n = 100);
void 0 === r && (r = null);
void 0 === i && (i = cc.Vec2.ZERO);
if (e == o.LevelContext.Instance.mainPlayer && !this.isTrick && e.health <= this.minHp) {
e.AddHealth(this.addHp + this.context.talentData.lv - 1);
this.isTrick = !0;
}
};
t.prototype.OnSave = function() {
return {
t: this.isTrick
};
};
t.prototype.OnLoad = function(e) {
this.isTrick = e.t;
};
__decorate([ l() ], t.prototype, "minHp", void 0);
__decorate([ l() ], t.prototype, "addHp", void 0);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
SetWidth: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4d666hSiVlG/4jvHyp2hxp5", "SetWidth");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, r = o.ccclass, i = (o.property, o.executeInEditMode, function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.oldWidth = 0;
return t;
}
t.prototype.onLoad = function() {
this.oldWidth = this.node.width;
};
t.prototype.onEnable = function() {
var e = .5 * this.node.parent.width;
this.oldWidth = e;
this.node.width = e;
};
t.prototype.update = function() {
var e = .5 * this.node.parent.width;
if (this.oldWidth != e) {
this.oldWidth = e;
this.node.width = e;
}
};
return __decorate([ r ], t);
}(cc.Component));
n.default = i;
cc._RF.pop();
}, {} ],
SettingUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "1db26BoMGRGK6Nm2Wq23jFM", "SettingUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/SoundsManager"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Localize/LocalizeManager"), s = e("../../Framework/UI/PromptUI"), c = e("../../Service/AccountManager"), u = e("../../Service/PlatformService"), p = e("../Config/GameModel"), d = cc._decorator, f = d.ccclass, h = d.property, m = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.musicToggle = null;
t.effectToggle = null;
t.virbrateToggle = null;
t.fxToggle = null;
t.lightingToggle = null;
t.autoAtkToggle = null;
t.idLabel = null;
return t;
}
t.prototype.OnSetParams = function() {
this.musicToggle.isChecked = p.default.Instance.enableMusic;
this.effectToggle.isChecked = p.default.Instance.enableAudioEffect;
this.virbrateToggle.isChecked = p.default.Instance.enableVibrate;
this.fxToggle.isChecked = !p.default.Instance.enableFxEffect;
this.lightingToggle.isChecked = p.default.Instance.enableLighting;
this.autoAtkToggle.isChecked = p.default.Instance.enableAutoAtk;
var e = c.default.userInfo.__seid;
this.idLabel.string = l.TXT("用户ID:") + e;
};
t.prototype.OnMusicToggle = function(e) {
p.default.Instance.enableMusic = e.isChecked;
o.default.instance.enableMusic = p.default.Instance.enableMusic;
};
t.prototype.OnEffectToggle = function(e) {
p.default.Instance.enableAudioEffect = e.isChecked;
o.default.instance.enableEffects = p.default.Instance.enableAudioEffect;
};
t.prototype.OnVibrateToggle = function(e) {
p.default.Instance.enableVibrate = e.isChecked;
};
t.prototype.OnFXToggle = function(e) {
p.default.Instance.enableFxEffect = !e.isChecked;
};
t.prototype.OnLightingToggle = function(e) {
p.default.Instance.enableLighting = e.isChecked;
};
t.prototype.OnAutoAtkToggle = function(e) {
p.default.Instance.enableAutoAtk = e.isChecked;
};
t.prototype.OnCopyIdClick = function() {
u.default.clipboard && u.default.clipboard.set(c.default.userInfo.__seid, null, null);
s.default.Show("ID已复制");
};
__decorate([ h(cc.Toggle) ], t.prototype, "musicToggle", void 0);
__decorate([ h(cc.Toggle) ], t.prototype, "effectToggle", void 0);
__decorate([ h(cc.Toggle) ], t.prototype, "virbrateToggle", void 0);
__decorate([ h(cc.Toggle) ], t.prototype, "fxToggle", void 0);
__decorate([ h(cc.Toggle) ], t.prototype, "lightingToggle", void 0);
__decorate([ h(cc.Toggle) ], t.prototype, "autoAtkToggle", void 0);
__decorate([ h(cc.Label) ], t.prototype, "idLabel", void 0);
return __decorate([ f, r.RegisterView("SettingUI", i.ViewLayer.NormalLayer) ], t);
}(a.default);
n.default = m;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/AccountManager": void 0,
"../../Service/PlatformService": void 0,
"../Config/GameModel": "GameModel"
} ],
SevenDayRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a6157GyNMdDL4EIRim2uBTZ", "SevenDayRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/GameModel"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.timeCounter = 0;
return t;
}
t.prototype.update = function(e) {
this.timeCounter -= e;
if (this.timeCounter <= 0) {
this.timeCounter = 1;
this.node.opacity = o.default.Instance.sevenDayReward.CanGetReward() ? 255 : 0;
}
};
return __decorate([ i ], t);
}(cc.Component));
n.default = a;
cc._RF.pop();
}, {
"../Config/GameModel": "GameModel"
} ],
SevenDayRewardComponent: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "cb4de9mJm9MeLGOGAsR00x1", "SevenDayRewardComponent");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Localize/LocalizeManager"), r = e("../../Framework/UI/PromptUI"), i = e("../Battle/Util"), a = e("../Config/GameModel"), l = e("../Config/GiftConfig"), s = e("./RewardsUI"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.onClaimed = null;
return t;
}
t.prototype.onLoad = function() {
for (var e = 0; e < 6; e++) i.default.GetOrCreateChild(e + 1, this.content);
};
t.prototype.onEnable = function() {
this.UpdateUI();
};
t.prototype.UpdateUI = function() {
for (var e = l.SevenDayConfig.GetSevenDayProtos(a.default.Instance.sevenDayReward.dayIndex), t = 0; t < e.length; t++) {
var n = e[t], r = this.content.children[t];
r.findChild("Sign").active = a.default.Instance.sevenDayReward.dayIndex % 7 > t;
i.default.SetImage(n.iconPath, r.findChild("Reward/Icon").getComponent(cc.Sprite));
i.default.SetImage(n.pieceIconPath, r.findChild("piece").getComponent(cc.Sprite));
r.findChild("Reward/Cnt").getComponent(cc.Label).string = "" + n.count;
r.findChild("IndexLabel").getComponent(cc.Label).string = o.LFTXT("第{0}天", t + 1);
}
};
t.prototype.OnRewardClick = function() {
if (a.default.Instance.sevenDayReward.CanGetReward()) {
var e = l.SevenDayConfig.GetProto(a.default.Instance.sevenDayReward.dayIndex);
s.default.ShowView("七日奖励", [ e ]);
a.default.Instance.sevenDayReward.OnGetReward();
this.UpdateUI();
this.onClaimed && this.onClaimed();
} else r.default.Show("请明天登录领取");
};
__decorate([ p(cc.Node) ], t.prototype, "content", void 0);
return __decorate([ u ], t);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../../Framework/Localize/LocalizeManager": void 0,
"../../Framework/UI/PromptUI": void 0,
"../Battle/Util": "Util",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./RewardsUI": "RewardsUI"
} ],
SevenDayRewardData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3052fP0SIVB2aghWUUy2WqZ", "SevenDayRewardData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SevenDayRewardData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../../Service/PlatformService"), i = e("./GiftConfig"), a = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.nextRewardTime = 0;
t.dayIndex = 0;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = i.SevenDayConfig.GetProto(this.dayIndex));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
t.prototype.CanGetReward = function() {
return r.default.serverTime / 1e3 > this.nextRewardTime;
};
t.prototype.OnGetReward = function() {
var e = new Date(r.default.serverTime);
e.setDate(e.getDate() + 1);
e.setHours(0, 0, 0, 0);
this.nextRewardTime = e.valueOf() / 1e3;
this.dayIndex++;
};
__decorate([ o.SerializeField("a") ], t.prototype, "nextRewardTime", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "dayIndex", void 0);
return t;
}(o.default);
n.SevenDayRewardData = a;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../../Service/PlatformService": void 0,
"./GiftConfig": "GiftConfig"
} ],
Shake: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2cc54vdEudPUbvuV2mxpoc4", "Shake");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Service/kl"), r = cc._decorator, i = r.ccclass, a = r.property, l = r.executionOrder, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.shakeAmount = 50;
t.shakeDuration = 1;
t.startOnEnable = !1;
t.startDuration = 0;
t.running = !1;
t.startPos = cc.Vec2.ZERO;
return t;
}
t.prototype.Start = function(e, t) {
e && (this.shakeAmount = e);
t && (this.shakeDuration = t);
this.running || (this.startPos = this.node.getPosition());
this.enabled = !0;
this.startDuration = 0;
this.running = !0;
};
t.prototype.Stop = function() {
if (this.running) {
this.running = !1;
this.enabled = !1;
}
this.node.setPosition(this.startPos.x, this.startPos.y);
};
t.prototype.onEnable = function() {
this.startOnEnable && this.Start();
};
t.prototype.lateUpdate = function(e) {
if (this.running) {
this.startDuration += e;
if (this.startDuration < this.shakeDuration) {
var t = this.startPos.x + o.default.Random(-this.shakeAmount, this.shakeAmount), n = this.startPos.y + o.default.Random(-this.shakeAmount, this.shakeAmount);
this.node.setPosition(t, n);
} else this.Stop();
}
};
__decorate([ a() ], t.prototype, "shakeAmount", void 0);
__decorate([ a() ], t.prototype, "shakeDuration", void 0);
__decorate([ a() ], t.prototype, "startOnEnable", void 0);
return __decorate([ i, l(-1) ], t);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {
"../../../Service/kl": void 0
} ],
ShanDianBaoFa: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "5b7673X+49L35KYTyY980Rl", "ShanDianBaoFa");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Messaging/MessageBroadcastReceiver"), r = e("../../../Enemy"), i = e("../../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 3;
t.cnt = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnPreHitEntity = function(e) {
if (e.context.isLightningSkill && e.context.owner.isMainPlayer) {
this.cnt++;
if (this.cnt % this.intervel == 0 && e.target instanceof r.Enemy) {
e.damage *= 2;
this.context.owner.AddBulletNumber(1);
}
}
};
__decorate([ s() ], t.prototype, "intervel", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnPreHitEntity", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../../Enemy": "Enemy",
"../../BaseSkill": "BaseSkill"
} ],
ShanDianChongCi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d0910IHZ4hNapdxrSNKemN3", "ShanDianChongCi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../../Util"), a = e("../EffectSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.delayDestoryTime = .5;
t.eft = null;
t.eftCollider = null;
t.startPos = cc.v2();
return t;
}
Object.defineProperty(t.prototype, "forward", {
get: function() {
return this.context.owner.dashForward;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnUpdate = function() {
if (this.eft) for (var e = 0; e < 2; e++) {
var t = this.eft.children[e];
t.height = .5 * Math.max(10, cc.Vec2.distance(this.startPos, this.context.owner.aimPos));
this.eftCollider.size.width = 2 * t.height;
this.eftCollider.offset.x = t.height;
}
};
t.prototype.OnDashBegin = function() {
this.startPos.set(this.context.owner.aimPos);
this.eft = i.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, this.startPos, i.default.forward2Angle(this.forward), r.LevelContext.Instance.effectLayer);
this.context.InitEffectHandler(this.eft, null, !1);
this.eftCollider = this.eft.getComponentInChildren(cc.BoxCollider);
this.eft.width = 2;
};
t.prototype.OnDashEnd = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
this.OnUpdate(0);
e = this.context.cache;
t = this.eft;
this.eft = null;
this.eftCollider = null;
return t ? [ 4, this.waitForTime(this.delayDestoryTime) ] : [ 3, 2 ];

case 1:
n.sent();
e.DestroyNode(t);
n.label = 2;

case 2:
return [ 2 ];
}
});
});
};
t.prototype.OnHitEntity = function(e) {
e.context == this.context && null != this.context.owner.GetSkillProto(this.context.skillData.id + 1) && this.context.TryBuff(e.target);
};
__decorate([ c() ], t.prototype, "delayDestoryTime", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnDashBegin", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnDashEnd", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../EffectSkill": "EffectSkill"
} ],
ShanDianHuoHua: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "88231w4w/9CibXGyG1cTetC", "ShanDianHuoHua");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Messaging/MessageBroadcastReceiver"), r = e("../../../Enemy"), i = e("../../BaseSkill"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnHitEntity = function(e) {
e.target && e.target instanceof r.Enemy && e.context.isLightningSkill && this.context.TryBuff(e.target);
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ l ], t);
}(i.default));
n.default = s;
cc._RF.pop();
}, {
"../../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../../Enemy": "Enemy",
"../../BaseSkill": "BaseSkill"
} ],
ShareAssistConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d9808TY6hlBYZXlILv0nBrd", "ShareAssistConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ShareAssistConfig = n.ShareAssistProto = void 0;
n.ShareAssistProto = function(e, t, n, o) {
this.id = e;
this.unlockType = t;
this.unlockId = n;
this.iconPath = o;
};
var o = function() {
function e() {}
e.GetProto = function(t) {
return e.items.find(function(e) {
return e.id == t;
});
};
e.items = [];
return e;
}();
n.ShareAssistConfig = o;
cc._RF.pop();
}, {} ],
ShareAssistData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4442eiBn65ECruxNwimVyCJ", "ShareAssistData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ShareAssistData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("./ShareAssistConfig"), i = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.unlock = !1;
t.gotReward = !1;
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = r.ShareAssistConfig.GetProto(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
t.prototype.Reset = function() {
this.unlock = !1;
this.gotReward = !1;
};
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "unlock", void 0);
__decorate([ o.SerializeField("c") ], t.prototype, "gotReward", void 0);
return t;
}(o.default);
n.ShareAssistData = i;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"./ShareAssistConfig": "ShareAssistConfig"
} ],
ShareAssistUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c8e95wrBb5O/bmBvdoKeQG1", "ShareAssistUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/UI/ScrollViewUtility"), l = e("../../Service/RemoteSetting"), s = e("../../Service/ShareAssist"), c = e("../Battle/Util"), u = e("../Config/GameModel"), p = e("../Config/GiftConfig"), d = e("./RewardsUI"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.assistItems = [];
return t;
}
n = t;
Object.defineProperty(t, "assistType", {
get: function() {
return "NoAdCard";
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {};
t.prototype.OnSetParams = function() {
this.CheckAssist();
var e = s.default.launchParam_;
if (e) {
e.userData && (e.userData.heroId = u.default.Instance.selectedHeroId);
s.default.SendFriendAssist(e.type, e.requesterId, e.userData);
}
};
t.prototype.CheckAssist = function() {
var e = this;
s.default.QueryFriendAssist(n.assistType, function(t) {
if (t && t.length > 0) {
e.assistItems = t;
for (var n = 0; n < t.length; n++) {
t[n];
var o = u.default.Instance.shareAssistList[n];
o && (o.unlock = !0);
}
e.content.InitCellDataList(u.default.Instance.shareAssistList, function(t, n, o) {
e.UpdateItem(t, n, o);
});
}
});
};
t.prototype.OnShareClick = function() {
s.default.ShareFriendAssist(n.assistType, 0, l.default.Get("ShareAssistText", "@我：帮忙砍一刀，地下城割草"), "", {
heroId: u.default.Instance.selectedHeroId
}, "邀请好友");
this.HideView();
};
t.prototype.UpdateItem = function(e, t, n) {
n.data = t;
n.color = t.unlock ? cc.Color.WHITE : cc.color(190, 190, 190);
n.findChild("IndexLabel").getComponent(cc.Label).string = (e + 1).toFixed(0);
n.findChild("Toggle").getComponent(cc.Toggle).isChecked = t.unlock;
n.findChild("ClaimButton").active = t.unlock && !t.gotReward;
n.findChild("Player/Icon").active = t.unlock;
c.default.SetImage(t.proto.iconPath, n.findChild("Reward/Icon").getComponent(cc.Sprite));
n.findChild("RewardCnt").getComponent(cc.Label).string = "x" + t.proto.unlockId;
var o = this.assistItems[e];
o && o.attribute.iconUrl && c.default.SetImageUrl(o.attribute.iconUrl, n.findChild("Player/Icon").getComponent(cc.Sprite));
};
t.prototype.OnRewardClick = function(e) {
var t = e.target.parent, n = t.data;
n.gotReward = !0;
this.UpdateItem(t.getSiblingIndex(), n, t);
d.default.ShowView("助力", [ new p.RewardProto(n.proto.unlockType, n.proto.unlockId, n.proto.unlockId, n.proto.iconPath) ]);
};
var n;
__decorate([ m(a.default) ], t.prototype, "content", void 0);
return n = __decorate([ h, o.RegisterView("ShareAssistUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = w;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/UI/ScrollViewUtility": void 0,
"../../Service/RemoteSetting": void 0,
"../../Service/ShareAssist": void 0,
"../Battle/Util": "Util",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./RewardsUI": "RewardsUI"
} ],
ShenShengChongJi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a2b2cPWJjFMYZD256H2SHeT", "ShenShengChongJi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("../TimerSkill"), i = e("./XinYangShouHu"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnTimeOut = function() {
var e = this.context.GetFireEnemy();
e && this.context.PlayEffectHandler(this.fireEffect, this.fireSound, e.body.position, 0, o.LevelContext.Instance.effectLayer, null);
};
t.prototype.OnUpdate = function(t) {
i.default.IsActive && e.prototype.OnUpdate.call(this, t);
};
return __decorate([ l ], t);
}(r.default));
n.default = s;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"../TimerSkill": "TimerSkill",
"./XinYangShouHu": "XinYangShouHu"
} ],
ShenShengShouHu: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "97069PYhkZBmpo3flQ/s+LG", "ShenShengShouHu");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IsActive = !0;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IsActive = !1;
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
n.NewCd = this.context.skillData.proto.cd;
return [ 2 ];
});
});
};
var n;
t.IsActive = !1;
t.NewCd = 0;
return n = __decorate([ i ], t);
}(o.default));
n.default = a;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
ShenZhiZhuFu: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9054dL+RbJJdr+8KgdvEhL+", "ShenZhiZhuFu");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("./XinYangShouHu_Effect"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
Object.defineProperty(t.prototype, "value", {
get: function() {
return this.context.skillData.proto.damage;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnEffectBegin = function(e) {
e.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, this.value);
e.AddFeatureEx(o.SkillFeature.BulletCDUpPercent, this.value);
e.ResetFeatures();
};
t.prototype.OnEffectEnd = function(e) {
e.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, -this.value);
e.AddFeatureEx(o.SkillFeature.BulletCDUpPercent, -this.value);
e.ResetFeatures();
};
return __decorate([ a ], t);
}(r.default));
n.default = l;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"./XinYangShouHu_Effect": "XinYangShouHu_Effect"
} ],
ShengDao: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bdbacXHQ5hATLwiYe/U7S8Y", "ShengDao");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../BaseSkill"), a = e("../BulletSkill"), l = e("./ShengXin"), s = e("./ShengXin2"), c = cc._decorator, u = c.ccclass, p = (c.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
n = t;
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
n.Instance = this;
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
n.Instance = null;
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return n.context.skillData.proto.damage + (l.default.IsActive ? l.default.GetExDamage() : 0) + (s.default.IsActive ? s.default.GetExDamage() : 0);
};
return [ 2 ];
});
});
};
t.prototype.OnPlayerFireBullet = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, o;
return __generator(this, function(i) {
switch (i.label) {
case 0:
if (0 != e.bulletNum) return [ 2 ];
if (!(e.weaponSkill instanceof a.default)) return [ 2 ];
t = r.LevelContext.Instance.GetEnemysInRadius(this.context.owner, this.context.skillData.proto.range);
n = 0;
i.label = 1;

case 1:
if (!(n < t.length)) return [ 3, 4 ];
o = t[n];
if (!cc.isValid(o)) return [ 3, 3 ];
this.context.PlayEffectHandler(this.fireEffect, this.fireSound, o.body.position, 0, r.LevelContext.Instance.effectLayer, null);
return [ 4, this.waitForTime(.03) ];

case 2:
i.sent();
i.label = 3;

case 3:
n++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
var n;
t.Instance = null;
__decorate([ o.BroadcastHandler ], t.prototype, "OnPlayerFireBullet", null);
return n = __decorate([ u ], t);
}(i.default));
n.default = p;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill",
"../BulletSkill": "BulletSkill",
"./ShengXin": "ShengXin",
"./ShengXin2": "ShengXin2"
} ],
ShengEn: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "415f6+ME3hEaIfKRszlP2OP", "ShengEn");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../BaseSkill"), a = e("./ShengDao"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.killCnt = 500;
t.addHp = 1;
t.maxAddHpCnt = 2;
t.killedCnt = 0;
t.addCnt = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnKillEnemy = function(e, t) {
if (t && t.skillData && a.default.Instance && t.skillData.id == a.default.Instance.context.skillData.id && !(this.addCnt >= this.maxAddHpCnt)) {
this.killedCnt++;
if (this.killedCnt >= this.killCnt) {
this.killedCnt = 0;
if (r.LevelContext.Instance.mainPlayer.maxHealth - r.LevelContext.Instance.mainPlayer.health > this.addHp) {
this.addCnt++;
r.LevelContext.Instance.mainPlayer.AddHealth(this.addHp);
}
}
}
};
__decorate([ c() ], t.prototype, "killCnt", void 0);
__decorate([ c() ], t.prototype, "addHp", void 0);
__decorate([ c() ], t.prototype, "maxAddHpCnt", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ s ], t);
}(i.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill",
"./ShengDao": "ShengDao"
} ],
ShengLing: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "92f17w5S9VNTJRvPFKPKKOx", "ShengLing");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../../LevelContext"), a = e("../BaseSkill"), l = e("./ShengDao"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.killCnt = 500;
t.maxAddMaxHp = 2;
t.addMaxHp = 1;
t.addedMaxHp = 0;
t.killedCnt = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnKillEnemy = function(e, t) {
if (t && t.skillData && l.default.Instance && t.skillData.id == l.default.Instance.context.skillData.id) {
this.killedCnt++;
if (this.killedCnt >= this.killCnt) {
this.killedCnt = 0;
if (this.addedMaxHp < this.maxAddMaxHp) {
this.addedMaxHp++;
i.LevelContext.Instance.mainPlayer.AddFeatureEx(o.SkillFeature.PlayerMaxHealthUp, this.addMaxHp);
i.LevelContext.Instance.mainPlayer.ResetFeatures();
}
}
}
};
__decorate([ u() ], t.prototype, "killCnt", void 0);
__decorate([ u() ], t.prototype, "maxAddMaxHp", void 0);
__decorate([ u() ], t.prototype, "addMaxHp", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ c ], t);
}(a.default);
n.default = p;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill",
"./ShengDao": "ShengDao"
} ],
ShengXin2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fd768DTsYJClrnF9SxJeNWn", "ShengXin2");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.damageEx = 5;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IsActive = !0;
n.ExDamage = this.damageEx;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IsActive = !1;
};
t.GetExDamage = function() {
return n.ExDamage;
};
var n;
t.IsActive = !1;
t.ExDamage = 0;
__decorate([ a() ], t.prototype, "damageEx", void 0);
return n = __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
ShengXin: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7e68fbjeCFPb57yAq/TYj/X", "ShengXin");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("../BaseSkill"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.damageEx = 6;
return t;
}
n = t;
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
n.IsActive = !0;
n.ExDamagePerHealth = this.damageEx;
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
n.IsActive = !1;
};
t.GetExDamage = function() {
return Math.floor(o.LevelContext.Instance.mainPlayer.health) * n.ExDamagePerHealth;
};
var n;
t.IsActive = !1;
t.ExDamagePerHealth = 0;
__decorate([ l() ], t.prototype, "damageEx", void 0);
return n = __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill"
} ],
ShiQiDaZhen: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ffad2e6X25F1ZmugpV3YcX/", "ShiQiDaZhen");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletIntervelUpPercent = 35;
t.lastBullet = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.lastBullet = r.LevelContext.Instance.mainPlayer.bulletNum;
return [ 2 ];
});
});
};
t.prototype.OnBulletReloadEnd = function() {
this.OnBulletNumChanged();
};
t.prototype.OnPlayerFireBullet = function() {
this.OnBulletNumChanged();
};
t.prototype.OnBulletNumChanged = function() {
var e = r.LevelContext.Instance.mainPlayer;
if (this.lastBullet < e.bulletNum) {
var t = {
bulletIntervelUpPercent: this.bulletIntervelUpPercent
};
e.AddBuff(this.buff, this.buffTime, this.context, t);
}
this.lastBullet = e.bulletNum;
};
__decorate([ s() ], t.prototype, "bulletIntervelUpPercent", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnBulletReloadEnd", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnPlayerFireBullet", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnBulletNumChanged", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill"
} ],
ShopConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fa893jhNm9GFol4dxGUSjop", "ShopConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ShopConfig = n.ShopItemName = n.ShopItemType = void 0;
var o, r = e("../../Service/PlatformService");
(function(e) {
e[e.Gold = 0] = "Gold";
e[e.ADCard = 1] = "ADCard";
e[e.Diamond = 2] = "Diamond";
e[e.AdPack = 3] = "AdPack";
e[e.GoldPack = 4] = "GoldPack";
e[e.WeaponPack = 5] = "WeaponPack";
e[e.GuoQingPack = 6] = "GuoQingPack";
e[e.EquipmentPack = 7] = "EquipmentPack";
e[e.NewbiePack = 8] = "NewbiePack";
e[e.FashionPack = 9] = "FashionPack";
e[e.HallweenPack = 10] = "HallweenPack";
})(o = n.ShopItemType || (n.ShopItemType = {}));
n.ShopItemName = {};
n.ShopItemName[o.Gold] = "金币";
n.ShopItemName[o.ADCard] = "免广告卡";
n.ShopItemName[o.Diamond] = "钻石";
n.ShopItemName[o.AdPack] = "超值尊享权益";
n.ShopItemName[o.GoldPack] = "金币特惠礼包";
n.ShopItemName[o.WeaponPack] = "武器提升礼包";
n.ShopItemName[o.GuoQingPack] = "国庆豪礼";
n.ShopItemName[o.EquipmentPack] = "时装礼包";
n.ShopItemName[o.NewbiePack] = "新手礼包";
n.ShopItemName[o.FashionPack] = "时装好礼";
n.ShopItemName[o.HallweenPack] = "万圣节豪礼";
r.default.defaultPayConfig = {
items: [ {
id: "1",
payId: "",
price: 3e3,
count: 1
}, {
id: "2",
payId: "",
price: 600,
count: 6e3
}, {
id: "3",
payId: "",
price: 1800,
count: 2e4
}, {
id: "4",
payId: "",
price: 5e3,
count: 6e4
}, {
id: "5",
payId: "",
price: 5e3,
count: 3e4
}, {
id: "6",
payId: "",
price: 2500,
count: 35e3
}, {
id: "7",
payId: "",
price: 3e3,
count: 1e4
}, {
id: "8",
payId: "",
price: 1200,
count: 120
}, {
id: "9",
payId: "",
price: 3e3,
count: 300
}, {
id: "10",
payId: "",
price: 6800,
count: 680
}, {
id: "11",
payId: "",
price: 12800,
count: 1280
}, {
id: "12",
payId: "",
price: 32800,
count: 3280
}, {
id: "13",
payId: "",
price: 64800,
count: 6480
}, {
id: "14",
payId: "",
price: 32800,
count: 3e4
}, {
id: "15",
payId: "",
price: 1200,
count: 5e3
}, {
id: "16",
payId: "",
price: 2500,
count: 15
}, {
id: "17",
payId: "",
price: 9800,
count: 125e3
}, {
id: "18",
payId: "",
price: 12800,
count: 168e3
}, {
id: "19",
payId: "",
price: 1200,
count: 5e3
}, {
id: "20",
payId: "",
price: 12800,
count: 3e4
}, {
id: "51",
payId: "",
price: 1200,
count: 3e3
}, {
id: "52",
payId: "",
price: 1800,
count: 6e3
}, {
id: "53",
payId: "",
price: 3e3,
count: 12e3
}, {
id: "54",
payId: "",
price: 4500,
count: 15e3
}, {
id: "55",
payId: "",
price: 6800,
count: 25e3
}, {
id: "56",
payId: "",
price: 8800,
count: 4e4
} ]
};
var i = function() {
function e() {}
e.GetPackData = function(t) {
return e.PackDatas.find(function(e) {
return e.type == t;
});
};
e.GetChapterData = function(t) {
return e.ChapterPackRewards.find(function(e) {
return e.id == t;
});
};
e.PackDatas = [ {
type: o.ADCard,
desc: "永久免广告",
num: 1,
moneyIndex: 1
}, {
type: o.AdPack,
desc: "超值尊享权益",
num: 3e4,
moneyIndex: 5
}, {
type: o.GoldPack,
desc: "金币特惠礼包",
num: 35e3,
moneyIndex: 6
}, {
type: o.WeaponPack,
desc: "武器提升礼包",
num: 1e4,
moneyIndex: 7
}, {
type: o.GuoQingPack,
desc: "国庆豪礼",
num: 3e4,
blueprint: {
id: 5,
num: 30
},
weapon: {
id: 11,
classLevel: 5,
lv: 25
},
moneyIndex: 14
}, {
type: o.EquipmentPack,
desc: "时装礼包",
num: 15,
moneyIndex: 16
}, {
type: o.NewbiePack,
desc: "新手礼包",
num: 5e3,
weapon: {
id: 3,
classLevel: 2,
lv: 10
},
diamond: 120,
moneyIndex: 19
}, {
type: o.FashionPack,
desc: "时装好礼",
num: 5e3,
equipBlueprint: 10,
equipmentId: 4,
moneyIndex: 15
}, {
type: o.HallweenPack,
desc: "万圣节豪礼",
num: 3e4,
diamond: 300,
equipmentId1: 11,
equipmentId2: 12,
moneyIndex: 20
} ];
e.GoldDatas = [ {
type: o.Gold,
num: 200,
moneyIndex: -1
}, {
type: o.Gold,
num: 6e3,
moneyIndex: 2
}, {
type: o.Gold,
num: 2e4,
moneyIndex: 3
}, {
type: o.Gold,
num: 6e4,
moneyIndex: 4
}, {
type: o.Gold,
num: 125e3,
moneyIndex: 17
}, {
type: o.Gold,
num: 168e3,
moneyIndex: 18
} ];
e.DiamondDatas = [ {
type: o.Diamond,
num: 120,
extra: 0,
moneyIndex: 8
}, {
type: o.Diamond,
num: 300,
extra: 30,
moneyIndex: 9
}, {
type: o.Diamond,
num: 680,
extra: 120,
moneyIndex: 10
}, {
type: o.Diamond,
num: 1280,
extra: 350,
moneyIndex: 11
}, {
type: o.Diamond,
num: 3280,
extra: 1020,
moneyIndex: 12
}, {
type: o.Diamond,
num: 6480,
extra: 2400,
moneyIndex: 13
} ];
e.ChapterPackRewards = [ {
id: "51",
gold: 3e3,
diamond: 100,
blueprintRang: 2,
blueprintNum: 20,
weaponRange: 2,
weaponNum: 10
}, {
id: "52",
gold: 6e3,
diamond: 150,
blueprintRang: 2,
blueprintNum: 25,
weaponRange: 2,
weaponNum: 12
}, {
id: "53",
gold: 12e3,
diamond: 300,
blueprintRang: 2,
blueprintNum: 40,
weaponRange: 2,
weaponNum: 15
}, {
id: "54",
gold: 15e3,
diamond: 450,
blueprintRang: 2,
blueprintNum: 60,
weaponRange: 2,
weaponNum: 20
}, {
id: "55",
gold: 25e3,
diamond: 680,
blueprintRang: 2,
blueprintNum: 80,
weaponRange: 2,
weaponNum: 25
}, {
id: "56",
gold: 4e4,
diamond: 880,
blueprintRang: 2,
blueprintNum: 100,
weaponRange: 2,
weaponNum: 35
} ];
return e;
}();
n.ShopConfig = i;
cc._RF.pop();
}, {
"../../Service/PlatformService": void 0
} ],
ShopRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "968865gmmtHDorzE+2jiRiA", "ShopRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Service/PlatformService"), r = e("../Config/GameModel"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.update = function() {
this.node.opacity = r.default.Instance.leftFreeShopCnt.value > 0 && o.default.payable ? 255 : 0;
};
return __decorate([ a ], t);
}(cc.Component));
n.default = l;
cc._RF.pop();
}, {
"../../Service/PlatformService": void 0,
"../Config/GameModel": "GameModel"
} ],
ShopUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "00de1aOBr9I5r3YI8U0cgwO", "ShopUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/UI/WaitingUI"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/Core/Views/ViewUIManager"), s = e("../../Framework/Localize/LocalizeManager"), c = e("../../Framework/UI/PromptUI"), u = e("../../Service/AccountManager"), p = e("../../Service/Analys"), d = e("../../Service/PlatformService"), f = e("../../Service/RemoteSetting"), h = e("../Battle/Util"), m = e("../Config/ArchivementConfig"), w = e("../Config/ChestConfig"), y = e("../Config/GameModel"), g = e("../Config/GiftConfig"), v = e("../Config/ShopConfig"), S = e("../Messaging/MessageBroadcastReceiver"), M = e("./ChestUI"), k = e("./HallUI"), C = e("./MyPayButton"), P = e("./NoAdUI"), _ = e("./RewardsUI"), O = e("./TTContactButtonUI"), b = e("./FirstChargePackUI"), F = e("../Config/EquipmentConfig"), I = e("../../Framework/UI/MessageBoxUI"), E = e("./FashionPackUI"), D = e("./HalloweenPackUI"), R = cc._decorator, L = R.ccclass, B = R.property, U = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.scrollViewNode = null;
t.content = null;
t.gapNode = null;
t.coinLabel = null;
t.diamondLabel = null;
t.adPack1 = null;
t.adPack2 = null;
t.goldPack = null;
t.weaponPack = null;
t.equipmentPack = null;
t.goldGroup = null;
t.goldContent = null;
t.diamondGroup = null;
t.diamondContent = null;
t.chestGroup = null;
t.chestContent = null;
t.tips = null;
t.ttContactBtn = null;
t.statementNode = null;
t.blueprintStatement = null;
t.pieceStatement = null;
t.equipmentStatement = null;
t.callback = null;
t.showAdPack = !1;
t.showWeaponChest = !1;
t.ignoreBuyDiamond = !1;
return t;
}
t.prototype.onLoad = function() {
this.UpdateAllUI();
};
t.prototype.OnSetParams = function(e) {
this.ttContactBtn.active = f.default.Get("EnableTTContact", !1) && d.default.payable;
this.showAdPack = f.default.Get("showAdPack", !0);
this.ignoreBuyDiamond = f.default.Get("ignoreBuyDiamond", !0);
this.showWeaponChest = y.default.Instance.GetLevel(3).unlock;
this.tips.active = d.default.payable;
this.callback = e;
this.UpdateAllUI();
this.CheckScrollView();
this.statementNode.active = !1;
};
t.prototype.Close = function() {
this.HideView();
this.callback && this.callback();
};
t.prototype.update = function() {
this.coinLabel.string = y.default.Instance.coin.intValue.toFixed(0);
this.diamondLabel.string = y.default.Instance.diamond.intValue.toFixed(0);
};
t.prototype.CheckScrollView = function() {
var e = this;
this.scheduleOnce(function() {
var t = e.scrollViewNode.width, n = e.content.width - e.gapNode.width;
e.gapNode.active = n < t;
n < t && (e.gapNode.width = .5 * (t - n));
}, .01);
};
t.prototype.UpdateAllUI = function() {
this.UpdateGoldContent();
this.UpdateDiamondContent();
this.UpdatePack();
this.UpdateChest();
};
t.prototype.UpdateGoldContent = function() {
this.goldGroup.active = d.default.payable;
if (this.goldGroup.active) for (var e = 0; e < v.ShopConfig.GoldDatas.length; e++) {
var t = v.ShopConfig.GoldDatas[e], n = h.default.GetOrCreateChild(e, this.goldContent), o = n.getChildByName("Button").getComponent(cc.Button);
o.node.data = t;
var r = o.getComponent(C.default);
r.payId = t.moneyIndex + "";
r.productName = v.ShopItemName[t.type];
r.enabled = t.moneyIndex > 0;
var i = o.node.getChildByName("num").getComponent(cc.Label), a = t.moneyIndex < 0, l = f.default.GetPayItem(t.moneyIndex + "");
n.active = a || l && l.price > 0;
if (n.active) {
var c = a ? "免费" : (s.default.Language == u.LanguageType.ZH ? "¥" : "$") + (.01 * l.price).toFixed(1);
0 == e && (n.getChildByName("RedPnt").active = a && y.default.Instance.leftFreeShopCnt.value > 0);
n.getChildByName("num").getComponent(cc.Label).string = "+" + (l ? l.count : t.num);
if (a) {
o.interactable = y.default.Instance.leftFreeShopCnt.value > 0;
i.string = o.interactable ? c : "已领取";
} else {
o.interactable = !0;
i.string = c;
}
}
}
};
t.prototype.UpdateDiamondContent = function() {
this.diamondGroup.active = d.default.payable;
if (this.diamondGroup.active) for (var e = 0; e < v.ShopConfig.DiamondDatas.length; e++) {
var t = v.ShopConfig.DiamondDatas[e], n = h.default.GetOrCreateChild(e, this.diamondContent), o = n.getChildByName("Button").getComponent(cc.Button);
o.node.data = t;
var r = o.getComponent(C.default);
r.payId = t.moneyIndex + "";
r.productName = v.ShopItemName[t.type];
var i = o.node.getChildByName("num").getComponent(cc.Label), a = f.default.GetPayItem(t.moneyIndex + "");
n.active = a && a.price > 0;
if (n.active) {
n.getChildByName("num").getComponent(cc.Label).string = "+" + (a ? a.count : t.num);
i.string = (s.default.Language == u.LanguageType.ZH ? "¥" : "$") + (.01 * a.price).toFixed(1);
var l = n.getChildByName("extra");
l.active = t.extra > 0;
if (t.extra > 0) {
l.getChildByName("num").getComponent(cc.Label).string = "+" + t.extra;
a.extra = t.extra;
}
}
}
};
t.prototype.UpdatePack = function() {
this.adPack1.active = !this.showAdPack && !g.freeAd.boolValue && d.default.payable;
this.adPack2.active = this.showAdPack && !g.freeAd.boolValue && d.default.payable;
this.goldPack.active = g.freeAd.boolValue && 0 == y.default.Instance.buyGoldPackCount.intValue && d.default.payable;
this.weaponPack.active = this.showWeaponChest && 0 == y.default.Instance.buyWeaponPackCount.intValue && d.default.payable;
for (var e = 0, t = 0, n = 0; n < y.default.Instance.equipmentList.length; n++) {
var o = y.default.Instance.equipmentList[n];
!o.unlock.boolValue && o.piece.intValue < o.proto.unlockPieces && (o.proto.type == F.EquipmentType.Mask ? w.ChestConfig.shopMaskParam.weights[o.proto.quality] > 0 && e++ : w.ChestConfig.shopWingParam.weights[o.proto.quality] > 0 && t++);
}
this.equipmentPack.active = e > 0 && t > 0 && d.default.payable && g.freeAd.boolValue && y.default.Instance.buyGoldPackCount.intValue > 0 && 0 == y.default.Instance.buyEquipmentPackCount.intValue;
if (this.adPack1.active) {
var r = v.ShopConfig.GetPackData(v.ShopItemType.ADCard);
this.adPack1.getChildByName("title").getComponent(cc.Label).string = r.desc;
(c = (l = this.adPack1.getChildByName("item")).getChildByName("Button").getComponent(cc.Button)).node.data = r;
(p = c.getComponent(C.default)).payId = r.moneyIndex + "";
p.productName = v.ShopItemName[r.type];
var i = c.node.getChildByName("num").getComponent(cc.Label), a = f.default.GetPayItem(r.moneyIndex + "");
l.active = a && a.price > 0;
if (l.active) {
i.string = g.freeAd.boolValue ? "已购买" : (s.default.Language == u.LanguageType.ZH ? "¥" : "$") + (.01 * a.price).toFixed(1);
c.interactable = !g.freeAd.boolValue;
} else this.adPack1.active = !1;
}
if (this.adPack2.active) {
r = v.ShopConfig.GetPackData(v.ShopItemType.AdPack);
this.adPack2.getChildByName("title").getComponent(cc.Label).string = r.desc;
(c = (l = this.adPack2.getChildByName("item")).getChildByName("Button").getComponent(cc.Button)).node.data = r;
(p = c.getComponent(C.default)).payId = r.moneyIndex + "";
p.productName = v.ShopItemName[r.type];
i = c.node.getChildByName("num").getComponent(cc.Label), a = f.default.GetPayItem(r.moneyIndex + "");
l.active = a && a.price > 0;
if (l.active) {
l.getChildByName("num").getComponent(cc.Label).string = "+" + (a ? a.count : r.num);
i.string = g.freeAd.boolValue ? "已购买" : (s.default.Language == u.LanguageType.ZH ? "¥" : "$") + (.01 * a.price).toFixed(1);
c.interactable = !g.freeAd.boolValue;
} else this.adPack2.active = !1;
}
if (this.goldPack.active) {
r = v.ShopConfig.GetPackData(v.ShopItemType.GoldPack);
this.goldPack.getChildByName("title").getComponent(cc.Label).string = r.desc;
(c = (l = this.goldPack.getChildByName("item")).getChildByName("Button").getComponent(cc.Button)).node.data = r;
(p = c.getComponent(C.default)).payId = r.moneyIndex + "";
p.productName = v.ShopItemName[r.type];
i = c.node.getChildByName("num").getComponent(cc.Label), a = f.default.GetPayItem(r.moneyIndex + "");
l.active = a && a.price > 0;
if (l.active) {
l.getChildByName("num").getComponent(cc.Label).string = "+" + (a ? a.count : r.num);
i.string = (s.default.Language == u.LanguageType.ZH ? "¥" : "$") + (.01 * a.price).toFixed(1);
} else this.goldPack.active = !1;
}
if (this.weaponPack.active) {
r = v.ShopConfig.GetPackData(v.ShopItemType.WeaponPack);
this.weaponPack.getChildByName("title").getComponent(cc.Label).string = r.desc;
(c = (l = this.weaponPack.getChildByName("item")).getChildByName("Button").getComponent(cc.Button)).node.data = r;
(p = c.getComponent(C.default)).payId = r.moneyIndex + "";
p.productName = v.ShopItemName[r.type];
i = c.node.getChildByName("num").getComponent(cc.Label), a = f.default.GetPayItem(r.moneyIndex + "");
l.active = a && a.price > 0;
if (l.active) {
l.getChildByName("num1").getComponent(cc.Label).string = "+" + w.ChestConfig.shopWeaponStuffParam.totalNumRange[0];
l.getChildByName("num2").getComponent(cc.Label).string = "+" + w.ChestConfig.shopWeaponPieceParam.totalNumRange[0];
l.getChildByName("num3").getComponent(cc.Label).string = "+" + (a ? a.count : r.num);
i.string = (s.default.Language == u.LanguageType.ZH ? "¥" : "$") + (.01 * a.price).toFixed(1);
} else this.weaponPack.active = !1;
}
if (this.equipmentPack.active) {
var l, c, p;
r = v.ShopConfig.GetPackData(v.ShopItemType.EquipmentPack);
this.equipmentPack.getChildByName("title").getComponent(cc.Label).string = r.desc;
(c = (l = this.equipmentPack.getChildByName("item")).getChildByName("Button").getComponent(cc.Button)).node.data = r;
(p = c.getComponent(C.default)).payId = r.moneyIndex + "";
p.productName = v.ShopItemName[r.type];
i = c.node.getChildByName("num").getComponent(cc.Label), a = f.default.GetPayItem(r.moneyIndex + "");
l.active = a && a.price > 0;
if (l.active) {
l.getChildByName("num1").getComponent(cc.Label).string = "+" + w.ChestConfig.shopMaskParam.totalNumRange[0];
l.getChildByName("num2").getComponent(cc.Label).string = "+" + w.ChestConfig.shopWingParam.totalNumRange[0];
l.getChildByName("num3").getComponent(cc.Label).string = "+" + w.ChestConfig.shopWingParam.blurprint[0];
i.string = (s.default.Language == u.LanguageType.ZH ? "¥" : "$") + (.01 * a.price).toFixed(1);
} else this.equipmentPack.active = !1;
}
};
t.prototype.OnGoldBuyClick = function(e) {
var t = e.target.data;
if (t.moneyIndex < 0) {
y.default.Instance.leftFreeShopCnt.value -= 1;
_.default.ShowView("商城免费金币", [ new g.RewardProto(m.UnlockType.Coin, t.num) ]);
this.UpdateGoldContent();
S.BroadcastMessage(null, "OnShopBuy", !0, !1);
}
};
t.prototype.UpdateChest = function() {
this.chestGroup.active = !0;
this.chestContent.children[0].active = this.showWeaponChest;
this.chestContent.children[1].active = this.showWeaponChest;
this.chestGroup.width = this.showWeaponChest ? 900 : 300;
if (this.showWeaponChest) {
var e = w.ChestConfig.blueprintChestParam, t = this.chestContent.children[0], n = t.getChildByName("Button");
n.data = e;
var o = n.getChildByName("layout"), r = o.getChildByName("num").getComponent(cc.Label), i = o.getChildByName("icon");
if (e.free > 0 && y.default.Instance.blueprintOpenCount.value < e.free) {
i.active = !1;
r.string = "免费";
} else {
i.active = !0;
r.string = e.needDiamond.intValue + "";
}
e = w.ChestConfig.blueprintChestParam10;
(n = t.getChildByName("Button10")).data = e;
n.getChildByName("layout").getChildByName("num").getComponent(cc.Label).string = e.needDiamond.intValue + "";
e = w.ChestConfig.weaponChestParam;
(n = (t = this.chestContent.children[1]).getChildByName("Button")).data = e;
n.getChildByName("layout").getChildByName("num").getComponent(cc.Label).string = e.needDiamond.intValue + "";
e = w.ChestConfig.weaponChestParam10;
(n = t.getChildByName("Button10")).data = e;
n.getChildByName("layout").getChildByName("num").getComponent(cc.Label).string = e.needDiamond.intValue + "";
}
var a = w.ChestConfig.maskChestParam, l = this.chestContent.children[2], s = l.getChildByName("Button");
s.data = a;
s.getChildByName("layout").getChildByName("num").getComponent(cc.Label).string = a.needDiamond.intValue + "";
a = w.ChestConfig.maskChestParam10;
(s = l.getChildByName("Button10")).data = a;
s.getChildByName("layout").getChildByName("num").getComponent(cc.Label).string = a.needDiamond.intValue + "";
};
t.prototype.OnChestClick = function(e, t) {
var n = e.target.data, o = parseInt(t);
if (n == w.ChestConfig.blueprintChestParam || n == w.ChestConfig.blueprintChestParam10) if (n.free > 0 && y.default.Instance.blueprintOpenCount.value < n.free) {
y.default.Instance.blueprintOpenCount.value++;
l.default.ShowView(M.default, w.ChestType.blueprint, o);
this.UpdateChest();
S.BroadcastMessage(null, "OnShopBuy", !0, !1);
} else if (y.default.Instance.diamond.intValue >= n.needDiamond.intValue && n.needDiamond.intValue > 0 && (this.ignoreBuyDiamond || y.default.Instance.chargeDiamond.intValue >= n.needDiamond.intValue)) {
y.default.Instance.AddDiamond(-n.needDiamond.intValue, "材料宝箱");
l.default.ShowView(M.default, w.ChestType.blueprint, o);
S.BroadcastMessage(null, "OnShopBuy", !0, !1);
} else c.default.Show("钻石数量不足！"); else if (n == w.ChestConfig.weaponChestParam || n == w.ChestConfig.weaponChestParam10) if (y.default.Instance.diamond.intValue >= n.needDiamond.intValue && n.needDiamond.intValue > 0 && (this.ignoreBuyDiamond || y.default.Instance.chargeDiamond.intValue >= n.needDiamond.intValue)) {
y.default.Instance.AddDiamond(-n.needDiamond.intValue, "武器宝箱");
y.default.Instance.weaponOpenCount.intValue += o;
l.default.ShowView(M.default, w.ChestType.weapon, o);
S.BroadcastMessage(null, "OnShopBuy", !0, !1);
} else c.default.Show("钻石数量不足！"); else if (n == w.ChestConfig.maskChestParam || n == w.ChestConfig.maskChestParam10) if (y.default.Instance.diamond.intValue >= n.needDiamond.intValue && n.needDiamond.intValue > 0 && (this.ignoreBuyDiamond || y.default.Instance.chargeDiamond.intValue >= n.needDiamond.intValue)) {
for (var r = 0, i = 0, a = 0; a < y.default.Instance.equipmentList.length; a++) {
var u = y.default.Instance.equipmentList[a];
!u.unlock.boolValue && u.piece.intValue < u.proto.unlockPieces && (u.proto.type == F.EquipmentType.Mask ? w.ChestConfig.maskChestParam.weights[u.proto.quality] > 0 && r++ : w.ChestConfig.wingChestParam.weights[u.proto.quality] > 0 && i++);
}
var p = 0, d = null;
if (0 == r && 0 == i) {
d = s.TXT("您已拥有所有时装，");
p = 1 == o ? 1e4 : 9e4;
} else if (10 == o && (0 == r || 0 == i)) {
d = 0 == r ? s.TXT("您已拥有所有面具，") : s.TXT("您已拥有所有翅膀，");
p = 9e4;
}
null != d ? I.default.ShowConfirmCancel("提示", d + s.TXT("宝箱只能开出金币，是否继续？"), function() {
y.default.Instance.AddDiamond(-n.needDiamond.intValue, "时装宝箱");
_.default.ShowView("时装宝箱转换", [ new g.RewardProto(m.UnlockType.Coin, p) ]);
S.BroadcastMessage(null, "OnShopBuy", !0, !1);
}) : this.DoOpenEquipmentChest(n.needDiamond.intValue, o);
} else c.default.Show("钻石数量不足！");
};
t.prototype.DoOpenEquipmentChest = function(e, t) {
y.default.Instance.AddDiamond(-e, "时装宝箱");
l.default.ShowView(M.default, w.ChestType.equipment, t);
S.BroadcastMessage(null, "OnShopBuy", !0, !1);
};
t.prototype.OnStatementClick = function(e, t) {
var n = parseInt(t);
this.statementNode.active = !0;
this.blueprintStatement.active = 0 == n;
this.pieceStatement.active = 1 == n;
this.equipmentStatement.active = 2 == n;
};
t.prototype.OnStatementClose = function() {
this.statementNode.active = !1;
};
t.prototype.OnTTContactButtonClick = function() {
l.default.ShowView(O.default);
};
__decorate([ B(cc.Node) ], t.prototype, "scrollViewNode", void 0);
__decorate([ B(cc.Node) ], t.prototype, "content", void 0);
__decorate([ B(cc.Node) ], t.prototype, "gapNode", void 0);
__decorate([ B(cc.Label) ], t.prototype, "coinLabel", void 0);
__decorate([ B(cc.Label) ], t.prototype, "diamondLabel", void 0);
__decorate([ B(cc.Node) ], t.prototype, "adPack1", void 0);
__decorate([ B(cc.Node) ], t.prototype, "adPack2", void 0);
__decorate([ B(cc.Node) ], t.prototype, "goldPack", void 0);
__decorate([ B(cc.Node) ], t.prototype, "weaponPack", void 0);
__decorate([ B(cc.Node) ], t.prototype, "equipmentPack", void 0);
__decorate([ B(cc.Node) ], t.prototype, "goldGroup", void 0);
__decorate([ B(cc.Node) ], t.prototype, "goldContent", void 0);
__decorate([ B(cc.Node) ], t.prototype, "diamondGroup", void 0);
__decorate([ B(cc.Node) ], t.prototype, "diamondContent", void 0);
__decorate([ B(cc.Node) ], t.prototype, "chestGroup", void 0);
__decorate([ B(cc.Node) ], t.prototype, "chestContent", void 0);
__decorate([ B(cc.Node) ], t.prototype, "tips", void 0);
__decorate([ B(cc.Node) ], t.prototype, "ttContactBtn", void 0);
__decorate([ B(cc.Node) ], t.prototype, "statementNode", void 0);
__decorate([ B(cc.Node) ], t.prototype, "blueprintStatement", void 0);
__decorate([ B(cc.Node) ], t.prototype, "pieceStatement", void 0);
__decorate([ B(cc.Node) ], t.prototype, "equipmentStatement", void 0);
return __decorate([ L, r.RegisterView("ShopUI", i.ViewLayer.NormalLayer) ], t);
}(a.default);
n.default = U;
d.default.OnPay.AddEvent(function(e, t, n) {
if (e.name == v.ShopItemName[v.ShopItemType.Gold]) {
if (n) {
_.default.ShowView("购买金币", [ new g.RewardProto(m.UnlockType.Coin, e.number) ]);
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
}
l.default.HideView(o.default);
} else if (e.name == v.ShopItemName[v.ShopItemType.Diamond]) {
if (n) {
_.default.ShowView("购买钻石", [ new g.RewardProto(m.UnlockType.Diamond, e.number) ]);
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
}
l.default.HideView(o.default);
} else if (e.name == v.ShopItemName[v.ShopItemType.ADCard]) {
n && _.default.ShowView("购买免广告", [ new g.RewardProto(m.UnlockType.AdCard, e.number) ], function() {
var t = l.default.GetView(U);
if (t) {
t.UpdatePack();
t.CheckScrollView();
}
l.default.HideView(P.default);
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
});
l.default.HideView(o.default);
} else if (e.name == v.ShopItemName[v.ShopItemType.AdPack]) {
n && _.default.ShowView("购买免广告礼包", [ new g.RewardProto(m.UnlockType.AdCard, 1), new g.RewardProto(m.UnlockType.Coin, e.number) ], function() {
var t = l.default.GetView(U);
if (t) {
t.UpdatePack();
t.CheckScrollView();
}
l.default.HideView(P.default);
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
});
l.default.HideView(o.default);
} else if (e.name == v.ShopItemName[v.ShopItemType.GoldPack]) {
if (n) {
y.default.Instance.buyGoldPackCount.intValue++;
_.default.ShowView("购买金币礼包", [ new g.RewardProto(m.UnlockType.Coin, e.number) ], function() {
var t = l.default.GetView(U);
if (t) {
t.UpdatePack();
t.CheckScrollView();
}
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
});
}
l.default.HideView(o.default);
} else if (e.name == v.ShopItemName[v.ShopItemType.WeaponPack]) {
if (n) {
y.default.Instance.buyWeaponPackCount.intValue++;
for (var r = [], i = w.ChestConfig.GetBlueprintRewards(w.ChestConfig.shopWeaponStuffParam), a = w.ChestConfig.GetWeaponRewards(w.ChestConfig.shopWeaponPieceParam, 0), s = 0; s < i.length; s++) r.push(i[s]);
for (s = 0; s < a.length; s++) r.push(a[s]);
r.push(new g.RewardProto(m.UnlockType.Coin, e.number));
_.default.ShowView("购买武器礼包", r, function() {
var t = l.default.GetView(U);
if (t) {
t.UpdatePack();
t.CheckScrollView();
}
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
});
}
l.default.HideView(o.default);
} else if (e.name == v.ShopItemName[v.ShopItemType.GuoQingPack]) l.default.HideView(o.default); else if (e.name == v.ShopItemName[v.ShopItemType.NewbiePack]) {
if (n) {
var c = v.ShopConfig.GetPackData(v.ShopItemType.NewbiePack);
r = [ new g.RewardProto(m.UnlockType.Diamond, c.diamond), new g.RewardProto(m.UnlockType.Weapon, 1, c.weapon.id, null, c.weapon.classLevel, c.weapon.lv), new g.RewardProto(m.UnlockType.Coin, e.number) ];
_.default.ShowView("新手礼包", r);
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
l.default.HideView(b.default);
(f = l.default.GetView(k.default)) && f.UpdateUI();
}
l.default.HideView(o.default);
} else if (e.name == v.ShopItemName[v.ShopItemType.FashionPack]) {
if (n) {
c = v.ShopConfig.GetPackData(v.ShopItemType.FashionPack), r = [ new g.RewardProto(m.UnlockType.EquipmentBluePrint, c.equipBlueprint), new g.RewardProto(m.UnlockType.Equipment, 1, c.equipmentId), new g.RewardProto(m.UnlockType.Coin, e.number) ];
_.default.ShowView("时装好礼", r);
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
l.default.HideView(E.default);
(f = l.default.GetView(k.default)) && f.UpdateUI();
}
l.default.HideView(o.default);
} else if (e.name == v.ShopItemName[v.ShopItemType.EquipmentPack]) {
if (n) {
y.default.Instance.buyEquipmentPackCount.intValue++;
r = [];
var u = w.ChestConfig.GetEquipmentRewards(w.ChestConfig.shopMaskParam, F.EquipmentType.Mask, !1), d = w.ChestConfig.GetEquipmentRewards(w.ChestConfig.shopWingParam, F.EquipmentType.Wing, !0);
for (s = 0; s < u.length; s++) r.push(u[s]);
for (s = 0; s < d.length; s++) r.push(d[s]);
_.default.ShowView("时装礼包", r, function() {
var t = l.default.GetView(U);
if (t) {
t.UpdatePack();
t.CheckScrollView();
}
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
});
}
l.default.HideView(o.default);
} else if (e.name == v.ShopItemName[v.ShopItemType.HallweenPack]) {
if (n) {
var f;
c = v.ShopConfig.GetPackData(v.ShopItemType.HallweenPack), r = [ new g.RewardProto(m.UnlockType.Equipment, 1, c.equipmentId1), new g.RewardProto(m.UnlockType.Equipment, 1, c.equipmentId2), new g.RewardProto(m.UnlockType.Diamond, c.diamond), new g.RewardProto(m.UnlockType.Coin, e.number) ];
_.default.ShowView("万圣节豪礼", r);
p.default.LogEvent("Pay2Get", {
name: e.name,
price: e.price,
number: e.number
});
l.default.HideView(D.default);
(f = l.default.GetView(k.default)) && f.UpdateUI();
}
l.default.HideView(o.default);
}
S.BroadcastMessage(null, "OnShopBuy", n, !0);
});
cc._RF.pop();
}, {
"../../Framework/Core/UI/WaitingUI": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Framework/UI/MessageBoxUI": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/AccountManager": void 0,
"../../Service/Analys": void 0,
"../../Service/PlatformService": void 0,
"../../Service/RemoteSetting": void 0,
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/ChestConfig": "ChestConfig",
"../Config/EquipmentConfig": "EquipmentConfig",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"../Config/ShopConfig": "ShopConfig",
"../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./ChestUI": "ChestUI",
"./FashionPackUI": "FashionPackUI",
"./FirstChargePackUI": "FirstChargePackUI",
"./HallUI": "HallUI",
"./HalloweenPackUI": "HalloweenPackUI",
"./MyPayButton": "MyPayButton",
"./NoAdUI": "NoAdUI",
"./RewardsUI": "RewardsUI",
"./TTContactButtonUI": "TTContactButtonUI"
} ],
ShuiDan: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c0be840ej9KsZp8vi2yHcbV", "ShuiDan");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/AssetManager"), r = e("../../../../Service/kl"), i = e("../../LevelContext"), a = e("../../LevelManager"), l = e("../../Util"), s = e("../TimerSkill"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.readyEft = null;
t.radius = 300;
t.intervel = .2;
t.time = 2;
t.v1 = cc.v2();
return t;
}
t.prototype.OnTimeOut = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n;
return __generator(this, function(o) {
switch (o.label) {
case 0:
e = this.context.skillData.proto.bulletNumber;
t = r.default.RandomInt(0, 360);
n = 0;
o.label = 1;

case 1:
if (!(n < e)) return [ 3, 4 ];
this.DoFire(t, n);
return [ 4, this.waitForTime(this.intervel) ];

case 2:
o.sent();
o.label = 3;

case 3:
n++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.GetPos = function(e) {
var t = l.default.angle2Forward(e, this.v1);
return this.context.owner.body.position.add(t.mulSelf(this.radius));
};
t.prototype.DoFire = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
var n, r, l, s, c = this;
return __generator(this, function(u) {
switch (u.label) {
case 0:
n = this.GetPos(e + t * (360 / this.context.skillData.proto.bulletNumber));
if (!this.readyEft) return [ 3, 2 ];
r = o.default.Default.CreateNodeSync(this.readyEft, i.LevelContext.Instance.playerLayer, n);
l = r.getComponent(cc.Animation);
return [ 4, this.waitForTime(l.defaultClip.duration) ];

case 1:
u.sent();
o.default.Default.DestroyNode(r);
u.label = 2;

case 2:
if (this.context.isCleared) return [ 2 ];
(s = this.context.CreateEffectHandler(this.context.fireEffect, this.context.fireSound, n, 0, i.LevelContext.Instance.groundLayer, !0, null)).opacity = 255;
return [ 4, a.LevelManager.Instance.waitForTime(this.time) ];

case 3:
u.sent();
cc.tween(s).to(.3, {
opacity: 0
}).call(function() {
c.context && c.context.cache.DestroyNode(s);
}).start();
return [ 2 ];
}
});
});
};
__decorate([ p(cc.Prefab) ], t.prototype, "readyEft", void 0);
__decorate([ p() ], t.prototype, "radius", void 0);
__decorate([ p() ], t.prototype, "intervel", void 0);
__decorate([ p() ], t.prototype, "time", void 0);
return __decorate([ u ], t);
}(s.default);
n.default = d;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/AssetManager": void 0,
"../../../../Service/kl": void 0,
"../../LevelContext": "LevelContext",
"../../LevelManager": "LevelManager",
"../../Util": "Util",
"../TimerSkill": "TimerSkill"
} ],
SiWangJiaSu: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "343d6WID3ZPOKUhtnPZR+36", "SiWangJiaSu");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Config/SkillConfig"), r = e("../../../../Messaging/MessageBroadcastReceiver"), i = e("../../../Player"), a = e("../../BaseSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.accelStep = 35;
t.totalTime = 1;
t.passedTime = 0;
t.acced = !1;
return t;
}
t.prototype.AddAcceledValue = function(e) {
var t = this.context.owner;
t.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, e);
t.ResetFeatures();
};
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
if (this.acced) {
this.passedTime += t;
if (this.passedTime >= this.totalTime) {
this.passedTime = 0;
this.acced = !1;
this.AddAcceledValue(-this.accelStep);
}
}
};
t.prototype.OnKillEnemy = function(e, t) {
if ((null == t ? void 0 : t.owner) instanceof i.Player && !this.acced) {
this.AddAcceledValue(this.accelStep);
this.passedTime = 0;
this.acced = !0;
}
};
__decorate([ c() ], t.prototype, "accelStep", void 0);
__decorate([ c() ], t.prototype, "totalTime", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../../Config/SkillConfig": "SkillConfig",
"../../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../../Player": "Player",
"../../BaseSkill": "BaseSkill"
} ],
SiWangWenYi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f5838EMz8JGMqdjW6nzUSw9", "SiWangWenYi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../BaseSkill"), a = e("../XieDao/XieDao"), l = cc._decorator, s = l.ccclass, c = (l.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnKillEnemy = function(e, t) {
if (t && t.skillData && a.default.Instance && (t.skillData.id == a.default.Instance.context.skillData.id || t.skillData.id == this.context.skillData.id)) for (var n = r.LevelContext.Instance.GetEnemysInRadius(e, this.context.skillData.proto.range), o = 0; o < n.length; o++) {
var i = n[o];
this.context.TryBuff(i);
}
};
__decorate([ o.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ s ], t);
}(i.default));
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill",
"../XieDao/XieDao": "XieDao"
} ],
Simulator: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ad396ALHuZB6JcHYKfOoX+K", "Simulator");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Simulator = void 0;
var o = e("./IAgent"), r = e("./IKdTree"), i = e("./Obstacle"), a = e("./RVOMath"), l = e("./Vector2"), s = function() {
function e(e, t, n) {
this.sim_ = e;
this.start_ = t;
this.end_ = n;
}
e.prototype.config = function(e, t) {
this.start_ = e;
this.end_ = t;
};
e.prototype.step = function() {
for (var e = this.start_; e < this.end_; ++e) {
var t = this.sim_.agents_[e];
t.computeNeighbors();
t.computeNewVelocity();
}
};
e.prototype.update = function() {
for (var e = this.start_; e < this.end_; ++e) this.sim_.agents_[e].update();
};
return e;
}(), c = function() {
function e() {
this.s_totalID = 0;
}
e.prototype.Initialize = function() {
this.Clear();
};
e.prototype.delAgent = function(e) {
var t = this.agentNo2indexDict_.get(e);
this.agents_[t].needDelete_ = !0;
};
e.prototype.updateDeleteAgent = function() {
for (var e = !1, t = this.agents_.length - 1; t >= 0; t--) if (this.agents_[t].needDelete_) {
this.agents_.splice(t, 1);
e = !0;
}
e && this.onDelAgent();
};
e.prototype.addAgent = function(e) {
if (null == this.defaultAgent_) return -1;
var t = o.AgentFactory.CreateAgent(this);
t.id_ = this.s_totalID;
this.s_totalID++;
t.maxNeighbors_ = this.defaultAgent_.maxNeighbors_;
t.maxSpeed_ = this.defaultAgent_.maxSpeed_;
t.neighborDist_ = this.defaultAgent_.neighborDist_;
t.position_ = e.Clone();
t.radius_ = this.defaultAgent_.radius_;
t.timeHorizon_ = this.defaultAgent_.timeHorizon_;
t.timeHorizonObst_ = this.defaultAgent_.timeHorizonObst_;
t.velocity_ = this.defaultAgent_.velocity_.Clone();
t.prefVelocity_ = new l.Vector2();
this.agents_.push(t);
this.onAddAgent();
return t.id_;
};
e.prototype.onDelAgent = function() {
this.agentNo2indexDict_.clear();
this.index2agentNoDict_.clear();
for (var e = 0; e < this.agents_.length; e++) {
var t = this.agents_[e].id_;
this.agentNo2indexDict_.set(t, e);
this.index2agentNoDict_.set(e, t);
}
};
e.prototype.onAddAgent = function() {
if (0 != this.agents_.length) {
var e = this.agents_.length - 1, t = this.agents_[e].id_;
this.agentNo2indexDict_.set(t, e);
this.index2agentNoDict_.set(e, t);
}
};
e.prototype.addAgent2 = function(e, t, n, r, i, a, s, c) {
var u = o.AgentFactory.CreateAgent(this);
u.id_ = this.s_totalID;
this.s_totalID++;
u.neighborDist_ = t;
u.maxNeighbors_ = n;
u.timeHorizon_ = r;
u.timeHorizonObst_ = i;
u.radius_ = a;
u.maxSpeed_ = s;
u.position_ = e.Clone();
u.velocity_ = c.Clone();
u.prefVelocity_ = new l.Vector2();
this.agents_.push(u);
this.onAddAgent();
return u.id_;
};
e.prototype.addObstacle = function(e, t) {
if (e.length < 2) return -1;
for (var n = this.obstacles_.length, o = 0; o < e.length; ++o) {
var r = new i.Obstacle();
null != t && (r.collisionMask_ = t);
r.point_ = e[o];
if (0 != o) {
r.previous_ = this.obstacles_[this.obstacles_.length - 1];
r.previous_.next_ = r;
}
if (o == e.length - 1) {
r.next_ = this.obstacles_[n];
r.next_.previous_ = r;
}
var s = new l.Vector2();
r.direction_ = a.RVOMath.Normalize(l.Vector2.Subtract(e[o == e.length - 1 ? 0 : o + 1], e[o], s), s);
2 == e.length ? r.convex_ = !0 : r.convex_ = a.RVOMath.LeftOf(e[0 == o ? e.length - 1 : o - 1], e[o], e[o == e.length - 1 ? 0 : o + 1]) >= 0;
r.id_ = this.obstacles_.length;
this.obstacles_.push(r);
}
return n;
};
e.prototype.Clear = function() {
this.agents_ = new Array();
this.agentNo2indexDict_ = new Map();
this.index2agentNoDict_ = new Map();
this.defaultAgent_ = null;
this.kdTree_ = r.KdTreeFactory.CreateKdTree(this);
this.obstacles_ = new Array();
this.globalTime_ = 0;
this.timeStep_ = .1;
this.SetNumWorkers(1);
};
e.prototype.doStep = function() {
this.updateDeleteAgent();
var e = this.getNumAgents(), t = this.numWorkers_;
if (null == this.workers_) {
this.workers_ = new Array(t);
this.workerAgentCount_ = e;
for (var n = 0; n < t; ++n) this.workers_[n] = new s(this, Math.trunc(n * e / t), Math.trunc((n + 1) * e / t));
}
if (this.workerAgentCount_ != e) {
this.workerAgentCount_ = e;
for (n = 0; n < t; ++n) this.workers_[n].config(Math.trunc(n * e / t), Math.trunc((n + 1) * e / t));
}
this.kdTree_.buildAgentTree();
for (n = 0; n < t; ++n) this.workers_[n].step();
for (n = 0; n < t; ++n) this.workers_[n].update();
this.globalTime_ += this.timeStep_;
return this.globalTime_;
};
e.prototype.getAgentNeighbor = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
return this.agents_[n].agentNeighbors_[t].value.id_;
};
e.prototype.getAgentMaxNeighbors = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].maxNeighbors_;
};
e.prototype.getAgentMaxSpeed = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].maxSpeed_;
};
e.prototype.getAgentNeighborDist = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].neighborDist_;
};
e.prototype.getAgentNumAgentNeighbors = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].agentNeighbors_.length;
};
e.prototype.getAgentNumObstacleNeighbors = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].obstacleNeighbors_.length;
};
e.prototype.getAgentObstacleNeighbor = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
return this.agents_[n].obstacleNeighbors_[t].value.id_;
};
e.prototype.getAgentOrcaLines = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].orcaLines_;
};
e.prototype.getAgentPosition = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].position_;
};
e.prototype.getAgentPrefVelocity = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].prefVelocity_;
};
e.prototype.getAgentRadius = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].radius_;
};
e.prototype.getAgentTimeHorizon = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].timeHorizon_;
};
e.prototype.getAgentTimeHorizonObst = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].timeHorizonObst_;
};
e.prototype.getAgentVelocity = function(e) {
var t = this.agentNo2indexDict_.get(e);
return this.agents_[t].velocity_;
};
e.prototype.getGlobalTime = function() {
return this.globalTime_;
};
e.prototype.getNumAgents = function() {
return this.agents_.length;
};
e.prototype.getNumObstacleVertices = function() {
return this.obstacles_.length;
};
e.prototype.GetNumWorkers = function() {
return this.numWorkers_;
};
e.prototype.getObstacleVertex = function(e) {
return this.obstacles_[e].point_;
};
e.prototype.getNextObstacleVertexNo = function(e) {
return this.obstacles_[e].next_.id_;
};
e.prototype.getPrevObstacleVertexNo = function(e) {
return this.obstacles_[e].previous_.id_;
};
e.prototype.getTimeStep = function() {
return this.timeStep_;
};
e.prototype.processObstacles = function() {
this.kdTree_.buildObstacleTree();
};
e.prototype.queryVisibility = function(e, t, n) {
return this.kdTree_.queryVisibility(e, t, n);
};
e.prototype.queryNearAgent = function(e, t) {
return 0 == this.getNumAgents() ? -1 : this.kdTree_.queryNearAgent(e, t);
};
e.prototype.setAgentCollideMask = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].collisionMask_ = t;
};
e.prototype.setAgentDefaults = function(e, t, n, r, i, a, s) {
void 0 === s && (s = new l.Vector2(0, 0));
null == this.defaultAgent_ && (this.defaultAgent_ = o.AgentFactory.CreateAgent(this));
this.defaultAgent_.maxNeighbors_ = t;
this.defaultAgent_.maxSpeed_ = a;
this.defaultAgent_.neighborDist_ = e;
this.defaultAgent_.radius_ = i;
this.defaultAgent_.timeHorizon_ = n;
this.defaultAgent_.timeHorizonObst_ = r;
this.defaultAgent_.velocity_ = s;
};
e.prototype.setAgentMaxNeighbors = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].maxNeighbors_ = t;
};
e.prototype.setAgentMaxSpeed = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].maxSpeed_ = t;
};
e.prototype.setAgentNeighborDist = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].neighborDist_ = t;
};
e.prototype.setAgentPosition = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].position_ = t;
};
e.prototype.setAgentPrefVelocity = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].prefVelocity_.Copy(t);
};
e.prototype.setAgentRadius = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].radius_ = t;
};
e.prototype.setAgentTimeHorizon = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].timeHorizon_ = t;
};
e.prototype.setAgentTimeHorizonObst = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].timeHorizonObst_ = t;
};
e.prototype.setAgentVelocity = function(e, t) {
var n = this.agentNo2indexDict_.get(e);
this.agents_[n].velocity_ = t;
};
e.prototype.setGlobalTime = function(e) {
this.globalTime_ = e;
};
e.prototype.SetNumWorkers = function(e) {
this.numWorkers_ = e;
this.workers_ = null;
this.workerAgentCount_ = 0;
};
e.prototype.setTimeStep = function(e) {
this.timeStep_ = e;
};
return e;
}();
n.Simulator = c;
cc._RF.pop();
}, {
"./IAgent": "IAgent",
"./IKdTree": "IKdTree",
"./Obstacle": "Obstacle",
"./RVOMath": "RVOMath",
"./Vector2": "Vector2"
} ],
SinMovementAI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7af2bWb50dE5Zt7+F8+6iFu", "SinMovementAI");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SinMovementAI = void 0;
var o = e("./AI"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.sinSpeed = 2;
t.passedTime = 0;
t.sinPassedTime = 0;
t.dir = 0;
t.v1 = cc.v2();
return t;
}
t.prototype.OnInit = function() {
e.prototype.OnInit.call(this);
this.passedTime = 0;
this.sinPassedTime = Math.random();
var t = this.owner.target;
this.dir = Math.sign(t.node.x - this.owner.body.node.x);
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
this.sinPassedTime += e * this.sinSpeed;
this.v1.x = this.dir;
this.v1.y = Math.sin(this.sinPassedTime);
this.v1.normalizeSelf();
this.v1.mulSelf(this.owner.speed);
this.owner.body.velocity = this.v1;
};
__decorate([ a() ], t.prototype, "sinSpeed", void 0);
return __decorate([ i ], t);
}(o.AI);
n.SinMovementAI = l;
cc._RF.pop();
}, {
"./AI": "AI"
} ],
SkillConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9cbb4mr3bhFjoUEGu9YAX6w", "SkillConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SkillConfig = n.SkillGroupProto = n.SkillProto = n.SkillGroupType = n.SkillType = n.SkillEvoProto = n.SkillFeatureProto = n.SkillFeature = void 0;
var o;
(function(e) {
e[e.BulletCDUpPercent = 0] = "BulletCDUpPercent";
e[e.BulletNumUp = 1] = "BulletNumUp";
e[e.BulletBackNumUp = 2] = "BulletBackNumUp";
e[e.BulletCapacityUp = 3] = "BulletCapacityUp";
e[e.BulletCapacityUpPercent = 4] = "BulletCapacityUpPercent";
e[e.BulletMiniCapacity = 5] = "BulletMiniCapacity";
e[e.BulletHitCountUp = 6] = "BulletHitCountUp";
e[e.BulletCiritHitCountUp = 7] = "BulletCiritHitCountUp";
e[e.BulletBaseNumUpPercent = 8] = "BulletBaseNumUpPercent";
e[e.BulletIntervelUpPercent = 9] = "BulletIntervelUpPercent";
e[e.BulletSpeedUpPercent = 10] = "BulletSpeedUpPercent";
e[e.BulletDamageUpPercent = 11] = "BulletDamageUpPercent";
e[e.BulletDamageDownPercent = 12] = "BulletDamageDownPercent";
e[e.BulletDamageUp = 13] = "BulletDamageUp";
e[e.BulletBurnDamageUpPercent = 14] = "BulletBurnDamageUpPercent";
e[e.BulletBurnTimeUpPercent = 15] = "BulletBurnTimeUpPercent";
e[e.BulletLightningDamageUp = 16] = "BulletLightningDamageUp";
e[e.BulletLightningDamageUpPercent = 17] = "BulletLightningDamageUpPercent";
e[e.BulletLightningScaleUpPercent = 18] = "BulletLightningScaleUpPercent";
e[e.BulletFreezeDamageUpPercent = 19] = "BulletFreezeDamageUpPercent";
e[e.BulletHitBackUpPercent = 20] = "BulletHitBackUpPercent";
e[e.BulletAngleUp = 21] = "BulletAngleUp";
e[e.BulletScaleUpPercent = 22] = "BulletScaleUpPercent";
e[e.BulletBounceUp = 23] = "BulletBounceUp";
e[e.BulletScreenReflectUp = 24] = "BulletScreenReflectUp";
e[e.BulletLastTimeUpPercent = 25] = "BulletLastTimeUpPercent";
e[e.PlayerStandFreeBulletUpPercent = 26] = "PlayerStandFreeBulletUpPercent";
e[e.PlayerFreeBulletUpPercent = 27] = "PlayerFreeBulletUpPercent";
e[e.PlayerSpeedUpPercent = 28] = "PlayerSpeedUpPercent";
e[e.PlayerMoveFireSpeedUpPercent = 29] = "PlayerMoveFireSpeedUpPercent";
e[e.PlayerMaxHealthUp = 30] = "PlayerMaxHealthUp";
e[e.PlayerMaxHealthUpPercent = 31] = "PlayerMaxHealthUpPercent";
e[e.PlayerScaleUp = 32] = "PlayerScaleUp";
e[e.PlayerVisionUpPercent = 33] = "PlayerVisionUpPercent";
e[e.PlayerInVisionDamageUpPercent = 34] = "PlayerInVisionDamageUpPercent";
e[e.PickRangeUpPercent = 35] = "PickRangeUpPercent";
e[e.AutoFire = 36] = "AutoFire";
e[e.ExpUpPercent = 37] = "ExpUpPercent";
e[e.ReliveUp = 38] = "ReliveUp";
e[e.SecKillUpPercent = 39] = "SecKillUpPercent";
e[e.DashCountUp = 40] = "DashCountUp";
e[e.DashTimeUpPercent = 41] = "DashTimeUpPercent";
e[e.DashWuDiTimeUp = 42] = "DashWuDiTimeUp";
e[e.DashCDUpPercent = 43] = "DashCDUpPercent";
e[e.DashDamageUp = 44] = "DashDamageUp";
e[e.DashDamageUpPercent = 45] = "DashDamageUpPercent";
e[e.SummonDamageUpPercent = 46] = "SummonDamageUpPercent";
e[e.SummonCDUpPercent = 47] = "SummonCDUpPercent";
e[e.SummonBulletNumUp = 48] = "SummonBulletNumUp";
e[e.SummonDamageUp = 49] = "SummonDamageUp";
e[e.ElementDamageUp = 50] = "ElementDamageUp";
e[e.ElementDamageUpPercent = 51] = "ElementDamageUpPercent";
e[e.CritDamageUpPercent = 52] = "CritDamageUpPercent";
e[e.CritUp = 53] = "CritUp";
e[e.DogdeUp = 54] = "DogdeUp";
e[e.LuckUp = 55] = "LuckUp";
e[e.FireBallScaleUpPercent = 56] = "FireBallScaleUpPercent";
e[e.BossDamageUpPercent = 57] = "BossDamageUpPercent";
e[e.KillEliteHpRecoverRateUpPercent = 58] = "KillEliteHpRecoverRateUpPercent";
e[e.BattleCoinUpPercent = 59] = "BattleCoinUpPercent";
e[e.VehicleTimeUpPercent = 60] = "VehicleTimeUpPercent";
e[e.BurningTimeUpPercent = 61] = "BurningTimeUpPercent";
e[e.BurningCDUpPercent = 62] = "BurningCDUpPercent";
e[e.FreezeTimeUp = 63] = "FreezeTimeUp";
e[e.AntiSlowdownUpPercent = 64] = "AntiSlowdownUpPercent";
e[e.AntiChaosUpPercent = 65] = "AntiChaosUpPercent";
e[e.AntiTwineUpPercent = 66] = "AntiTwineUpPercent";
e[e.MonsterSpawnIntervelUpPercent = 67] = "MonsterSpawnIntervelUpPercent";
e[e.MonsterSpawnExpUpPercent = 68] = "MonsterSpawnExpUpPercent";
e[e.MonsterSpawnHealthUpPercent = 69] = "MonsterSpawnHealthUpPercent";
e[e.MonsterSpawnSpeedUpPercent = 70] = "MonsterSpawnSpeedUpPercent";
e[e.CrazyCoinTimeUpPercent = 71] = "CrazyCoinTimeUpPercent";
e[e.Count = 72] = "Count";
})(o = n.SkillFeature || (n.SkillFeature = {}));
var r = function() {
function e(e, t, n, o, r) {
this.type = e;
this.x = t;
this.y = n;
this.replace = o;
this.downPercent = r;
}
Object.defineProperty(e.prototype, "value", {
get: function() {
return this.x;
},
enumerable: !1,
configurable: !0
});
e.prototype.Clone = function() {
return new e(this.type, this.x, this.y, this.replace, this.downPercent);
};
e.prototype.Add = function(e) {
this.AddEx(e.x, e.y, e.replace, e.downPercent);
};
e.prototype.AddEx = function(e, t, n, o) {
if (n) {
this.x = e;
this.y = t;
} else if (o) {
this.x = 100 - (100 - this.x) * (100 - e) * .01;
this.y = 100 - (100 - this.y) * (100 - t) * .01;
} else {
this.x += e;
this.y += t;
}
};
return e;
}();
n.SkillFeatureProto = r;
var i, a;
n.SkillEvoProto = function(e, t) {
this.otherSkillId = e;
this.evoSkillId = t;
};
(function(e) {
e[e.Bullet = 2] = "Bullet";
e[e.Summon = 4] = "Summon";
e[e.Other = 8] = "Other";
e[e.Lightning = 16] = "Lightning";
e[e.Dash = 32] = "Dash";
e[e.Fire = 64] = "Fire";
e[e.Ice = 128] = "Ice";
})(i = n.SkillType || (n.SkillType = {}));
(function(e) {
e[e.Unknow = 0] = "Unknow";
e[e.Normal = 1] = "Normal";
e[e.Super = 2] = "Super";
e[e.Hero = 3] = "Hero";
e[e.Book = 4] = "Book";
})(a = n.SkillGroupType || (n.SkillGroupType = {}));
var l = function() {
function e(e, t, n, o, r, i, a, l, s, c, u, p, d, f, h, m, w, y, g, v) {
void 0 === m && (m = 1);
this.id = e;
this.order = t;
this.groupId = n;
this.types = o;
this.name = r;
this.desc = i;
this.tip = a;
this.icon = l;
this.lastTime = s;
this.damage = c;
this.range = u;
this.cd = p;
this.damageIntervel = d;
this.resPath = f;
this.features = h;
this.bulletNumber = m;
this.preSkillIds = w;
this.evoProto = y;
this.opt = g;
this.summonFeaturesOpt = v;
}
Object.defineProperty(e.prototype, "iconPath", {
get: function() {
return "UI/SkillIcon/" + this.icon;
},
enumerable: !1,
configurable: !0
});
return e;
}();
n.SkillProto = l;
var s = function() {
function e(e, t, n, o, r, i, a) {
this.id = e;
this.type = t;
this.heroID = n;
this.name = o;
this.ids = r;
this.activeSkill = i;
this.icon = a;
}
Object.defineProperty(e.prototype, "iconPath", {
get: function() {
return "UI/SkillIcon/" + this.icon;
},
enumerable: !1,
configurable: !0
});
e.prototype.GetLv = function(e) {
return this.ids.indexOf(e) + 1;
};
return e;
}();
n.SkillGroupProto = s;
var c = function() {
function e() {}
e.GetSkill = function(t) {
return e.skills.find(function(e) {
return e.id == t;
});
};
e.GetSkillGroup = function(t) {
return e.skillGroup.find(function(e) {
return e.id == t;
});
};
e.GetSuperSkillGroup = function(t) {
return e.superSkillDepence.find(function(e) {
return e.id == t;
});
};
e.GetHeroSkillGroup = function(t) {
return e.heroBoxSkills.find(function(e) {
return e.id == t;
});
};
e.GetHeroSkillGroupByHero = function(t) {
return e.heroBoxSkills.find(function(e) {
return e.heroID == t;
});
};
e.FindSkillGroup = function(t) {
var n = e.GetSkillGroup(t);
n || (n = e.GetSuperSkillGroup(t)) || (n = e.GetHeroSkillGroup(t));
return n;
};
e.CritRateScale = 15;
e.skillGroup = [ new s(1, a.Normal, -1, "防护罩", [ 100, 101, 102, 103, 104 ], !0, "1"), new s(2, a.Normal, -1, "战术鞋", [ 110, 111, 112, 113, 114, 115 ], !1, "2"), new s(3, a.Normal, -1, "火焰发射器", [ 120, 121, 122, 123, 124 ], !0, "3"), new s(4, a.Normal, -1, "生命药水", [ 130, 131, 132, 133, 134, 135 ], !1, "4"), new s(5, a.Normal, -1, "机械手套", [ 140, 141, 142, 143, 144, 145 ], !1, "5"), new s(6, a.Normal, -1, "能量剂", [ 150, 151, 152, 153, 154, 155 ], !1, "6"), new s(7, a.Normal, -1, "强化弹匣", [ 160, 161, 162, 163, 164, 165 ], !1, "7"), new s(8, a.Normal, -1, "分裂子弹", [ 170, 171, 172, 173, 174 ], !0, "8"), new s(9, a.Normal, -1, "磁铁", [ 180, 181, 182, 183, 184, 185 ], !1, "9"), new s(10, a.Normal, -1, "声波发射器", [ 190, 191, 192, 193, 194 ], !0, "10"), new s(11, a.Normal, -1, "瞄准镜", [ 200, 201, 202, 203, 204, 205 ], !1, "11"), new s(12, a.Normal, -1, "冰冻发射器", [ 210, 211, 212, 213, 214 ], !0, "12"), new s(13, a.Normal, -1, "回旋镖", [ 220, 221, 222, 223, 224 ], !0, "13"), new s(14, a.Normal, -1, "雷电发射器", [ 230, 231, 232, 233, 234 ], !0, "14"), new s(15, a.Normal, -1, "无人机", [ 240, 241, 242, 243, 244 ], !0, "15"), new s(16, a.Normal, -1, "生化龙", [ 250, 251, 252, 253, 254 ], !0, "16"), new s(17, a.Normal, -1, "聚变核心", [ 260, 261, 262, 263, 264 ], !1, "17"), new s(18, a.Normal, -1, "利刃冲刺", [ 270, 271, 272, 273, 274 ], !0, "18"), new s(19, a.Normal, -1, "闪电冲刺", [ 280, 281, 282, 283, 284 ], !0, "19"), new s(20, a.Normal, -1, "火焰冲刺", [ 290, 291, 292, 293, 294 ], !0, "20"), new s(21, a.Normal, -1, "惩戒短刀", [ 300, 301, 302, 303, 304 ], !0, "21"), new s(22, a.Normal, -1, "火药发射器", [ 310, 311, 312, 313, 314 ], !0, "22"), new s(23, a.Normal, -1, "噪音扩散器", [ 320, 321, 322, 323, 324, 325 ], !1, "23") ];
e.skills = [ new l(100, 1, 1, i.Other, "防护罩", "吸收一次伤害，失效后<color=#ffffff>90秒</color>重新生成。", "", "1", 0, 0, 0, 90, 0, "Prefabs/Skill/Group_XinYangShouHu/XinYangShouHu", null, 1), new l(101, 2, 1, i.Other, "防护增强", "拥有<color=#ffffff>防护服</color>时，换弹速度及移动速度<color=#ffffff>+20%</color>。", "", "1", 0, 15, 0, 0, 0, "Prefabs/Skill/Group_XinYangShouHu/ShenZhiZhuFu", null, 1), new l(102, 3, 1, i.Other, "防护加速", "<color=#ffffff>防护服</color>失效后<color=#ffffff>70秒</color>重新生成。", "", "1", 0, 0, 0, 70, 0, "Prefabs/Skill/Group_XinYangShouHu/ShenShengShouHu", null, 1), new l(103, 4, 1, i.Lightning, "防护冲击", "拥有<color=#ffffff>防护服</color>时，每秒释放闪电攻击1名敌人，造成<color=#ffffff>20</color>点伤害。", "", "1", 0, 20, 0, 1, 0, "Prefabs/Skill/Group_XinYangShouHu/ShenShengChongJi", null, 1), new l(104, 5, 1, i.Other, "防护加速2", "<color=#ffffff>防护服</color>失效后<color=#ffffff>60秒</color>重新生成。", "", "1", 0, 0, 0, 60, 0, "Prefabs/Skill/Group_XinYangShouHu/ShenShengShouHu", null, 1), new l(110, 1, 2, i.Other, "战术鞋", "移动速度<color=#ffffff>+15%</color>", "", "2", 0, 0, 0, 5, 0, "", [ new r(o.PlayerSpeedUpPercent, 15) ]), new l(111, 2, 2, i.Other, "极速燃烧", "移动速度<color=#ffffff>+10%</color>\n奔跑时给予附近敌人<color=#ffffff>燃烧</color>效果，角色移动越快频率越快。", "", "2", 0, 10, 0, 0, 0, "Prefabs/Skill/Group_JiZou/ChiLieZhiYan", [ new r(o.PlayerSpeedUpPercent, 10) ], 1), new l(112, 3, 2, i.Other, "跑动射击", "移动速度<color=#ffffff>+10%</color>\n换弹速度<color=#ffffff>+10%</color>", "", "2", 0, 22, 0, 1, 0, "", [ new r(o.PlayerSpeedUpPercent, 10), new r(o.BulletCDUpPercent, 10) ], 1), new l(113, 4, 2, i.Other, "战术鞋2", "移动速度<color=#ffffff>+10%</color>\n射速<color=#ffffff>+5%</color>", "", "2", 0, 0, 0, 5, 0, "", [ new r(o.PlayerSpeedUpPercent, 10), new r(o.BulletIntervelUpPercent, 5) ], 1), new l(114, 5, 2, i.Other, "跑动精通", "每<color=#ffffff>10</color>秒增加<color=#ffffff>10%</color>子弹伤害及移动速度（上限<color=#ffffff>40%</color>），角色受击后效果重置。", "", "2", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_JiZou/YiQiFengFa", null, 1), new l(115, 6, 2, i.Other, "战术鞋3", "移动速度<color=#ffffff>+10%</color>\n射速<color=#ffffff>+5%</color>", "", "2", 0, 0, 0, 5, 0, "", [ new r(o.PlayerSpeedUpPercent, 10), new r(o.BulletIntervelUpPercent, 5) ], 1), new l(120, 1, 3, i.Other, "火焰发射器", "发射的子弹有<color=#ffffff>50%</color>几率给予敌人<color=#ffffff>燃烧</color>效果，每秒造成<color=#ffffff>3</color>点伤害。", "", "3", 0, 0, 0, 5, 0, "Prefabs/Skill/Group_HuoYanFuMo/HuoYanFuMo", null, 1), new l(121, 2, 3, i.Other, "烈焰精通", "燃烧造成的伤害增加<color=#ffffff>15%</color>", "", "3", 0, 22, 0, 1, 0, "", [ new r(o.BulletBurnDamageUpPercent, 15) ], 1), new l(122, 3, 3, i.Other, "怒火冲击", "每第5次射击，同时发射一个<color=#ffffff>火球</color>造成<color=#ffffff>25</color>点伤害。火球造成范围<color=#ffffff>燃烧</color>效果，每秒造成<color=#ffffff>3</color>点伤害。", "", "3", 0, 25, 0, 0, 0, "Prefabs/Skill/Group_HuoYanFuMo/HuoYanXinXing", null, 1), new l(123, 4, 3, i.Other, "烈焰精通2", "燃烧造成的伤害增加<color=#ffffff>15%</color>", "", "3", 0, 22, 0, 1, 0, "", [ new r(o.BulletBurnDamageUpPercent, 15) ], 1), new l(124, 5, 3, i.Other, "燃烧契约", "敌人产生<color=#ffffff>燃烧</color>伤害时，有<color=#ffffff>0.05%</color>几率恢复<color=#ffffff>1</color>点血量。", "", "3", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_HuoYanFuMo/NuanLiu", null, 1), new l(130, 1, 4, i.Other, "生命药水", "最大血量<color=#ffffff>+1</color>", "", "4", 0, 0, 0, 5, 0, "", [ new r(o.PlayerMaxHealthUp, 1) ]), new l(131, 2, 4, i.Other, "暴怒", "受伤时，子弹伤害及射速<color=#ffffff>+50%</color>持续<color=#ffffff>15</color>秒", "", "4", 0, 25, 0, 0, 0, "Prefabs/Skill/Group_ShengMingLi/BaoNu", null, 1), new l(132, 3, 4, i.Other, "极巨化", "最大血量<color=#ffffff>+2</color> \n角色体积<color=#ffffff>+25%</color> 移动速度<color=#ff0000>-15%</color>", "", "4", 0, 22, 0, 1, 0, "", [ new r(o.PlayerMaxHealthUp, 2), new r(o.PlayerScaleUp, 30), new r(o.PlayerSpeedUpPercent, -15) ], 1), new l(133, 4, 4, i.Other, "生命药水2", "最大血量<color=#ffffff>+1</color>", "", "4", 0, 0, 0, 5, 0, "", [ new r(o.PlayerMaxHealthUp, 1) ]), new l(134, 5, 4, i.Other, "快速愈合", "每<color=#ffffff>90</color>秒恢复<color=#ffffff>1</color>点血量", "", "4", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_ShengMingLi/ZaiSheng", null, 1), new l(135, 6, 4, i.Other, "生命药水3", "最大血量<color=#ffffff>+1</color>", "", "4", 0, 0, 0, 5, 0, "", [ new r(o.PlayerMaxHealthUp, 1) ]), new l(140, 1, 5, i.Other, "机械手套", "子弹基础伤害<color=#ffffff>+25%</color> \n击退<color=#ffffff>+10%</color>", "", "5", 0, 0, 0, 5, 0, "", [ new r(o.BulletDamageUpPercent, 25), new r(o.BulletHitBackUpPercent, 10) ]), new l(141, 2, 5, i.Bullet, "子弹碎片", "敌人死亡时向周围发射<color=#ffffff>3</color>发子弹，每发子弹造成<color=#ffffff>5%</color>伤害。", "", "5", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_QiangLiSheJi/SuiPianBingFa", null, 3), new l(142, 3, 5, i.Other, "大号子弹", "子弹基础伤害<color=#ffffff>+25%</color> \n子弹大小<color=#ffffff>+20%</color> 射速<color=#ff0000>-20%</color>", "", "5", 0, 0, 0, 1, 0, "", [ new r(o.BulletDamageUpPercent, 25), new r(o.BulletScaleUpPercent, 20), new r(o.BulletIntervelUpPercent, -20) ], 1), new l(143, 4, 5, i.Other, "机械手套2", "子弹基础伤害<color=#ffffff>+20%</color> \n击退<color=#ffffff>+10%</color>", "", "5", 0, 0, 0, 5, 0, "", [ new r(o.BulletDamageUpPercent, 20), new r(o.BulletHitBackUpPercent, 10) ]), new l(144, 5, 5, i.Other, "致命一击", "子弹基础伤害<color=#ffffff>+10%</color> \n穿透<color=#ffffff>+1</color> 子弹将穿透死亡的敌人。", "", "5", 0, 0, 0, 0, 0, "", [ new r(o.BulletDamageUpPercent, 10), new r(o.BulletHitCountUp, 1) ], 1), new l(145, 6, 5, i.Other, "机械手套3", "子弹基础伤害<color=#ffffff>+10%</color> \n子弹大小<color=#ffffff>+10%</color>", "", "5", 0, 0, 0, 5, 0, "", [ new r(o.BulletDamageUpPercent, 10), new r(o.BulletScaleUpPercent, 10) ]), new l(150, 1, 6, i.Other, "能量剂", "射速<color=#ffffff>+20%</color>", "", "6", 0, 0, 0, 5, 0, "", [ new r(o.BulletIntervelUpPercent, 20) ]), new l(151, 2, 6, i.Other, "能量子弹", "射速<color=#ffffff>+15%</color> \n弹道速度<color=#ffffff>+15%</color>", "", "6", 0, 0, 0, 0, 0, "", [ new r(o.BulletIntervelUpPercent, 10), new r(o.BulletSpeedUpPercent, 10) ], 3), new l(152, 3, 6, i.Other, "弹力子弹", "子弹弹射<color=#ffffff>+1</color> \n射速<color=#ffffff>+10%</color> 子弹总伤害<color=#ff0000>-10%</color>", "", "6", 0, 0, 0, 1, 0, "", [ new r(o.BulletBounceUp, 1), new r(o.BulletIntervelUpPercent, 10), new r(o.BulletDamageDownPercent, 10, 0, !1, !0) ], 1), new l(153, 4, 6, i.Other, "能量子弹2", "弹匣容量<color=#ffffff>+1</color> \n弹道速度<color=#ffffff>+10%</color>", "", "6", 0, 0, 0, 0, 0, "", [ new r(o.BulletCapacityUp, 1), new r(o.BulletSpeedUpPercent, 10) ], 3), new l(154, 5, 6, i.Other, "站立射击", "站立状态下射击，有<color=#ffffff>33%</color>几率不消耗子弹。", "", "6", 0, 0, 0, 0, 0, "", [ new r(o.PlayerStandFreeBulletUpPercent, 10) ], 1), new l(155, 6, 6, i.Other, "能量子弹3", "弹匣容量<color=#ffffff>+1</color> \n射速<color=#ffffff>+10%</color>", "", "6", 0, 0, 0, 0, 0, "", [ new r(o.BulletCapacityUp, 1), new r(o.BulletIntervelUpPercent, 5) ], 3), new l(160, 1, 7, i.Other, "强化弹匣", "换弹速度<color=#ffffff>+15%</color> \n射速<color=#ffffff>+5%</color>", "", "7", 0, 0, 0, 5, 0, "", [ new r(o.BulletCDUpPercent, 15), new r(o.BulletIntervelUpPercent, 5) ]), new l(161, 2, 7, i.Other, "枪械改装", "换弹速度<color=#ffffff>+5%</color> \n弹匣容量<color=#ffffff>+1</color>", "", "7", 0, 0, 0, 0, 0, "", [ new r(o.BulletCDUpPercent, 5), new r(o.BulletCapacityUp, 1) ], 3), new l(162, 3, 7, i.Other, "弹药改良", "换弹速度<color=#ffffff>+5%</color> \n更换弹匣后<color=#ffffff>1</color>秒内，子弹伤害提升<color=#ffffff>20%</color>。", "", "7", 0, 0, 0, 1, 0, "Prefabs/Skill/Group_KuaiSuHuanDan/HuanRanYiXin", [ new r(o.BulletCDUpPercent, 5) ], 1), new l(163, 4, 7, i.Other, "枪械改装2", "换弹速度<color=#ffffff>+5%</color> \n弹匣容量<color=#ffffff>+1</color>", "", "7", 0, 0, 0, 0, 0, "", [ new r(o.BulletCDUpPercent, 5), new r(o.BulletCapacityUp, 1) ], 3), new l(164, 5, 7, i.Other, "幽灵子弹", "每击杀一名敌人，换弹速度提升<color=#ffffff>5%</color>。换弹后效果重置。", "", "7", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_KuaiSuHuanDan/QiaoHunDanJia", null, 1), new l(165, 6, 7, i.Other, "枪械改装3", "换弹速度<color=#ffffff>+10%</color> \n射速<color=#ffffff>+5%</color>", "", "7", 0, 0, 0, 0, 0, "", [ new r(o.BulletCDUpPercent, 5), new r(o.BulletIntervelUpPercent, 5) ], 3), new l(170, 1, 8, i.Other, "分裂子弹", "每发子弹数量<color=#ffffff>+1</color> \n子弹扩散<color=#ffffff>+5</color> 子弹总伤害<color=#ff0000>-10%</color>", "", "8", 0, 0, 0, 5, 0, "", [ new r(o.BulletNumUp, 1), new r(o.BulletAngleUp, 3), new r(o.BulletDamageDownPercent, 10, 0, !1, !0) ]), new l(171, 2, 8, i.Bullet, "枪舞", "射出弹匣最后一发子弹时，以自身为圆心额外发射<color=#ffffff>10</color>发子弹，造成<color=#ffffff>10%</color>伤害。", "", "8", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_ShuangFa/XieMu", null, 3), new l(172, 3, 8, i.Other, "反向子弹", "从背后额外射出一发子弹。", "", "8", 0, 0, 0, 1, 0, "", [ new r(o.BulletBackNumUp, 1) ], 1), new l(173, 4, 8, i.Other, "分裂子弹2", "每发子弹数量<color=#ffffff>+1</color>", "", "8", 0, 0, 0, 5, 0, "", [ new r(o.BulletNumUp, 1) ]), new l(174, 5, 8, i.Other, "枪林弹雨", "激活<color=#ffffff>自动射击</color> \n子弹扩散<color=#ffffff>+5</color> 子弹总伤害<color=#ff0000>-15%</color> 基础子弹数量<color=#ffffff>翻倍</color>", "", "8", 0, 0, 0, 0, 0, "", [ new r(o.BulletAngleUp, 3), new r(o.BulletDamageDownPercent, 15, 0, !1, !0), new r(o.BulletBaseNumUpPercent, 100), new r(o.AutoFire, 1) ], 1), new l(180, 1, 9, i.Other, "磁铁", "拾取范围<color=#ffffff>+25%</color>", "", "9", 0, 0, 0, 5, 0, "", [ new r(o.PickRangeUpPercent, 25) ]), new l(181, 2, 9, i.Bullet, "磁力融合", "拾取范围<color=#ffffff>+15%</color> \n每拾取到经验时，有<color=#ffffff>+10%</color>几率装填一发子弹。", "", "9", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_CiChang/LingHunBuJi", [ new r(o.PickRangeUpPercent, 15) ], 3), new l(182, 3, 9, i.Other, "强力磁场", "拾取范围<color=#ffffff>+20%</color>", "", "9", 0, 0, 0, 1, 0, "", [ new r(o.PickRangeUpPercent, 20) ], 1), new l(183, 4, 9, i.Other, "强力磁场2", "拾取范围<color=#ffffff>+15%</color>", "", "9", 0, 0, 0, 1, 0, "", [ new r(o.PickRangeUpPercent, 15) ], 1), new l(184, 5, 9, i.Other, "磁力爆发", "拾取范围<color=#ffffff>+20%</color> \n每拾取到经验，移动速度增加<color=#ffffff>+30%</color>，持续<color=#ffffff>1</color>秒。", "", "9", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_CiChang/RongGuangHuanFa", [ new r(o.PickRangeUpPercent, 20) ], 1), new l(185, 6, 9, i.Other, "强力磁场3", "拾取范围<color=#ffffff>+10%</color>", "", "9", 0, 0, 0, 1, 0, "", [ new r(o.PickRangeUpPercent, 10) ], 1), new l(190, 1, 10, i.Other, "声波发射器", "声波范围<color=#ffffff>+25%</color> \n每<color=#ffffff>2</color>秒对声波范围内敌人造成<color=#ffffff>10</color>点伤害。", "", "10", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_NuMou/NuMou", [ new r(o.PlayerVisionUpPercent, 25) ]), new l(191, 2, 10, i.Other, "共振", "声波范围<color=#ffffff>+15%</color> \n声波附带<color=#ffffff>子弹特效</color>", "", "10", 0, 0, 0, 1, 0, "", [ new r(o.PlayerVisionUpPercent, 15) ], 1), new l(192, 3, 10, i.Bullet, "脉冲", "声波范围<color=#ffffff>+15%</color> \n声波的<color=#ffffff>伤害翻倍</color>。", "", "10", 0, 0, 0, 0, 0, "", [ new r(o.PlayerVisionUpPercent, 15) ], 3), new l(193, 4, 10, i.Other, "共振2", "声波范围<color=#ffffff>+20%</color>", "", "10", 0, 0, 0, 1, 0, "", [ new r(o.PlayerVisionUpPercent, 15) ], 1), new l(194, 5, 10, i.Other, "超频", "声波范围<color=#ff0000>-16%</color> \n声波的攻击频率<color=#ffffff>翻倍</color>。", "", "10", 0, 0, 0, 0, 0, "", [ new r(o.PlayerVisionUpPercent, -16) ], 1), new l(200, 1, 11, i.Other, "瞄准镜", "弹道速度<color=#ffffff>+25%</color> \n扩散<color=#ff0000>-5</color>", "", "11", 0, 0, 0, 0, 0, "", [ new r(o.BulletSpeedUpPercent, 20), new r(o.BulletAngleUp, -3) ]), new l(201, 2, 11, i.Other, "狙击", "弹道速度<color=#ffffff>+15%</color> \n子弹伤害<color=#ffffff>+10%</color>", "", "11", 0, 0, 0, 1, 0, "", [ new r(o.BulletSpeedUpPercent, 10), new r(o.BulletDamageUpPercent, 10) ], 1), new l(202, 3, 11, i.Other, "火力穿透", "弹道速度<color=#ffffff>+10%</color> \n穿透<color=#ffffff>+1</color>", "", "11", 0, 0, 0, 0, 0, "", [ new r(o.BulletSpeedUpPercent, 5), new r(o.BulletHitCountUp, 1) ], 3), new l(203, 4, 11, i.Other, "狙击2", "弹道速度<color=#ffffff>+10%</color> \n子弹伤害<color=#ffffff>+10%</color>", "", "11", 0, 0, 0, 1, 0, "", [ new r(o.BulletSpeedUpPercent, 5), new r(o.BulletDamageUpPercent, 10) ], 1), new l(204, 5, 11, i.Other, "处决", "弹道速度<color=#ffffff>+10%</color> \n血量低于<color=#ffffff>15%</color>的敌人将被处决。", "", "11", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_MiaoZhun/ZhanSha", [ new r(o.BulletSpeedUpPercent, 5) ], 1), new l(205, 6, 11, i.Other, "火力穿透2", "子弹基础伤害<color=#ffffff>+10%</color> \n穿透<color=#ffffff>+1</color>", "", "11", 0, 0, 0, 0, 0, "", [ new r(o.BulletDamageUpPercent, 10), new r(o.BulletHitCountUp, 1) ], 3), new l(210, 1, 12, i.Other, "冰冻发射器", "子弹有<color=#ffffff>30%</color>几率造成<color=#ffffff>冰冻</color>，持续<color=#ffffff>1.5</color>秒。BOSS持续<color=#ffffff>0.3</color>秒", "", "12", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_HanBingFoMo/HanBingFoMo", null), new l(211, 2, 12, i.Other, "致命冰冻", "当敌人被<color=#ffffff>冰冻</color>时会有几率失去<color=#ffffff>15%</color>的最大血量，BOSS失去<color=#ffffff>1%</color>。", "", "12", 0, 0, 0, 0, 0, "", null, 3), new l(212, 3, 12, i.Other, "寒冰子弹", "发射弹匣最后一发子弹时，还可以发射<color=#ffffff>3</color>发额外的冰片，几率造成<color=#ffffff>冰冻</color>。", "", "12", 0, 0, 0, 1, 0, "Prefabs/Skill/Group_HanBingFoMo/HanBingSuiPian", null, 3), new l(213, 4, 12, i.Other, "寒冰碎片", "受到<color=#ffffff>冰冻</color>的敌人被消灭后会爆炸，对附近的敌人造成最大血量<color=#ffffff>10%</color>的伤害。", "", "12", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_HanBingFoMo/BingFengBao", null, 1), new l(214, 5, 12, i.Other, "冰冻几率提升10%", "<color=#ffffff>冰冻</color>几率提升<color=#ffffff>10%</color>。", "", "12", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_HanBingFoMo/HanBingFoMo2", null, 1), new l(220, 1, 13, i.Summon, "回旋镖", "召唤一把<color=#ffffff>回旋镖</color>搜寻附近的敌人。伤害与子弹伤害相同", "", "13", 0, 0, 0, 5, 0, "Prefabs/Skill/Group_TongLingBiShou/TongLingBiShou", []), new l(221, 2, 13, i.Summon, "回旋刀", "召唤一把<color=#ffffff>回旋刀</color>伴你左右。伤害与子弹伤害相同", "", "13", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_TongLingBiShou/TongLingLianDao", null, 3), new l(222, 3, 13, i.Other, "刀人合一", "召唤伤害<color=#ffffff>+30%</color>。", "", "13", 0, 0, 0, 1, 0, "", [ new r(o.SummonDamageUpPercent, 30) ], 1), new l(223, 4, 13, i.Other, "刀人合一2", "召唤伤害<color=#ffffff>+10%</color> \n召唤物攻击速度<color=#ffffff>+10%</color>", "", "13", 0, 0, 0, 1, 0, "", [ new r(o.SummonDamageUpPercent, 10), new r(o.SummonCDUpPercent, 10) ], 1), new l(224, 5, 13, i.Summon, "双镖", "召唤第二把<color=#ffffff>回旋镖</color>。", "", "13", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_TongLingBiShou/TongLingBiShou", [], 1), new l(230, 1, 14, i.Lightning, "雷电发射器", "每3次射击，召唤<color=#ffffff>闪电</color>造成<color=#ffffff>18</color>点范围伤害。", "", "14", 0, 18, 0, 0, 0, "Prefabs/Skill/Group_LeiDianZhiPei/LeiDianZhiPei"), new l(231, 2, 14, i.Other, "雷电充能", "当<color=#ffffff>闪电</color>击中敌人，有<color=#ffffff>20%</color>几率装填<color=#ffffff>3</color>发子弹。", "", "14", 0, 0, 0, 1, 0, "Prefabs/Skill/Group_LeiDianZhiPei/DianLiChongNeng", null, 3), new l(232, 3, 14, i.Lightning, "雷电支援", "周期性召唤<color=#ffffff>闪电</color>，随机攻击周围2名敌人。", "", "14", 0, 18, 0, 6, 0, "Prefabs/Skill/Group_LeiDianZhiPei/HuanLeiChong", null, 3), new l(233, 4, 14, i.Other, "雷电精通", "所有<color=#ffffff>闪电+4</color>伤害 \n<color=#ffffff>+35%</color>伤害范围", "", "14", 0, 0, 0, 0, 0, "", [ new r(o.BulletLightningDamageUp, 4), new r(o.BulletLightningScaleUpPercent, 10) ], 1), new l(234, 5, 14, i.Other, "雷电精通2", "所有<color=#ffffff>闪电+4</color>伤害 \n<color=#ffffff>+40%</color>伤害范围", "", "14", 0, 0, 0, 0, 0, "", [ new r(o.BulletLightningDamageUp, 4), new r(o.BulletLightningScaleUpPercent, 10) ], 1), new l(240, 1, 15, i.Summon, "无人机", "召唤一架<color=#ffffff>无人机</color>，它将发射一发造成<color=#ffffff>22</color>伤害的带有穿透效果的子弹。", "", "15", 0, 0, 0, 3.3, 0, "Prefabs/Skill/Group_YouLingHuBan/YouLingHuBan", []), new l(241, 2, 15, i.Other, "狂暴飞行", "召唤物攻击速度<color=#ffffff>+40%</color>", "", "15", 0, 0, 0, 0, 0, "", [ new r(o.SummonCDUpPercent, 40) ], 0), new l(242, 3, 15, i.Other, "人机合一", "召唤物伤害<color=#ffffff>+10%</color> \n召唤物攻击速度<color=#ffffff>+10%</color> <color=#ffffff>无人机</color>向你瞄准镜的位置进行射击", "", "15", 0, 0, 0, 1, 0, "", [ new r(o.SummonDamageUpPercent, 10), new r(o.SummonCDUpPercent, 10) ], 1), new l(243, 4, 15, i.Summon, "飞行咆哮", "召唤物伤害<color=#ffffff>+10%</color> \n<color=#ffffff>无人机</color>攻击速度<color=#ffffff>+200%</color>", "", "15", 0, 0, 0, 0, 0, "Prefabs/Skill/SummonFeatureSkill", [ new r(o.SummonDamageUpPercent, 10) ], 1, null, null, null, {
summonId: 3,
interval: 0,
features: [ new r(o.SummonCDUpPercent, 200) ]
}), new l(244, 5, 15, i.Other, "人机合一2", "召唤物伤害<color=#ffffff>+10%</color> \n召唤物攻击速度<color=#ffffff>+5%</color> <color=#ffffff>无人机</color>向你瞄准镜的位置进行射击", "", "15", 0, 0, 0, 1, 0, "", [ new r(o.SummonDamageUpPercent, 10), new r(o.SummonCDUpPercent, 5) ], 1), new l(250, 1, 16, i.Summon, "生化龙", "唤醒龙卵，将会在<color=#ffffff>2</color>分钟后孵化成为一条<color=#ffffff>龙</color>。", "", "16", 0, 0, 0, 3.5, 0, "Prefabs/Skill/Group_LongLuan/LongLuan", []), new l(251, 2, 16, i.Other, "生化龙重击", "<color=#ffffff>龙</color>每<color=#ffffff>60</color>秒增加<color=#ffffff>8</color>攻击伤害。该技能在<color=#ffffff>龙</color>尚未孵化时亦生效。", "", "16", 0, 0, 0, 0, 0, "Prefabs/Skill/SummonFeatureSkill", [], 0, null, null, null, {
summonId: 4,
interval: 60,
features: [ new r(o.SummonDamageUp, 8) ]
}), new l(252, 3, 16, i.Other, "驯龙大师", "<color=#ffffff>龙</color>每<color=#ffffff>60</color>秒增加<color=#ffffff>10%</color>攻击速度。该技能在<color=#ffffff>龙</color>尚未孵化时亦生效。", "", "16", 0, 0, 0, 1, 0, "Prefabs/Skill/SummonFeatureSkill", [], 1, null, null, null, {
summonId: 4,
interval: 60,
features: [ new r(o.SummonCDUpPercent, 10) ]
}), new l(253, 4, 16, i.Summon, "生化龙重击2", "<color=#ffffff>龙</color>子弹数量<color=#ffffff>+1</color>", "", "16", 0, 0, 0, 0, 0, "Prefabs/Skill/SummonFeatureSkill", [], 1, null, null, null, {
summonId: 4,
interval: 0,
features: [ new r(o.SummonBulletNumUp, 1) ]
}), new l(254, 5, 16, i.Summon, "龙之狂怒", "子弹将造成额外伤害，额外伤害等同于<color=#ffffff>龙</color>伤害的<color=#ffffff>10%</color>", "", "16", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_LongLuan/LongZhiLuoYin", [], 1), new l(260, 1, 17, i.Summon, "聚变核心", '召唤一个<color=#ffffff>聚变核心</color>，子弹通过后可增幅<color=#ffffff>30%</color>伤害和大小，该能力受"召唤物伤害"影响。', "", "17", 0, 0, 0, 5, 0, "Prefabs/Skill/Group_MoJing/MoJing", []), new l(261, 2, 17, i.Other, "反射聚变", "子弹通过<color=#ffffff>聚变核心</color>后弹射<color=#ffffff>+1</color>", "", "17", 0, 0, 0, 1, 0, "Prefabs/Skill/Group_MoJing/LengJing", [], 1, null, null, null, {
summonId: 5
}), new l(262, 3, 17, i.Other, "燃烧聚变", "子弹通过<color=#ffffff>聚变核心</color>后可<color=#ffffff>点燃</color>敌人", "", "17", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_MoJing/YanJing", [], 0, null, null, null, {
summonId: 5
}), new l(263, 4, 17, i.Summon, "反射聚变2", "子弹通过<color=#ffffff>聚变核心</color>后弹射<color=#ffffff>+1</color>", "", "17", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_MoJing/LengJing", [], 1, null, null, null, {
summonId: 5
}), new l(264, 5, 17, i.Summon, "聚焦", "所有<color=#ffffff>聚变核心</color>的效果翻倍，但<color=#ffffff>聚变核心</color>的大小只有原来一半", "", "17", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_MoJing/JuJiao", [], 1, null, null, null, {
summonId: 5
}), new l(270, 2, 18, i.Dash, "利刃冲刺", "携带利刃冲刺，对敌人有<color=#ffffff>击退</color>效果，并造成<color=#ffffff>20</color>点伤害。", "", "18", 0, 20, 0, 0, 0, "Prefabs/Skill/Group_LiRenChongCi/LiRenChongCi", [], 1), new l(271, 3, 18, i.Dash, "利刃旋转", "冲刺结束后旋转手上的利刃，造成<color=#ffffff>30</color>点范围伤害，并有<color=#ffffff>击退</color>效果。", "", "18", 0, 30, 0, 0, .5, "Prefabs/Skill/Group_LiRenChongCi/LiRenXuanZhuan", [], 1), new l(272, 1, 18, i.Dash, "二次冲刺", "冲刺次数上限达到<color=#ffffff>2</color>次。", "", "18", 0, 10, 0, 0, 0, "", [ new r(o.DashCountUp, 1) ]), new l(273, 4, 18, i.Dash, "利刃旋转2", "利刃攻击范围提升<color=#ffffff>2</color>倍，造成<color=#ffffff>120</color>点范围伤害。", "", "18", 0, 120, 0, 0, .5, "Prefabs/Skill/Group_LiRenChongCi/LiRenXuanZhuan2", [], 1), new l(274, 5, 18, i.Dash, "三次冲刺", "冲刺次数上限达到<color=#ffffff>3</color>次", "", "18", 0, 3, 0, 0, 0, "", [ new r(o.DashCountUp, 1) ], 1), new l(280, 1, 19, i.Dash, "闪电冲刺", "冲刺路径爆发闪电，并造成<color=#ffffff>25</color>点伤害，冲刺后无敌时间增加<color=#ffffff>0.8</color>秒。", "", "19", 0, 25, 0, 0, 0, "Prefabs/Skill/Group_ShanDianChongCi/ShanDianChongCi", [ new r(o.DashWuDiTimeUp, .5) ]), new l(281, 2, 19, i.Dash, "麻痹冲刺", "冲刺的闪电对敌人造成<color=#ffffff>麻痹</color>效果，持续<color=#ffffff>3</color>秒。", "", "19", 0, 20, 0, 0, 0, "", [], 1), new l(282, 3, 19, i.Dash, "漂移冲刺", "冲刺后<color=#ffffff>5</color>秒内，移动速度增加<color=#ffffff>50%</color>。", "", "19", 0, 5, 0, 0, .5, "Prefabs/Skill/Group_ShanDianChongCi/PiaoYiChongCi", [], 1), new l(283, 4, 19, i.Dash, "雷霆冲刺", "冲刺时在附近的敌人脚下放置一个闪电球，造成<color=#ffffff>30</color>点连续范围伤害，并附带<color=#ffffff>麻痹</color>效果。", "", "19", 0, 30, 0, 0, 0, "Prefabs/Skill/Group_ShanDianChongCi/LeiTingChongCi", [], 1), new l(284, 5, 19, i.Dash, "雷霆冲刺2", "闪电球体积提升<color=#ffffff>3倍</color>，造成<color=#ffffff>66</color>点持续范围伤害。", "", "19", 0, 66, 0, 0, 0, "Prefabs/Skill/Group_ShanDianChongCi/LeiTingChongCi2", [], 1), new l(290, 1, 20, i.Dash, "火焰冲刺", "冲刺路径燃烧火焰，对敌人造成<color=#ffffff>燃烧</color>效果。", "", "20", 0, 15, 0, 0, 0, "Prefabs/Skill/Group_HuoYanChongCi/HuoYanChongCi", []), new l(291, 2, 20, i.Dash, "烈焰冲刺", "延长冲刺火焰持续时间，冲刺时长增加<color=#ffffff>50%</color>。", "", "20", 0, 0, 0, 0, 0, "", [ new r(o.DashTimeUpPercent, 50) ], 1), new l(292, 3, 20, i.Dash, "爆裂冲刺", "冲刺过程中点燃敌人时触发<color=#ffffff>爆炸</color>。", "", "20", 0, 35, 0, 0, .5, "Prefabs/Skill/Group_HuoYanChongCi/BaoLieChongCi", [], 1), new l(293, 4, 20, i.Lightning, "怒火冲击", "冲刺火焰造成伤害的同时，增加一次闪电伤害。", "", "20", 0, 20, 0, 0, 0, "Prefabs/Skill/Group_HuoYanChongCi/NuHuoChongJi", [], 1), new l(294, 5, 20, i.Lightning, "怒火冲击2", "冲刺造成的火焰和闪电伤害提升<color=#ffffff>100%</color>", "", "20", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_HuoYanChongCi/NuHuoChongJi2", [], 1), new l(300, 1, 21, i.Other, "惩戒短刀", "射出最后一发子弹时，将会<color=#ffffff>惩戒</color>附近的敌人，造成<color=#ffffff>20</color>点伤害。", "", "20", 0, 20, 160, 0, 0, "Prefabs/Skill/Group_ShengDao/ShengDao", []), new l(301, 3, 21, i.Other, "圣心", "人物每<color=#ffffff>1</color>颗心，<color=#ffffff>惩戒</color>将造成额外<color=#ffffff>6</color>点伤害。", "", "20", 0, 35, 0, 0, .5, "Prefabs/Skill/Group_ShengDao/ShengXin", [], 1), new l(302, 2, 21, i.Other, "圣灵", "每用<color=#ffffff>惩戒</color>击杀<color=#ffffff>500</color>个敌人，将增加<color=#ffffff>1</color>血量上限，最多可获得<color=#ffffff>2</color>个。", "", "20", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_ShengDao/ShengLing", [], 1), new l(303, 3, 21, i.Other, "圣心2", "<color=#ffffff>惩戒</color>伤害增加<color=#ffffff>5</color>点伤害。", "", "20", 0, 35, 0, 0, .5, "Prefabs/Skill/Group_ShengDao/ShengXin2", [], 1), new l(304, 4, 21, i.Other, "圣恩", "每用<color=#ffffff>惩戒</color>击杀<color=#ffffff>500</color>个敌人，将恢复<color=#ffffff>1</color>点血量，最多可恢复<color=#ffffff>2</color>个。", "", "20", 0, 20, 0, 0, 0, "Prefabs/Skill/Group_ShengDao/ShengEn", [], 1), new l(310, 1, 22, i.Other, "火药发射器", "子弹有<color=#ffffff>30%</color>的几率附加<color=#ffffff>火药</color>，<color=#ffffff>火药</color>造成的伤害等同于<color=#ffffff>2</color>倍子弹伤害。", "", "20", 0, 20, 200, 0, 0, "Prefabs/Skill/Group_XieDao/XieDao", []), new l(311, 2, 22, i.Other, "厄运", "<color=#ffffff>火药</color>将延时<color=#ffffff>1</color>秒生效，但会造成额外<color=#ffffff>100%</color>的子弹伤害。", "", "20", 0, 0, 0, 0, 0, "Prefabs/Skill/Group_XieDao/EYun", [], 1), new l(312, 3, 22, i.Other, "凋零", "<color=#ffffff>火药</color>将造成额外<color=#ffffff>30%</color>的伤害。", "", "20", 0, 35, 0, 0, .5, "Prefabs/Skill/Group_XieDao/DiaoLing", [], 1), new l(313, 4, 22, i.Other, "凋零2", "<color=#ffffff>火药</color>几率增加<color=#ffffff>10%</color>。", "", "20", 0, 35, 0, 0, .5, "Prefabs/Skill/Group_XieDao/DiaoLing2", [], 1), new l(314, 5, 22, i.Other, "业力", "<color=#ffffff>火药</color>每击杀<color=#ffffff>10</color>个敌人，将会增加<color=#ffffff>1%</color>的子弹伤害, 上限<color=#ffffff>30%</color>。", "", "20", 0, 20, 0, 0, 0, "Prefabs/Skill/Group_XieDao/YeLi", [], 1), new l(320, 1, 23, i.Other, "", "怪物经验<color=#ffffff>+20%</color>", "", "21", 0, 0, 0, 0, 0, "", [ new r(o.MonsterSpawnExpUpPercent, 20) ]), new l(321, 2, 23, i.Other, "", "刷怪加快<color=#ffffff>+10%</color> \n怪物血量<color=#ff0000>+10%</color>", "", "21", 0, 0, 0, 1, 0, "", [ new r(o.MonsterSpawnIntervelUpPercent, 10), new r(o.MonsterSpawnHealthUpPercent, 10) ], 1), new l(322, 3, 23, i.Other, "", "怪物经验<color=#ffffff>+10%</color> \n刷怪加快<color=#ffffff>+10%</color>", "", "21", 0, 0, 0, 0, 0, "", [ new r(o.MonsterSpawnExpUpPercent, 5), new r(o.MonsterSpawnIntervelUpPercent, 5) ], 3), new l(323, 4, 23, i.Other, "", "刷怪加快<color=#ffffff>+10%</color> \n怪物速度<color=#ff0000>+10%</color>", "", "21", 0, 0, 0, 1, 0, "", [ new r(o.MonsterSpawnIntervelUpPercent, 5), new r(o.MonsterSpawnSpeedUpPercent, 10) ], 1), new l(324, 5, 23, i.Other, "", "宝石狂欢时长<color=#ffffff>+10%</color> \n怪物血量<color=#ff0000>+10%</color>", "", "21", 0, 0, 0, 0, 0, "", [ new r(o.CrazyCoinTimeUpPercent, 10), new r(o.MonsterSpawnHealthUpPercent, 10) ], 1), new l(325, 6, 23, i.Other, "", "怪物经验<color=#ffffff>+10%</color> \n怪物速度<color=#ff0000>+10%</color>", "", "21", 0, 0, 0, 0, 0, "", [ new r(o.MonsterSpawnExpUpPercent, 10), new r(o.MonsterSpawnSpeedUpPercent, 10) ], 1), new l(501, 1, 1002, i.Other, "枪械大师", "子弹基础伤害<color=#ffffff>+15%</color> \n射速<color=#ffffff>+15%</color> \n换弹速度<color=#ffffff>+15%</color> \n弹匣容量<color=#ffffff>+1</color> \n穿透<color=#ffffff>+1</color>", "", "201", 0, 0, 0, 0, 0, "", [ new r(o.BulletDamageUpPercent, 15), new r(o.BulletIntervelUpPercent, 15), new r(o.BulletCDUpPercent, 15), new r(o.BulletCapacityUp, 1), new r(o.BulletHitCountUp, 1) ]), new l(502, 1, 1003, i.Other, "三重打击", "当<color=#ffffff>闪电</color>击中带有<color=#ffffff>燃烧</color>效果的敌人时，触发一次<color=#ffffff>爆炸</color>，造成<color=#ffffff>25</color>点范围伤害。", "", "202", 0, 25, 0, 0, 0, "Prefabs/Skill/Group_ChaoWu/ChaoZai", null), new l(503, 1, 1004, i.Other, "稳若磐石", "每发子弹数量<color=#ffffff>+2</color> \n射速<color=#ffffff>+20%</color> \n移动速度<color=#ff0000>-20%</color>", "", "203", 0, 0, 0, 0, 0, "", [ new r(o.BulletNumUp, 2), new r(o.BulletIntervelUpPercent, 20), new r(o.PlayerSpeedUpPercent, -20) ]), new l(504, 1, 1005, i.Other, "召唤大师", "召唤物伤害<color=#ffffff>+35%</color> \n召唤物攻击速度<color=#ffffff>+35%</color> \n子弹总伤害<color=#ff0000>-30%</color>", "", "204", 0, 0, 0, 0, 0, "", [ new r(o.SummonDamageUpPercent, 35), new r(o.SummonCDUpPercent, 35), new r(o.BulletDamageDownPercent, 30, 0, !1, !0) ]), new l(505, 1, 1006, i.Other, "弹匣大师", "换弹速度<color=#ffffff>+100%</color> \n子弹伤害<color=#ffffff>+30%</color> \n弹匣容量变成<color=#ff0000>1</color>", "", "205", 0, 0, 0, 0, 0, "", [ new r(o.BulletCDUpPercent, 70), new r(o.BulletDamageUpPercent, 25), new r(o.BulletMiniCapacity, -1) ]), new l(506, 1, 1007, i.Lightning, "冰火之歌", "当敌人同时附带<color=#ffffff>冰冻</color>跟<color=#ffffff>燃烧</color>效果时，每秒额外造成<color=#ffffff>6</color>点伤害。", "", "206", 0, 6, 0, 1, 0, "Prefabs/Skill/Group_ChaoWu/JiBingLieYan", null), new l(507, 1, 1008, i.Other, "火药蔓延", "当敌人死于<color=#ffffff>火药</color>，则会将<color=#ffffff>火药</color>扩散给附近敌人。", "", "207", 0, 0, 100, 0, 0, "Prefabs/Skill/Group_ChaoWu/SiWangWenYi", null), new l(510, 1, 1011, i.Other, "守护之心", "当<color=#ffffff>防护罩</color>失效时，每使用<color=#ffffff>惩戒</color>击杀敌人能减少<color=#ffffff>1</color>秒再生时间", "", "210", 0, 0, 100, 0, 0, "Prefabs/Skill/Group_ChaoWu/YiXinZhengDao", null), new l(600, 1, 600, i.Other, "快速成长", "经验获取<color=#00ff00>+30%</color>", "", "300", 0, 0, 0, 0, 0, "", [ new r(o.ExpUpPercent, 30) ], 1), new l(601, 1, 600, i.Other, "能力掌控", "下一个<color=#00ff00>技能</color>获得2倍效果", "", "301", 0, 0, 0, 0, 0, "Prefabs/Skill/Hero/XiaNa/ZhuanJia", [], 1), new l(602, 1, 600, i.Other, "突破", "换弹速度<color=#ffffff>+25%</color> \n射速<color=#ffffff>+25%</color> 声波范围<color=#ffffff>+40%</color>", "", "302", 0, 0, 0, 0, 0, "", [ new r(o.BulletCDUpPercent, 15), new r(o.BulletIntervelUpPercent, 15), new r(o.PlayerVisionUpPercent, 40) ], 1), new l(610, 1, 610, i.Other, "灼伤", "每当点燃敌人时，射速<color=#00ff00>+10%</color>，换弹将重置效果。", "", "303", 0, 0, 0, 0, 0, "Prefabs/Skill/Hero/SiJiaLi/ZhiMingZhuoShang", [], 1), new l(611, 1, 610, i.Other, "不灭之火", "<color=#00ff00>燃烧</color>的持续时间延长1倍", "", "304", 0, 0, 0, 0, 0, "", [ new r(o.BulletBurnTimeUpPercent, 100) ], 1), new l(612, 1, 610, i.Other, "极地燃烧", "子弹总伤害<color=#ff0000>-25%</color>\n燃烧伤害<color=#00ff00>+70%</color>", "", "305", 0, 0, 0, 0, 0, "", [ new r(o.BulletDamageUpPercent, -25), new r(o.BulletBurnDamageUpPercent, 70) ], 1), new l(620, 1, 620, i.Other, "召唤能手", "召唤物伤害<color=#00ff00>+35%</color>\n召唤物攻击速度<color=#00ff00>+35%</color>。", "", "307", 0, 0, 0, 0, 0, "", [ new r(o.SummonDamageUpPercent, 35), new r(o.SummonCDUpPercent, 35) ], 1), new l(621, 1, 620, i.Other, "加速前行", "击杀敌人后，移动速度<color=#00ff00>+30%</color>，持续时间<color=#00ff00>1</color>秒", "", "308", 0, 0, 0, 0, 0, "Prefabs/Skill/Hero/AiLiSi/SiWangJiaSu", [], 1), new l(622, 1, 620, i.Other, "双生骷髅", "召唤物伤害<color=#00ff00>+20%</color>\n击杀敌人后，发出一枚额外的骷髅子弹", "", "309", 0, 0, 0, 0, 0, "", [ new r(o.SummonDamageUpPercent, 20) ], 1), new l(630, 1, 630, i.Other, "闪电爆发", "每第4次闪电，将造成<color=#00ff00>双倍</color>伤害，并装填1发子弹。", "", "310", 0, 0, 0, 0, 0, "Prefabs/Skill/Hero/Wix/ShanDianBaoFa", [], 1), new l(631, 1, 630, i.Other, "闪电火花", "闪电会同时<color=#00ff00>点燃</color>敌人，造成每秒<color=#00ff00>3</color>点伤害。", "", "311", 0, 0, 0, 0, 0, "Prefabs/Skill/Hero/Wix/ShanDianHuoHua", [], 1), new l(632, 1, 630, i.Other, "雷电精通", "子弹总伤害<color=#ff0000>-25%</color>\n闪电伤害<color=#00ff00>+40%</color>", "", "312", 0, 0, 0, 0, 0, "", [ new r(o.BulletDamageUpPercent, -25), new r(o.BulletLightningDamageUpPercent, 40) ], 1), new l(640, 1, 640, i.Other, "冲刺换弹", "冲刺CD加快<color=#ff0000>+25%</color>\n冲刺结束后装满弹匣。", "", "313", 0, 0, 0, 0, 0, "Prefabs/Skill/Hero/B2/KuaiSuBaQiang", [ new r(o.DashCDUpPercent, 25) ], 1), new l(641, 1, 640, i.Other, "幻影强化", "召唤物伤害<color=#ff0000>+25%</color>\n幻影加快攻击<color=#ff0000>3</color>次。", "", "314", 0, 0, 0, 0, 0, "", [ new r(o.SummonDamageUpPercent, 25) ], 1), new l(642, 1, 640, i.Other, "幻影再生", "冲刺结束后留下幻影。", "", "315", 0, 0, 0, 0, 0, "", [], 1), new l(800, 1, 800, i.Other, "敏捷之书", "移动速度<color=#00ff00>+30%</color>\n最大血量<color=#ff0000>-1</color>", "", "400", 0, 0, 0, 0, 0, "", [ new r(o.PlayerSpeedUpPercent, 30), new r(o.PlayerMaxHealthUp, -1) ]), new l(801, 1, 800, i.Other, "元素之书", "子弹总伤害<color=#ff0000>-50%</color>\n<color=#00ff00>燃烧</color>、<color=#00ff00>闪电</color>和<color=#00ff00>冰冻</color>伤害增加<color=#00ff00>+35%</color>", "", "401", 0, 0, 0, 0, 0, "", [ new r(o.BulletDamageDownPercent, 50, 0, !1, !0), new r(o.BulletBurnDamageUpPercent, 35), new r(o.BulletLightningDamageUpPercent, 35), new r(o.BulletFreezeDamageUpPercent, 35) ]), new l(802, 1, 800, i.Other, "弹射之书", "子弹弹射<color=#00ff00>+2</color>; 子弹总伤害<color=#ff0000>-25%</color>\n最大血量<color=#ff0000>-1</color>", "", "402", 0, 0, 0, 0, 0, "", [ new r(o.BulletBounceUp, 2), new r(o.BulletDamageDownPercent, 30, 0, !1, !0), new r(o.PlayerMaxHealthUp, -1) ]), new l(803, 1, 800, i.Other, "召唤之书", "召唤物伤害<color=#00ff00>+50%</color>\n召唤物攻击速度<color=#00ff00>+50%</color>换弹速度<color=#ff0000>-50%</color>", "", "403", 0, 0, 0, 0, 0, "", [ new r(o.SummonDamageUpPercent, 50), new r(o.SummonCDUpPercent, 50), new r(o.BulletCDUpPercent, -50) ]), new l(804, 1, 800, i.Other, "力量之书", "子弹基础伤害<color=#00ff00>+50%</color>; 子弹大小<color=#00ff00>+50%</color>\n穿透<color=#00ff00>+1</color>; 射速<color=#ff0000>-25%</color>最大血量<color=#ff0000>-1</color>", "", "404", 0, 0, 0, 0, 0, "", [ new r(o.BulletDamageUpPercent, 50), new r(o.BulletScaleUpPercent, 50), new r(o.BulletHitCountUp, 1), new r(o.BulletIntervelUpPercent, -25), new r(o.PlayerMaxHealthUp, -1) ]), new l(805, 1, 800, i.Other, "狂热之书", "射速<color=#00ff00>+60%</color>; 扩散<color=#00ff00>+10</color>\n子弹总伤害<color=#ff0000>-50%</color>; 击退<color=#ff0000>-90%</color><color=#00ff00>3倍</color>弹匣上限", "", "405", 0, 0, 0, 0, 0, "", [ new r(o.BulletIntervelUpPercent, 60), new r(o.BulletAngleUp, 6), new r(o.BulletDamageDownPercent, 50, 0, !1, !0), new r(o.BulletHitBackUpPercent, -90), new r(o.BulletCapacityUpPercent, 200) ]) ];
e.superSkillDepence = [ new s(1002, a.Super, -1, "枪械大师", [ 124, 140 ], !0, "201"), new s(1003, a.Super, -1, "三重打击", [ 234, 130 ], !0, "202"), new s(1004, a.Super, -1, "稳若磐石", [ 174, 150 ], !0, "203"), new s(1005, a.Super, -1, "召唤大师", [ 254, 260 ], !0, "204"), new s(1006, a.Super, -1, "弹匣大师", [ 174, 160 ], !0, "205"), new s(1007, a.Super, -1, "冰火之歌", [ 214, 200 ], !0, "206"), new s(1008, a.Super, -1, "火药蔓延", [ 314, 110 ], !0, "207"), new s(1011, a.Super, -1, "守护之心", [ 304, 100 ], !0, "210") ];
e.heroBoxSkills = [ new s(600, a.Hero, 1, "艾达", [ 600, 601, 602 ], !0, "300"), new s(610, a.Hero, 2, "里昂", [ 610, 611, 612 ], !0, "303"), new s(620, a.Hero, 3, "爱丽丝", [ 620, 621, 622 ], !0, "307"), new s(630, a.Hero, 4, "威斯克", [ 630, 631, 632 ], !0, "310"), new s(640, a.Hero, 5, "代号:6B", [ 640, 641, 642 ], !0, "313") ];
e.bookGroupID = 800;
e.xinYangShouHuID = 100;
return e;
}();
n.SkillConfig = c;
cc._RF.pop();
}, {} ],
SkillContext: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b5a8aPsn7FGQrNHF1EBcASC", "SkillContext");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/EffectManager"), r = e("../../../Framework/Core/Resource/SoundsManager"), i = e("../../../Service/kl"), a = e("../../Config/Config"), l = e("../../Config/MonsterConfig"), s = e("../../Config/SkillConfig"), c = e("../Enemy"), u = e("../Entity"), p = e("../ItemContainer"), d = e("../LevelContext"), f = e("../Util"), h = e("./BaseSkill"), m = e("./EffectHandler"), w = e("./ISkill"), y = e("../../Messaging/MessageBroadcastReceiver"), g = e("../Buff/Buff"), v = e("./BaseBullet"), S = e("../HitMask"), M = e("../../Config/GameModel"), k = e("../Buff/Buff_Chaos"), C = e("../Buff/Buff_Twine"), P = function() {
function e() {
var e = this;
this.buff = null;
this.buffRatio = 0;
this.buffTime = 0;
this.hitEffect = null;
this.hitSound = null;
this.fireEffect = null;
this.fireSound = null;
this.hitbackForce = 0;
this.hitbackTime = 0;
this.critable = !0;
this.showDamageText = !0;
this.damageColor = a.Config.DefaultDamageColor.clone();
this.hitResult = new w.HitResult();
this.skillData = null;
this.targetType = h.SkillTargetType.Random;
this.owner = null;
this.collideMask = S.HitMask.All;
this.cache = null;
this.isCleared = !1;
this.getDamageFunc = function() {
return e.skillData.proto.damage;
};
this.listeners = [];
this.fireInfo = {};
this.lastFireDir = cc.v2(-1, 0);
this.lastFireFrame = 0;
this.v1 = cc.v2();
}
Object.defineProperty(e.prototype, "isOwnerDead", {
get: function() {
return !this.owner || !cc.isValid(this.owner) || this.owner.dead;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "isBulletSkill", {
get: function() {
return !!this.skillData && 0 != (this.skillData.proto.types & s.SkillType.Bullet);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "isSummonSkill", {
get: function() {
return !!this.skillData && 0 != (this.skillData.proto.types & s.SkillType.Summon);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "isLightningSkill", {
get: function() {
return !!this.skillData && 0 != (this.skillData.proto.types & s.SkillType.Lightning);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "isDashSkill", {
get: function() {
return !!this.skillData && 0 != (this.skillData.proto.types & s.SkillType.Dash);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "fireCount", {
get: function() {
return this.isBulletSkill ? Math.floor(this.skillData.proto.bulletNumber * (1 + .01 * this.GetFeature(s.SkillFeature.BulletBaseNumUpPercent)) + this.GetFeature(s.SkillFeature.BulletNumUp)) : this.isSummonSkill ? this.skillData.proto.bulletNumber + this.GetFeature(s.SkillFeature.SummonBulletNumUp) : this.skillData.proto.bulletNumber;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "isDirect", {
get: function() {
return this.critable;
},
enumerable: !1,
configurable: !0
});
e.prototype.OnInit = function() {};
e.prototype.GetDamage = function(e) {
void 0 === e && (e = null);
if (!this.skillData) return 0;
var t = this.getDamageFunc(e), n = 0, o = 0, r = 0;
if (this.isBulletSkill) {
n += this.GetFeature(s.SkillFeature.BulletDamageUpPercent);
r += this.GetFeature(s.SkillFeature.BulletDamageUp);
o += this.GetFeature(s.SkillFeature.BulletDamageDownPercent);
}
if (this.isLightningSkill) {
n += this.GetFeature(s.SkillFeature.BulletLightningDamageUpPercent) + this.GetFeature(s.SkillFeature.ElementDamageUpPercent);
r += this.GetFeature(s.SkillFeature.BulletLightningDamageUp) + this.GetFeature(s.SkillFeature.ElementDamageUp);
}
if (this.isSummonSkill) {
n += this.GetFeature(s.SkillFeature.SummonDamageUpPercent);
r += this.GetFeature(s.SkillFeature.SummonDamageUp);
}
if (this.isDashSkill) {
n += this.GetFeature(s.SkillFeature.DashDamageUpPercent);
r += this.GetFeature(s.SkillFeature.DashDamageUp);
}
var i = this.owner && this.owner.isMainPlayer;
i && this.owner.IsInVision(e) && (n += this.GetFeature(s.SkillFeature.PlayerInVisionDamageUpPercent));
t *= 1 + .01 * n;
t += r;
t *= 1 - .01 * o;
return Math.max(i ? 1 : 0, t);
};
e.prototype.CalcCrit = function(e) {
if (!this.critable) return e;
if (!this.owner || !this.owner.isMainPlayer) return e;
var t = this.owner.GetFeature(s.SkillFeature.CritUp) / s.SkillConfig.CritRateScale;
this.hitResult.cirit = t > 0 && i.default.RandomInt(0, 100) < t;
this.hitResult.cirit && (e *= 1 + .01 * this.GetFeature(s.SkillFeature.CritDamageUpPercent));
return e;
};
e.prototype.GetFireEnemy = function() {
var e = null;
switch (this.targetType) {
case h.SkillTargetType.Player:
e = this.owner instanceof c.Enemy ? this.owner.target : d.LevelContext.Instance.mainPlayer;
break;

case h.SkillTargetType.Neareast:
e = d.LevelContext.Instance.GetNearestEnemy(this.owner.body.position);
break;

case h.SkillTargetType.Random:
e = d.LevelContext.Instance.GetRandomEnemy();
break;

case h.SkillTargetType.RandomInRange:
e = d.LevelContext.Instance.GetRandomEnemyInRadius(this.owner, .5 * this.skillData.proto.range);
break;

case h.SkillTargetType.NeareastInRange:
e = d.LevelContext.Instance.GetNearestEnemyInRadius(this.owner, .5 * this.skillData.proto.range);
}
return e;
};
e.prototype.GetFireInfo = function() {
if (!this.owner) {
this.fireInfo.dir = cc.Vec2.RIGHT;
return this.fireInfo;
}
var e = this.GetFireEnemy();
this.fireInfo.target = e;
if (e) {
this.fireInfo.dir = e.aimPos.sub(this.owner.firePos, this.v1).normalize();
return this.fireInfo;
}
var t = this.owner.body.finalVelocity;
switch (this.targetType) {
case h.SkillTargetType.InvMoveDir:
t = this.owner.body.velocity;
this.fireInfo.dir = t.equals(cc.Vec2.ZERO) ? this.lastFireDir : t.normalize().mulSelf(-1);
this.lastFireDir.set(this.fireInfo.dir);
break;

case h.SkillTargetType.Rotate:
if (this.lastFireFrame != cc.director.getTotalFrames()) {
this.fireInfo.dir = this.lastFireDir.rotate(cc.misc.degreesToRadians(.5));
this.lastFireDir.set(this.fireInfo.dir);
}
this.lastFireFrame = cc.director.getTotalFrames();
break;

case h.SkillTargetType.MoveDir:
if (this.owner.body.forward.equals(cc.Vec2.ZERO)) this.fireInfo.dir.set(this.lastFireDir); else {
this.fireInfo.dir = this.owner.body.forward.equals(cc.Vec2.ZERO) ? cc.Vec2.RIGHT : this.owner.body.forward;
this.lastFireDir.set(this.fireInfo.dir);
}
break;

case h.SkillTargetType.FireForward:
this.fireInfo.dir = this.v1.set(this.owner.fireForward);
break;

default:
this.fireInfo.dir = t.equals(cc.Vec2.ZERO) ? this.owner.body.forward.equals(cc.Vec2.ZERO) ? cc.Vec2.RIGHT : this.owner.body.forward : t.normalize();
}
return this.fireInfo;
};
e.prototype.GetFeature = function(e) {
var t = 0;
this.skillData && cc.isValid(this.owner) && (t += this.owner.GetFeature(e));
return t;
};
e.prototype.AddListener = function(e) {
this.listeners.indexOf(e) >= 0 || this.listeners.push(e);
};
e.prototype.RemoveListener = function(e) {
var t = this.listeners.indexOf(e);
t >= 0 && this.listeners.splice(t, 1);
};
e.prototype.Dispath = function(e) {
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
for (var o = this.listeners.length - 1; o >= 0; o--) {
var r = this.listeners[o];
r && cc.isValid(r) ? y.SendMessage.apply(void 0, __spreadArrays([ this, r, !1, e ], t)) : this.listeners.splice(o, 1);
}
};
e.IsDogde = function(e) {
var t = e.GetFeature(s.SkillFeature.DogdeUp);
return i.default.RandomInt(0, 100) < t / 30;
};
e.prototype.CalcDamageAddon = function() {
return 0;
};
e.prototype.CalcBuffRatio = function(e) {
return e;
};
e.prototype.CalcBuffTime = function(e) {
return e;
};
e.prototype.ResetHitResult = function() {
this.hitResult.isHit = !1;
this.hitResult.cirit = !1;
this.hitResult.context = this;
this.hitResult.target = null;
this.hitResult.bullet = null;
};
e.prototype.Damage = function(t, n, o, r) {
void 0 === o && (o = 0);
void 0 === r && (r = null);
this.ResetHitResult();
var i = "Enemy" == t.group, a = "Player" == t.group;
if ("Vehicle" == t.group) {
var l = t.parent.getComponent(u.Entity);
this.DamageVehicle(l, n, o);
this.PlayHitEft(l.aimPos);
} else if (i || a) {
l = t.parent.getComponent(u.Entity);
this.DamageEnity(l, n, o, r);
} else if ("Obstacle" == t.group) {
var s = t.parent.getComponent(p.ItemContainer);
if (!s) return this.hitResult;
this.hitResult.target = s;
this.hitResult.isHit = !0;
var c = o == e.NoDamageValue ? 0 : 0 != o ? o : this.GetDamage(s);
this.hitResult.damage = c;
s.Damage(c);
this.PlayHitEft(s.aimPos);
} else {
if ("MoJing" == t.group) return this.hitResult;
this.hitResult.target = t;
this.hitResult.isHit = !0;
}
return this.hitResult;
};
e.prototype.DamageVehicle = function(t, n, o) {
void 0 === o && (o = 0);
this.hitResult.target = t;
this.hitResult.isHit = !0;
this.hitResult.damage = o == e.NoDamageValue ? 0 : 0 != o ? o : this.GetDamage(t);
t.Damage(this.hitResult.damage, null, this, n);
};
e.prototype.DamageEnity = function(t, n, r, a) {
void 0 === r && (r = 0);
void 0 === a && (a = null);
if (t) {
this.hitResult.damage = r == e.NoDamageValue ? 0 : 0 != r ? r : this.GetDamage(t);
var c = !a || a.critable, u = (!a || a.isDirect) && this.isDirect;
c && (this.hitResult.damage = this.CalcCrit(this.hitResult.damage));
var p = t.isMainPlayer, h = t;
p || h && h.proto.type == l.MonsterType.Boss && (this.hitResult.damage += this.getDamageFunc(h) * this.GetFeature(s.SkillFeature.BossDamageUpPercent) * .01);
if (t.isMainPlayer && e.IsDogde(t)) {
this.hitResult.damage = 0;
this.hitResult.isHit = !0;
this.hitResult.target = t;
t.PlayTextEffect("", "闪避");
return this.hitResult;
}
if (!t.dead && !h.isWuDi) {
this.hitResult.target = t;
this.hitResult.isHit = !0;
this.hitResult.bullet = a;
d.LevelContext.Instance.broadcastMessage("OnPreHitEntity", this.hitResult);
if (0 != this.hitResult.damage) {
var m = this.skillData ? this.skillData.seckillRatio : 0;
if (u && this.skillData && i.default.RandomInt(0, 100) < m && h && h.proto.type == l.MonsterType.Normal) {
o.EffectManager.PlayEffect(null, "Prefabs/Effect/MiaoSaEF", d.LevelContext.Instance.effectLayer, h.aimPos);
t.Damage(t.health, 100, this, n);
} else {
if (this.showDamageText && t.showHitEft) {
this.PlayHitEft(t.aimPos);
t.isMainPlayer || t.PlayTextEffect(-this.hitResult.damage, this.hitResult.cirit ? "暴击" : null);
}
t.Damage(this.hitResult.damage, 100, this, n);
}
}
if (t.twineCnt <= 0) {
if (!t.dead && this.hitbackForce > 0 && this.hitbackTime > 0 && !h.staitcCollision) {
var w = p ? 0 : h.proto.mass, y = this.hitbackForce;
this.isBulletSkill && (y *= 1 + .01 * this.GetFeature(s.SkillFeature.BulletHitBackUpPercent));
var g = y - w;
if (g > 0) {
var v = n.multiplyScalar(g);
t.body.AddForce(v.x, v.y, this.hitbackTime);
}
}
if (p && r > 0) {
d.LevelContext.Instance.cameraShake.Start(5, .3);
f.default.Vibrate();
}
}
a && !a.triggerBuff || this.TryBuff(t);
!p && t.dead && h.proto.type == l.MonsterType.Elite && i.default.RandomInt(0, 100) < this.GetFeature(s.SkillFeature.KillEliteHpRecoverRateUpPercent) && this.owner.AddHealth(1);
}
t && this.hitResult.target && d.LevelContext.Instance.broadcastMessage("OnHitEntity", this.hitResult);
}
};
e.prototype.PlayHitEft = function(e) {
this.hitSound && r.default.instance.PlayEffectSync(this.hitSound);
this.hitEffect && M.default.Instance.enableFxEffect && d.LevelContext.hitEftPool.CreateSync(d.LevelContext.Instance.effectLayer, e, .075, this.hitEffect);
};
e.prototype.TryBuff = function(e, t) {
void 0 === t && (t = 1);
if (this.buff) {
var n = this.CalcBuffRatio(this.buffRatio), o = this.buff.data.getComponent(g.default);
o instanceof k.Buff_Chaos ? n *= 1 - .01 * e.GetFeature(s.SkillFeature.AntiChaosUpPercent) : o instanceof C.Buff_Twine && (n *= 1 - .01 * e.GetFeature(s.SkillFeature.AntiTwineUpPercent));
if (!this.isOwnerDead && n > 0 && i.default.RandomInt(0, 100) < n) {
var r = this.CalcBuffTime(this.buffTime) * t;
e.AddBuff(this.buff, r, this);
}
}
};
e.prototype.PlayEffectHandler = function(e, t, n, o, r, i, a, l) {
void 0 === a && (a = !1);
void 0 === l && (l = null);
var s = f.default.PlayerEffect(this.cache, t, e, n, o, r);
s && this.InitEffectHandler(s, i, a, l);
return s;
};
e.prototype.CreateEffectHandler = function(e, t, n, o, i, a, l, s) {
void 0 === a && (a = !1);
void 0 === s && (s = null);
var c = null;
e && (c = this.cache.CreateNodeSync(e, i, n, o));
t && r.default.instance.PlayEffectSync(t);
this.InitEffectHandler(c, l, a, s);
return c;
};
e.prototype.InitEffectHandler = function(e, t, n, o) {
void 0 === n && (n = !1);
void 0 === o && (o = null);
var r = 1;
this.isLightningSkill && (r = 1 + .01 * this.GetFeature(s.SkillFeature.BulletLightningScaleUpPercent));
n || (e.scale = r);
var i = e.getComponents(m.default);
i && i.length > 0 || (i = e.getComponentsInChildren(m.default));
if (i && i.length > 0) for (var a = 0; a < i.length; a++) {
var l = i[a];
l.skill = this;
l.onHit = t;
l.finishOnEnable = a == i.length - 1;
null != o && (l.curDamage = o);
}
};
e.prototype.DoCreateBullet = function(e, t, n, o, r, i) {
var a = i ? 0 : f.default.forward2Angle(n), l = this.cache.CreateNodeSync(e, t, o, a, 1);
if (!r) {
var c = 1 + (this.isBulletSkill ? .01 * this.GetFeature(s.SkillFeature.BulletScaleUpPercent) : 0);
l.scale = c;
}
var u = l.getComponent(v.default);
u.skill = this;
u.totalHitCount = u.maxHitCount + (this.isBulletSkill ? this.GetFeature(s.SkillFeature.BulletHitCountUp) : 0);
return u;
};
e.prototype.DoInitBullet = function(e, t) {
e.sendMessageEx(e.node, !1, !0, "OnInit", t);
this.owner.SendMessage("OnCreateBullet", e);
return e;
};
e.prototype.CreateBullet = function(e, t, n, o, r, i) {
void 0 === i && (i = !1);
var a = this.DoCreateBullet(e, t, n, o, r, i);
return this.DoInitBullet(a, n);
};
e.NoDamageValue = -999999;
return e;
}();
n.default = P;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/EffectManager": void 0,
"../../../Framework/Core/Resource/SoundsManager": void 0,
"../../../Service/kl": void 0,
"../../Config/Config": "Config",
"../../Config/GameModel": "GameModel",
"../../Config/MonsterConfig": "MonsterConfig",
"../../Config/SkillConfig": "SkillConfig",
"../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../Buff/Buff": "Buff",
"../Buff/Buff_Chaos": "Buff_Chaos",
"../Buff/Buff_Twine": "Buff_Twine",
"../Enemy": "Enemy",
"../Entity": "Entity",
"../HitMask": "HitMask",
"../ItemContainer": "ItemContainer",
"../LevelContext": "LevelContext",
"../Util": "Util",
"./BaseBullet": "BaseBullet",
"./BaseSkill": "BaseSkill",
"./EffectHandler": "EffectHandler",
"./ISkill": "ISkill"
} ],
SkillController: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "56660XMo31GnJ2hdYd/J4zG", "SkillController");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Service/kl"), r = e("../Battle/LevelContext"), i = e("../../Framework/Core/Resource/MyComponent"), a = e("../Battle/Util"), l = e("../Config/SkillConfig"), s = e("../Config/GameModel"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.input = null;
t.joystick = null;
t.joystickRadius = 100;
t.stick = null;
t.isStart = !1;
t.isCalcStart = !1;
t.attackDir = cc.Vec2.ZERO;
t.downPnt = cc.Vec2.ZERO;
t.startPassedTime = 0;
t.lastFireTime = 0;
t.hasFireRequest = !1;
t.result = {
skipFire: !1
};
return t;
}
t.prototype.onLoad = function() {
this.input.on(cc.Node.EventType.TOUCH_START, this.AttackTouchDown.bind(this));
this.input.on(cc.Node.EventType.TOUCH_MOVE, this.AttackTouchMove.bind(this));
this.input.on(cc.Node.EventType.TOUCH_END, this.AttackTouchUp.bind(this));
this.input.on(cc.Node.EventType.TOUCH_CANCEL, this.AttackTouchUp.bind(this));
this.stick = this.joystick ? this.joystick.getChildByName("stick") : null;
};
t.prototype.OnUpdate = function(e) {
if (r.LevelContext.Instance && r.LevelContext.Instance.isRunning) {
var t = r.LevelContext.Instance.mainPlayer;
if (cc.isValid(t) && !(!t.weaponSkill || t.controlableCnt <= 0 || t.dead)) if ((this.isStart || t.isAutoAtk || s.default.Instance.enableAutoAtk) && (null != t.fireTarget || t.isManualCtrl)) {
this.startPassedTime += e;
this.startPassedTime >= t.fireIntervel && this.Fire();
} else t.curBulletCd <= 0 && t.bulletNum < t.maxBulletNum && a.default.time - this.lastFireTime > .5 && (t.bulletReloadRequest = !0);
}
};
t.prototype.AttackTouchDown = function(e) {
var t = r.LevelContext.Instance.mainPlayer;
if (t.weaponSkill) {
this.isStart = !0;
this.startPassedTime = 0;
this.isCalcStart = !1;
this.attackDir = t.fireForward;
this.downPnt = e.getLocation();
this.stick.setPosition(cc.Vec2.ZERO);
}
};
t.prototype.AttackTouchMove = function(e) {
var t = r.LevelContext.Instance.mainPlayer;
if (this.isStart) {
var n = e.getLocation().sub(this.downPnt), o = Math.min(this.joystickRadius, n.mag());
if (!this.isCalcStart) {
this.isCalcStart = o >= 50;
if (this.isCalcStart) {
t.fireTarget = null;
t.autoSelectTarget = !1;
t.isManualCtrl = !0;
}
}
if (this.isCalcStart) {
var i = t.hud;
i.detectCollider.active = !0;
this.attackDir = n.normalize();
this.isCalcStart = !0;
this.stick.setPosition(this.attackDir.mul(o));
i.SetAimRotation(a.default.forward2Angle(this.attackDir));
t.fireForward.set(this.attackDir);
}
}
};
t.prototype.AttackTouchUp = function() {
var e = r.LevelContext.Instance.mainPlayer;
e.autoSelectTarget = !0;
e.isManualCtrl = !1;
if (this.isStart) {
e.hud.detectCollider.active = !1;
r.LevelContext.Instance.paused || this.Fire(!0);
this.Clear();
}
};
t.prototype.Fire = function(e) {
void 0 === e && (e = !1);
var t = r.LevelContext.Instance.mainPlayer;
if (t.hasBullet && (e || a.default.time - this.lastFireTime >= t.fireIntervel) && t.controlableCnt > 0) {
this.result.skipFire = !1;
this.broadcastMessage("OnPlayerPreFireBullet", t, this.result);
this.result.skipFire || t.weaponSkill.Trigger();
t.animator.SetTrigger(t.weaponData.proto.fireTrigger);
var n = !1, i = t.GetFeature(l.SkillFeature.PlayerStandFreeBulletUpPercent);
t.body.velocity.equals(cc.Vec2.ZERO) && o.default.RandomInt(0, 100) < i && (n = !0);
o.default.RandomInt(0, 100) <= t.GetFeature(l.SkillFeature.PlayerFreeBulletUpPercent) && (n = !0);
n || t.bulletNum--;
this.startPassedTime = 0;
this.lastFireTime = a.default.time;
this.hasFireRequest = !1;
if (t.bulletReloadRequest) {
t.bulletReloadRequest = !1;
t.curBulletCd = 0;
}
this.broadcastMessage("OnPlayerFireBullet", t);
}
};
t.prototype.Clear = function() {
this.isStart = !1;
this.stick.setPosition(cc.Vec2.ZERO);
};
__decorate([ p(cc.Node) ], t.prototype, "input", void 0);
__decorate([ p(cc.Node) ], t.prototype, "joystick", void 0);
__decorate([ p() ], t.prototype, "joystickRadius", void 0);
return __decorate([ u ], t);
}(i.MyComponent);
n.default = d;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0,
"../../Service/kl": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/Util": "Util",
"../Config/GameModel": "GameModel",
"../Config/SkillConfig": "SkillConfig"
} ],
SkillData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f12bbfOk69HgY9rQ2xkZcpI", "SkillData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SkillData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("./SkillConfig"), i = function(e) {
__extends(t, e);
function t(t) {
var n = e.call(this) || this;
n.id = 1;
n.unlock = !1;
n.features = new Array(r.SkillFeature.Count);
n.proto_ = null;
n.group_ = null;
n.proto_ = t;
if (n.proto_) {
n.id = t.id;
n.AddFeatures();
}
return n;
}
Object.defineProperty(t.prototype, "cd", {
get: function() {
return this.proto.cd;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "proto", {
get: function() {
if (!this.proto_) {
this.proto_ = r.SkillConfig.GetSkill(this.id);
this.proto_ && this.AddFeatures();
}
return this.proto_;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "group", {
get: function() {
this.group_ || (this.group_ = r.SkillConfig.FindSkillGroup(this.proto.groupId));
return this.group_;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isNormalSkill", {
get: function() {
return !!this.group && this.group.type == r.SkillGroupType.Normal;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isSuperSkill", {
get: function() {
return !!this.group && this.group.type == r.SkillGroupType.Super;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isHeroSkill", {
get: function() {
return !!this.group && this.group.type == r.SkillGroupType.Hero;
},
enumerable: !1,
configurable: !0
});
t.prototype.AddFeatures = function() {
if (this.proto.features) for (var e = 0; e < this.proto.features.length; e++) {
var t = this.proto.features[e], n = this.features[t.type];
if (n) n.Add(t); else {
n = t.Clone();
this.features[n.type] = n;
}
}
};
t.prototype.OnDeserialize = function() {
this.features = new Array(r.SkillFeature.Count);
};
t.prototype.Copy = function(e, t) {
void 0 === t && (t = !1);
this.id = e.id;
this.unlock = e.unlock;
t && (this.proto_ = e.proto_);
this.proto;
return this;
};
t.Clone = function(e) {
return new t().Copy(e);
};
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "unlock", void 0);
return t;
}(o.default);
n.SkillData = i;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"./SkillConfig": "SkillConfig"
} ],
SkillGroupData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "23d732KzN9LlrdC0KHKEM5d", "SkillGroupData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SkillGroupData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../../Service/Analys"), i = e("./SafeBool"), a = e("./SkillConfig"), l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.id = 1;
t.unlock = new i.default(!1);
t.proto_ = null;
return t;
}
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = a.SkillConfig.FindSkillGroup(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
t.prototype.Unlock = function(e) {
this.unlock.boolValue = !0;
r.default.LogModifyItem(e, null, this.proto.name, 1);
};
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b", i.default) ], t.prototype, "unlock", void 0);
return t;
}(o.default);
n.SkillGroupData = l;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../../Service/Analys": void 0,
"./SafeBool": "SafeBool",
"./SkillConfig": "SkillConfig"
} ],
SkillInfoTouch: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "74351U3WXlNzZTRW91Z90I6", "SkillInfoTouch");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../UI/BattleLevelupUI"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ui = null;
t.panel = null;
return t;
}
t.prototype.onLoad = function() {
this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart.bind(this));
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd.bind(this));
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd.bind(this));
};
t.prototype.onTouchStart = function() {
this.ui.ShowTips(this.panel, this.node.data, !0);
};
t.prototype.onTouchEnd = function() {
this.ui.ShowTips(this.panel, this.node.data, !1);
};
__decorate([ a(o.default) ], t.prototype, "ui", void 0);
__decorate([ a(cc.Node) ], t.prototype, "panel", void 0);
return __decorate([ i ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {
"../UI/BattleLevelupUI": "BattleLevelupUI"
} ],
SkillJump: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "757252ZxapFgaOaA/NxAuCV", "SkillJump");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../LevelContext"), r = e("../../Util"), i = e("../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.prepareTime = 1;
t.jumpTime = 1;
t.gravity = -2e3;
t.prepareAnimName = "";
t.jumpAnimName = "";
t.prepareEffect = null;
t.targetPos = cc.Vec2.ZERO;
return t;
}
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t = this;
return __generator(this, function(n) {
switch (n.label) {
case 0:
this.context.owner.walkableCnt--;
this.context.owner.PlayAnims(this.prepareAnimName);
this.targetPos.set(this.context.GetFireInfo().target.body.position);
this.context.owner.canDamage = !1;
return [ 4, this.waitForTime(this.prepareTime) ];

case 1:
n.sent();
this.prepareEffect && this.context.PlayEffectHandler(this.prepareEffect, null, this.targetPos, r.default.forward2Angle(e), o.LevelContext.Instance.groundLayer, null);
if (!cc.isValid(this.context.owner)) return [ 2 ];
this.FaceTarget();
this.context.owner.PlayAnims(this.jumpAnimName);
this.context.owner.walkableCnt++;
this.context.owner.Jump(this.targetPos, this.jumpTime, function() {
t.fireEffect && cc.isValid(t.context.owner) && t.context.PlayEffectHandler(t.fireEffect, t.fireSound, t.context.owner.body.position, 0, o.LevelContext.Instance.playerLayer, null);
}, this.gravity);
return [ 4, this.waitForTime(this.jumpTime) ];

case 2:
n.sent();
if (!cc.isValid(this.context.owner)) return [ 2 ];
this.context.owner.PlayAnims("Move");
this.context.owner.canDamage = !0;
return [ 2 ];
}
});
});
};
t.prototype.FaceTarget = function() {
var e = this.context.GetFireInfo().dir;
this.context.owner.fireForward = e;
this.context.owner.UpdateFace();
};
t.prototype.OnBegin = function() {
var e = this.context.owner;
e.controlableCnt--;
e.ai.enabled = !1;
e.disableFreezeCnt++;
};
t.prototype.OnEnd = function() {
var e = this.context.owner;
if (cc.isValid(e)) {
e.ai.enabled = !0;
e.controlableCnt++;
e.disableFreezeCnt--;
}
};
__decorate([ s() ], t.prototype, "prepareTime", void 0);
__decorate([ s() ], t.prototype, "jumpTime", void 0);
__decorate([ s() ], t.prototype, "gravity", void 0);
__decorate([ s() ], t.prototype, "prepareAnimName", void 0);
__decorate([ s() ], t.prototype, "jumpAnimName", void 0);
__decorate([ s(cc.Prefab) ], t.prototype, "prepareEffect", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../BaseSkill": "BaseSkill"
} ],
SkillPatternAI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "02109fCab1D0pETaOuCeyhO", "SkillPatternAI");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SkillPatternAI = n.PatternGroupChooseType = void 0;
var o, r = e("../../../Service/kl"), i = e("../../Config/AISkillPatternConfig"), a = e("./ChasePlayerAI"), l = cc._decorator, s = l.ccclass, c = l.property;
(function(e) {
e[e.Sequence = 0] = "Sequence";
e[e.Random = 1] = "Random";
e[e.Loop = 2] = "Loop";
})(o = n.PatternGroupChooseType || (n.PatternGroupChooseType = {}));
var u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.chooseGroupType = o.Sequence;
t.proto = null;
t.passSkillTime = 0;
t.patternIndex = 0;
t.timeSkillIndex = 0;
t.groupIndex = 0;
t.groupPassTime = 0;
t.idleTime = 0;
t._enableTimeSkill = !0;
return t;
}
t.prototype.OnInit = function() {
e.prototype.OnInit.call(this);
this.proto = i.AISkillPatternConfig.GetProto(this.owner.proto.skillPatternAIId);
this.chooseGroupType == o.Random && this.DoChooseGroup();
};
Object.defineProperty(t.prototype, "enableTimeSkill", {
set: function(e) {
this._enableTimeSkill = e;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnUpdate = function(t) {
if (this.proto && !this.owner.isSilent) {
this.UpdateTimeSkill(t);
this.UpdateGroupTime(t);
if (this.idleTime > 0) {
this.idleTime -= t;
if (this.idleTime <= 0) {
this.owner.controlableCnt++;
this.owner.PlayAnims("Move");
}
}
this.idleTime <= 0 && e.prototype.OnUpdate.call(this, t);
}
};
t.prototype.UpdateTimeSkill = function(e) {
if (this._enableTimeSkill) {
var t = this.proto.patternGroups[this.groupIndex], n = t.patterns[this.patternIndex][this.timeSkillIndex], o = !1;
if (n) if (n instanceof i.AISkillTimeProto) {
var r = n;
this.passSkillTime += e;
if (this.passSkillTime > r.time) {
var a = this.owner.GetSkill(r.skillId);
a ? this.owner.isSilent && !a.ignoreSlient || a.Trigger() : console.warn("SkillPatternAI null skill", "skill id", r.skillId, "owner", this.owner.proto.id);
o = !0;
}
} else if (n instanceof i.AIIdleTimeProto) {
var l = n;
this.idleTime = l.time;
this.owner.body.velocity = cc.Vec2.ZERO;
this.owner.controlableCnt--;
this.owner.hasIdleAnim && this.owner.PlayAnims("Idle");
o = !0;
}
if (o) {
this.passSkillTime = 0;
if (++this.timeSkillIndex == t.patterns[this.patternIndex].length) {
this.timeSkillIndex = 0;
this.patternIndex += this.patternIndex == t.patterns.length - 1 ? 0 : 1;
}
}
}
};
t.prototype.UpdateGroupTime = function(e) {
this.groupPassTime += e;
var t = this.proto.patternGroups[this.groupIndex];
if (t && this.groupPassTime > t.time) {
this.DoChooseGroup();
this.groupPassTime = 0;
}
};
t.prototype.DoChooseGroup = function() {
switch (this.chooseGroupType) {
case o.Random:
this.groupIndex = r.default.RandomInt(0, this.proto.patternGroups.length - 1);
break;

case o.Sequence:
this.groupIndex = Math.min(++this.groupIndex, this.proto.patternGroups.length - 1);
break;

case o.Loop:
this.groupIndex = ++this.groupIndex % this.proto.patternGroups.length;
}
this.patternIndex = 0;
this.passSkillTime = 0;
this.timeSkillIndex = 0;
};
__decorate([ c({
type: cc.Enum(o)
}) ], t.prototype, "chooseGroupType", void 0);
return __decorate([ s ], t);
}(a.ChasePlayerAI);
n.SkillPatternAI = u;
cc._RF.pop();
}, {
"../../../Service/kl": void 0,
"../../Config/AISkillPatternConfig": "AISkillPatternConfig",
"./ChasePlayerAI": "ChasePlayerAI"
} ],
Skill_Enemy_Frog: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e299dN8m8lMQrWw4ZpMC56K", "Skill_Enemy_Frog");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Skill_Enemy_Frog = void 0;
var o = e("../LevelContext"), r = e("../Skill/BaseSkill"), i = e("../Util"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.length = 300;
t.jumpTime = .5;
t.gravity = -1e3;
t.v1 = cc.v2();
return t;
}
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.owner.anim.play("Move");
return [ 2 ];
});
});
};
t.prototype.Fire = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
i.default.PlayerEffect(this.context.cache, this.context.fireSound, this.context.fireEffect, this.context.owner.body.position, 0, o.LevelContext.Instance.effectLayer);
return [ 4, this.waitForTime(1) ];

case 1:
n.sent();
this.context.owner.anim.play("Jump");
t = this.context.owner.body.position.add(e.multiplyScalar(this.length), this.v1);
this.context.owner.Jump(t, this.jumpTime, null, this.gravity);
return [ 4, this.waitForTime(this.jumpTime) ];

case 2:
n.sent();
this.context.owner.anim.play("Move");
return [ 2 ];
}
});
});
};
__decorate([ s() ], t.prototype, "length", void 0);
__decorate([ s() ], t.prototype, "jumpTime", void 0);
__decorate([ s() ], t.prototype, "gravity", void 0);
return __decorate([ l ], t);
}(r.default);
n.Skill_Enemy_Frog = c;
cc._RF.pop();
}, {
"../LevelContext": "LevelContext",
"../Skill/BaseSkill": "BaseSkill",
"../Util": "Util"
} ],
SpawnBullet: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9cb51jIeA1KWaqmjZW9rETS", "SpawnBullet");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SpawnIntervalType = void 0;
var o, r = e("../../LevelContext"), i = e("../../Util"), a = e("../BaseBullet"), l = e("../BulletMovement"), s = cc._decorator, c = s.ccclass, u = s.property;
(function(e) {
e[e.Time = 0] = "Time";
e[e.Length = 1] = "Length";
})(o = n.SpawnIntervalType || (n.SpawnIntervalType = {}));
var p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.spawnBulletPrefab = null;
t.fireLen = 10;
t.interval = .2;
t.intervalType = o.Time;
t.passTime = 0;
t.passLengthSquare = 0;
t.lastPosition = cc.v2();
return t;
}
t.prototype.OnInit = function() {
e.prototype.OnInit.call(this);
this.passTime = 0;
this.passLengthSquare = 0;
this.lastPosition.set(this.body.position);
};
t.prototype.OnUpdate = function(e) {
this.passTime += e;
switch (this.intervalType) {
case o.Time:
if (this.passTime > this.interval) {
this.passTime = 0;
var t = i.default.angle2Forward(this.node.angle);
this.SpawnBullet(this.skill, this.body.position, t);
}
break;

case o.Length:
var n = cc.Vec2.distance(this.body.position, this.lastPosition);
this.passLengthSquare += n;
if (this.passLengthSquare > this.interval) {
this.passLengthSquare = 0;
t = i.default.angle2Forward(this.node.angle);
this.SpawnBullet(this.skill, this.body.position, cc.Vec2.RIGHT);
}
this.lastPosition.set(this.body.position);
}
};
t.prototype.SpawnBullet = function(e, t, n) {
var o;
return __awaiter(this, void 0, void 0, function() {
var i, a, s, c;
return __generator(this, function() {
i = e;
a = null !== (o = this.spawnBulletPrefab) && void 0 !== o ? o : i.bulletPrefab;
s = i.CreateBullet(a, r.LevelContext.Instance.playerLayer, cc.v2(n), t, null);
(c = s.getComponent(l.default)).fireLen = this.fireLen;
c.totalTime = 0 == c.bulletVelocity ? this.fireLen : this.fireLen / c.bulletVelocity;
return [ 2 ];
});
});
};
__decorate([ u(cc.Prefab) ], t.prototype, "spawnBulletPrefab", void 0);
__decorate([ u() ], t.prototype, "fireLen", void 0);
__decorate([ u() ], t.prototype, "interval", void 0);
__decorate([ u({
type: cc.Enum(o)
}) ], t.prototype, "intervalType", void 0);
return __decorate([ c ], t);
}(a.default);
n.default = p;
cc._RF.pop();
}, {
"../../LevelContext": "LevelContext",
"../../Util": "Util",
"../BaseBullet": "BaseBullet",
"../BulletMovement": "BulletMovement"
} ],
SplitBullet: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2bbdcW7xO1H7b9ZeMX58Rcw", "SplitBullet");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Service/kl"), r = e("../LevelContext"), i = e("../LevelManager"), a = e("../Util"), l = e("./BaseBullet"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.splitCnt = 3;
t.splitTime = 2;
t.splitAngle = 30;
t.leftSplitTime = t.splitTime;
t.activeCollision = !0;
return t;
}
n = t;
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
this.leftSplitTime = this.splitTime;
this.activeCollision = !0;
this.node.scale = 1;
};
t.prototype.Split = function(e, t, a, l, s, c) {
return __awaiter(this, void 0, void 0, function() {
var u, p, d, f, h, m, w, y;
return __generator(this, function(g) {
switch (g.label) {
case 0:
u = a;
p = Math.floor(u / 2);
d = o.default.A2R(l);
f = -d * (u - 1) * .5;
h = e;
m = 0;
g.label = 1;

case 1:
if (!(m < u)) return [ 3, 4 ];
if (m == p) return [ 3, 3 ];
w = f + m * d;
(y = h.CreateBullet(h.bulletPrefab, null, cc.v2(s).rotate(w), t, null)).leftSplitTime = c - 1;
y.activeCollision = !1;
y.node.parent = r.LevelContext.Instance.effectLayer;
n.ScaleBullet(y);
return [ 4, i.LevelManager.Instance.waitForTime(.05) ];

case 2:
g.sent();
g.label = 3;

case 3:
m++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.ScaleBullet = function(e) {
for (var t = 1, n = 0; n < e.splitTime - e.leftSplitTime; n++) t *= .9;
e.node.scale = t;
e.activeCollision = !0;
};
t.prototype.OnHit = function(t, o) {
if (!this.activeCollision || this.isDestory) return !1;
var r = this.leftSplitTime > 0 && "Enemy" == t.node.group, i = this.node.getPosition(), l = -this.node.angle, s = a.default.angle2Forward(l);
if (r) {
this.Split(this.skill, i, this.splitCnt, this.splitAngle, s, this.leftSplitTime);
this.leftSplitTime--;
}
var c = e.prototype.OnHit.call(this, t, o);
if (!this.isDestory && r) {
n.ScaleBullet(this);
this.body.velocity = s.mul(this.body.velocity.len(), cc.v2());
this.node.angle = a.default.forward2Angle(s);
}
return c;
};
var n;
__decorate([ u() ], t.prototype, "splitCnt", void 0);
__decorate([ u() ], t.prototype, "splitAngle", void 0);
return n = __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../../Service/kl": void 0,
"../LevelContext": "LevelContext",
"../LevelManager": "LevelManager",
"../Util": "Util",
"./BaseBullet": "BaseBullet"
} ],
SpriteAnimation: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "85ed0or5nRCX5CURWbDiFE2", "SpriteAnimation");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = r.executeInEditMode, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = .02;
t.sprite = null;
t.frames = [];
t.curFrame = 0;
t.passedTime = 0;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.sprite.spriteFrame = this.frames[this.curFrame];
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
if (this.passedTime >= this.intervel) {
this.sprite.spriteFrame = this.frames[this.curFrame++ % this.frames.length];
this.passedTime = 0;
}
};
__decorate([ a() ], t.prototype, "intervel", void 0);
__decorate([ a(cc.Sprite) ], t.prototype, "sprite", void 0);
__decorate([ a(cc.SpriteFrame) ], t.prototype, "frames", void 0);
return __decorate([ i, l ], t);
}(o.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
SpriteMaxSize: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "f1ae4OJzO1Bk5kaqBGDivVQ", "SpriteMaxSize");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, r = o.ccclass, i = o.property, a = o.requireComponent, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.maxSize = cc.size(100, 100);
t.sprite = null;
t.oldFrame = null;
t.oldScale = 1;
return t;
}
t.prototype.onLoad = function() {
this.sprite = this.getComponent(cc.Sprite);
this.oldScale = this.node.scale;
};
t.prototype.update = function() {
this.ResetSize();
};
t.prototype.ResetSize = function() {
if (this.sprite.spriteFrame) {
var e = this.sprite.spriteFrame.getRect();
if (e.size.width > this.maxSize.width || e.size.height > this.maxSize.height) {
var t = Math.min(this.maxSize.width / e.size.width, this.maxSize.height / e.size.height);
this.node.scale = t * this.oldScale;
} else this.node.scale = this.oldScale;
}
};
__decorate([ i(cc.Size) ], t.prototype, "maxSize", void 0);
return __decorate([ r, a(cc.Sprite) ], t);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
SpriteParticle: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "32ce6cfIWJE+LJRN4hmd/AW", "SpriteParticle");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.parent = null;
t.prefab = null;
t.intervel = .03;
t.fadeTime = .1;
t.startOpacity = 100;
t.passedTime = 0;
t.freeIns = new Array();
return t;
}
t.prototype.onDestroy = function() {
this.freeIns = null;
};
t.prototype.Spawn = function() {
var e = this, t = this.freeIns.length > 0 ? this.freeIns.pop() : this.CreateSpriteNode(this.prefab);
t.spriteFrame = this.prefab.spriteFrame;
var n = t.node;
n.parent = this.parent ? this.parent : this.node;
var o = this.prefab.node.convertToWorldSpaceAR(cc.Vec2.ZERO);
n.setPosition(n.parent.convertToNodeSpaceAR(o));
n.active = !0;
n.setSiblingIndex(0);
n.opacity = this.startOpacity;
var r = n.tween;
r ? r.start() : n.tween = cc.tween(n).to(this.fadeTime, {
opacity: 0
}).call(function() {
n.active = !1;
e.freeIns.push(t);
}).start();
};
t.prototype.CreateSpriteNode = function(e) {
var t = new cc.Node(), n = t.getOrAddComponent(cc.Sprite);
n.spriteFrame = e.spriteFrame;
t.setContentSize(e.node.getContentSize());
t.scale = e.node.scale;
t.angle = e.node.angle;
return n;
};
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
if (this.passedTime >= this.intervel) {
this.passedTime = 0;
this.Spawn();
}
};
__decorate([ a(cc.Node) ], t.prototype, "parent", void 0);
__decorate([ a(cc.Sprite) ], t.prototype, "prefab", void 0);
__decorate([ a() ], t.prototype, "intervel", void 0);
__decorate([ a() ], t.prototype, "fadeTime", void 0);
__decorate([ a() ], t.prototype, "startOpacity", void 0);
return __decorate([ i ], t);
}(o.MyComponent);
n.default = l;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
State: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "36ee7j6r4NLDahGUDgW81hk", "State");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.StateMachine = n.State = n.Transition = void 0;
var o = e("./BlackBoard"), r = e("../../../Service/Delegate"), i = e("../../../Framework/Core/Resource/MyComponent"), a = cc._decorator, l = a.ccclass, s = a.executionOrder, c = function() {
function e(e, t, n) {
this.canReenter = !0;
this.params = null;
this.targetState = e;
this.params = t;
this.conditions = n;
}
e.prototype.IsOK = function() {
for (var e = 0; e < this.conditions.length; e++) {
var t = this.conditions[e], n = t.isGlobal ? o.default.global.Get(t.key) : this.srcState.owner.Get(t.key);
if (!t.IsOk(n)) return !1;
}
return !0;
};
return e;
}();
n.Transition = c;
var u = function() {
function e(e, t) {
this.name = "";
this.onEnter = new r.default();
this.onExit = new r.default();
this.onUpdate = new r.default();
this.transitions = new Array();
this.name = e;
this.owner_ = t;
this.owner_.states.push(this);
}
Object.defineProperty(e.prototype, "owner", {
get: function() {
return this.owner_;
},
enumerable: !1,
configurable: !0
});
e.prototype.AddTransition = function(e, t, n) {
void 0 === t && (t = null);
void 0 === n && (n = !1);
for (var o = [], r = 3; r < arguments.length; r++) o[r - 3] = arguments[r];
for (var i = 0; i < o.length; i++) {
var a = o[i];
a.OnInit(this, e);
}
var l = new c(e, t, o);
l.canReenter = n;
l.srcState = this;
this.transitions.push(l);
};
e.prototype.UpdateTransition = function() {
for (var e = 0; e < this.transitions.length; e++) {
var t = this.transitions[e];
if (t.IsOK()) {
if (this.owner.currentState == t.targetState && !t.canReenter) continue;
this.owner.SetCurrentState(t.targetState, t.params);
return !0;
}
}
return !1;
};
e.ExecTime = "execTime";
return e;
}();
n.State = u;
var p = function(e) {
__extends(t, e);
function t() {
var t = e.call(this) || this;
t.bb_ = new o.default();
t.states = new Array();
t.defaultState = null;
t.currentState = null;
t.updateDuration = .001;
t.updatePassedTime = 0;
t.execTime_ = 0;
t.anyState_ = null;
t.pause_ = !1;
t.anyState_ = new u("AnyState", t);
return t;
}
Object.defineProperty(t.prototype, "blackboard", {
get: function() {
return this.bb_;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "execTime", {
get: function() {
return this.execTime_;
},
set: function(e) {
this.execTime_ = e;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "anyState", {
get: function() {
return this.anyState_;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "pause", {
get: function() {
return this.pause_;
},
set: function(e) {
this.pause_ = e;
this.onPause(e);
},
enumerable: !1,
configurable: !0
});
t.prototype.onPause = function() {};
t.prototype.SetCurrentState = function(e, t) {
this.currentState && this.currentState.onExit.Invoke(this.currentState, t);
this.execTime = 0;
this.currentState = e;
this.currentState && this.currentState.onEnter.Invoke(this.currentState, t);
};
t.prototype.AddProperty = function(e, t) {
this.blackboard.AddProperty(e, t);
};
t.prototype.Get = function(e) {
return this.blackboard.Get(e);
};
t.prototype.Set = function(e, t) {
this.blackboard.Set(e, t);
};
t.prototype.SetTrigger = function(e) {
this.blackboard.SetTrigger(e);
};
t.prototype.start = function() {
this.SetCurrentState(this.defaultState, null);
};
t.prototype.OnLateUpdate = function(e) {
if (!this.pause) {
this.updatePassedTime += e;
var t = this.updateDuration <= 0 ? e : this.updateDuration;
if (this.updatePassedTime >= t) {
this.updatePassedTime = 0;
this.UpdateTransition();
if (this.currentState) {
this.execTime = this.execTime + t;
this.currentState.onUpdate.Invoke(this.currentState, t);
}
}
}
};
t.prototype.UpdateTransition = function() {
this.anyState.UpdateTransition() || this.currentState && this.currentState.UpdateTransition();
};
return __decorate([ l, s(50) ], t);
}(i.MyComponent);
n.StateMachine = p;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../../../Service/Delegate": void 0,
"./BlackBoard": "BlackBoard"
} ],
SubcribeGiftUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "e76f8cA0D9Oh64xVQbzlmBN", "SubcribeGiftUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/Core/Views/ViewUIManager"), l = e("../../Framework/UI/PromptUI"), s = e("../../Service/Extension/SubscribeOneTimeMessage"), c = e("../../Service/GameStorage"), u = e("../../Service/RemoteSetting"), p = e("../Config/ArchivementConfig"), d = e("../Config/Config"), f = e("../Config/GameModel"), h = e("../Config/GiftConfig"), m = e("./RewardsUI"), w = cc._decorator, y = w.ccclass, g = w.property, v = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.subscribeReward = null;
t.subscribePanel = null;
t.exchangePanel = null;
t.SubscribeSucFunc = null;
return t;
}
t.prototype.onLoad = function() {
this.SubscribeSucFunc = this.GetSubscribeReward.bind(this);
};
t.prototype.OnSetParams = function() {
this.subscribeReward.string = "+" + d.Config.SubscribeRweardCoins;
this.subscribePanel.active = 0 == f.default.Instance.subscribeGiftTime;
this.exchangePanel.active = !this.subscribePanel.active;
};
t.prototype.onEnable = function() {
s.default.OnSubscribeSuccessDelegate.Add(this.SubscribeSucFunc);
};
t.prototype.onDisable = function() {
s.default.OnSubscribeSuccessDelegate.Remove(this.SubscribeSucFunc);
};
t.prototype.GetSubscribeReward = function() {
m.default.ShowView("订阅", [ new h.RewardProto(p.UnlockType.Coin, d.Config.SubscribeRweardCoins) ]);
f.default.Instance.subscribeGiftTime = Math.floor(c.default.nowMS / 1e3);
this.HideView();
};
t.prototype.OnSubcribeClick = function() {
var e = u.default.Get("SubscribeTemplateIds", null);
if (e && e.gift) {
s.default.RemoveSave("gift");
s.default.SubscribeIds([ "gift" ], 0);
} else a.default.ShowView(l.default, "没有订阅礼包配置，请稍后再试");
};
__decorate([ g(cc.Label) ], t.prototype, "subscribeReward", void 0);
__decorate([ g(cc.Node) ], t.prototype, "subscribePanel", void 0);
__decorate([ g(cc.Node) ], t.prototype, "exchangePanel", void 0);
return __decorate([ y, o.RegisterView("SubcribeGiftUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = v;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/Extension/SubscribeOneTimeMessage": void 0,
"../../Service/GameStorage": void 0,
"../../Service/RemoteSetting": void 0,
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./RewardsUI": "RewardsUI"
} ],
SuiPianBingFa: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0dcb4j2ImVE45VP6FCxzY0h", "SuiPianBingFa");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../../LevelContext"), a = e("../../Player"), l = e("../BulletSkill"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.damageRatio = .1;
t.v1 = cc.v2();
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return t.weaponSkill.context.getDamageFunc() * n.damageRatio;
};
return [ 2 ];
});
});
};
t.prototype.OnKillEnemy = function(e, t) {
if ((null == t ? void 0 : t.owner) instanceof a.Player && t != this.context) for (var n = this.context.skillData.proto.bulletNumber, r = this.v1.set(e.aimPos), l = this.context.owner.weaponSkill, s = 0; s < n; s++) {
var c = cc.v2(o.default.Random(-1, 1), o.default.Random(-1, 1));
c.normalizeSelf();
var u = this.context.DoCreateBullet(l.bulletPrefab, i.LevelContext.Instance.effectLayer, c, r, this.ignoreScale, this.ignoreRotation);
this.context.DoInitBullet(u, c);
u.node.scale *= .6;
u.leftBounceCount = 0;
u.damage = Math.max(1, this.context.owner.weaponData.proto.damage * this.damageRatio);
u.buffDescPercent = 50;
u.critable = !1;
}
};
__decorate([ u() ], t.prototype, "damageRatio", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../../Player": "Player",
"../BulletSkill": "BulletSkill"
} ],
SummonBulletSkill_Multi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "fcf9290jUdF0bgyEa/3l7if", "SummonBulletSkill_Multi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Config/SkillConfig"), r = e("./BulletSkill_Multi"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.passedTime = 0;
return t;
}
t.prototype.OnUpdate = function(e) {
if (this.context.owner && this.context.owner.enableSkill) if (!this.context.owner.isSilent || this.ignoreSlient) {
this.passedTime += e * this.context.owner.timeScale;
var t = this.context.skillData.cd / (1 + .01 * this.context.owner.GetFeature(o.SkillFeature.SummonCDUpPercent));
t = Math.max(.1, t);
if (this.passedTime >= t) {
this.passedTime = 0;
this.FireOnUpdate();
}
} else this.passedTime = 0;
};
t.prototype.FireOnUpdate = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function() {
this.context.isCleared = !1;
if (this.context.isCleared) return [ 2 ];
e = this.context.GetFireInfo();
this.context.owner.fireForward = e.dir;
this.Fire(e.dir);
this.context.owner.PlayAnims("Attack", "Move");
return [ 2 ];
});
});
};
return __decorate([ a ], t);
}(r.default));
n.default = l;
cc._RF.pop();
}, {
"../../Config/SkillConfig": "SkillConfig",
"./BulletSkill_Multi": "BulletSkill_Multi"
} ],
SummonConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "700cdrIez1KsLOeH3RL2E3t", "SummonConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SummonConfig = n.SummonIds = n.SummonProto = n.SummonSkillProto = void 0;
var o = e("./SkillConfig"), r = function(e) {
__extends(t, e);
function t(t, n, o, r, i, a, l, s, c, u, p, d, f) {
void 0 === d && (d = 1);
void 0 === f && (f = null);
var h = e.call(this, t, 0, o, r, n, "", "", "", i, a, l, s, u, p, null, d, null, null, f) || this;
h.id = t;
h.name = n;
h.groupId = o;
h.types = r;
h.lastTime = i;
h.damage = a;
h.range = l;
h.cd = s;
h.fireIntervel = c;
h.damageIntervel = u;
h.resPath = p;
h.bulletNumber = d;
h.opt = f;
return h;
}
return t;
}(o.SkillProto);
n.SummonSkillProto = r;
var i = function(e, t, n, o, r, i) {
this.id = e;
this.name = t;
this.health = n;
this.speed = o;
this.resPath = r;
this.skills = i;
};
n.SummonProto = i;
(function(e) {
e[e.YouLingHuoBan = 3] = "YouLingHuoBan";
e[e.LongLuan = 4] = "LongLuan";
})(n.SummonIds || (n.SummonIds = {}));
var a = function() {
function e() {}
e.GetSummons = function() {
return e.summons;
};
e.GetSummon = function(t) {
return e.summons.find(function(e) {
return e.id == t;
});
};
e.summons = [ new i(1, "通灵匕首", 130, 600, "Prefabs/Skill/Group_TongLingBiShou/TongLingBiShou_Summon", []), new i(2, "通灵镰刀", 130, 600, "Prefabs/Skill/Group_TongLingBiShou/TongLingLianDao_Summon", []), new i(3, "幽灵伙伴", 130, 600, "Prefabs/Skill/Group_YouLingHuBan/YouLingHuBan_Summon", [ new r(240, "无人机", 15, o.SkillType.Summon, 0, 22, 2e3, 5, 0, 0, "Prefabs/Skill/Group_YouLingHuBan/YouLingHuBan_Skill", 1, {
through: !0
}) ]), new i(4, "龙卵", 130, 600, "Prefabs/Skill/Group_LongLuan/LongLuan_Summon", [ new r(250, "生化龙", 16, o.SkillType.Summon, 0, 22, 2e3, 5, 0, 0, "Prefabs/Skill/Group_LongLuan/LongLuan_Skill", 3, {
through: !0
}) ]), new i(5, "魔晶", 130, 600, "Prefabs/Skill/Group_MoJing/MoJing_Summon", []), new i(6, "冲击守卫", 130, 600, "Prefabs/Skill/Talent/ChongJiShouWei_Summon", [ new r(1012, "冲击守卫", 0, o.SkillType.Summon, 0, 22, 2e3, 10, 0, 0, "Prefabs/Skill/Talent/ChongJiShouWei_Summon_Skill", 3, {
through: !0
}) ]) ];
return e;
}();
n.SummonConfig = a;
cc._RF.pop();
}, {
"./SkillConfig": "SkillConfig"
} ],
SummonEnemySkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "35ad5ZeMXpDC57M1UTGwdf1", "SummonEnemySkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../../Config/MonsterConfig"), i = e("../../Level/LevelMonsterSpawn"), a = e("../../LevelContext"), l = e("../BaseSkill"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.monsterId = 0;
t.offsetRadiusRange = cc.v2();
t.bornAroundTarget = !0;
t.enemys = [];
return t;
}
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, l, s, c, u;
return __generator(this, function(p) {
switch (p.label) {
case 0:
e = this.context.owner;
this.bornAroundTarget && (t = this.context.GetFireEnemy()) && (e = t);
n = r.MonsterConfig.GetMonster(this.monsterId);
l = 0;
p.label = 1;

case 1:
if (!(l < this.context.fireCount)) return [ 3, 4 ];
s = o.default.Random(this.offsetRadiusRange.x, this.offsetRadiusRange.y);
c = e.body.position.add(cc.v2(o.default.Random(-1, 1), o.default.Random(-1, 1)).mul(s));
this.fireEffect && this.context.PlayEffectHandler(this.fireEffect, this.fireSound, c, 0, a.LevelContext.Instance.effectLayer, null);
return [ 4, i.LevelMonsterSpawn.CreateMonsterEx(n, c.x, c.y, 0, !0, !0, !0) ];

case 2:
u = p.sent();
this.enemys.push(u);
p.label = 3;

case 3:
l++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
__decorate([ u({
tooltip: "召唤物id"
}) ], t.prototype, "monsterId", void 0);
__decorate([ u() ], t.prototype, "offsetRadiusRange", void 0);
__decorate([ u() ], t.prototype, "bornAroundTarget", void 0);
return __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../../Config/MonsterConfig": "MonsterConfig",
"../../Level/LevelMonsterSpawn": "LevelMonsterSpawn",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill"
} ],
SummonFeatureSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "861bbk9TSRF7YsAxvfbK7e/", "SummonFeatureSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./BaseSkill"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.psTime = 0;
t.addTime = 0;
return t;
}
Object.defineProperty(t.prototype, "summonFeatureOpt", {
get: function() {
return this.context.skillData.proto.summonFeaturesOpt;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
0 == this.summonFeatureOpt.interval && this.AddFeatures();
return [ 2 ];
});
});
};
t.prototype.OnUpdate = function(t) {
e.prototype.OnUpdate.call(this, t);
if (this.summonFeatureOpt.interval > 0) {
this.psTime += t;
if (this.psTime >= this.summonFeatureOpt.interval) {
this.psTime = 0;
this.addTime++;
this.AddFeatures();
}
}
};
t.prototype.AddFeatures = function() {
var e = this.context.owner.GetSummon(this.summonFeatureOpt.summonId);
if (e) for (var t = 0; t < this.summonFeatureOpt.features.length; t++) e.AddFeature(this.summonFeatureOpt.features[t]); else console.warn("find no summon:", this.summonFeatureOpt.summonId);
};
t.prototype.OnSave = function() {
return {
t: this.psTime,
c: this.addTime
};
};
t.prototype.OnLoad = function(e) {
this.psTime = e.t;
this.addTime = e.c;
for (var t = 0; t < this.addTime; t++) this.AddFeatures();
};
return __decorate([ i ], t);
}(o.default));
n.default = a;
cc._RF.pop();
}, {
"./BaseSkill": "BaseSkill"
} ],
SummonMovement_ChaseEnemy: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c17999eotBHj5qEfS0jidKl", "SummonMovement_ChaseEnemy");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SummonMovement_ChaseEnemy = void 0;
var o = e("../../Config/SkillConfig"), r = e("../LevelContext"), i = e("../../../Framework/Core/Resource/MyComponent"), a = e("./Summon"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.rotateSpeed = 5;
t.frame = 0;
t.target = null;
t.owner = null;
t.velocity = cc.v2();
t.v1 = cc.v2();
t.v2 = cc.v2();
t.v3 = cc.v2();
return t;
}
t.prototype.onLoad = function() {
this.owner = this.getComponent(a.Summon);
};
t.prototype.OnUpdate = function(e) {
this.frame++;
var t = r.LevelContext.Instance.mainPlayer;
cc.isValid(this.target) && !this.target.dead && this.owner.isInCamera || (this.target = r.LevelContext.Instance.GetRandomEnemyInRadius(t, 360));
if (this.frame % 5 == 0) {
this.target ? cc.Vec2.subtract(this.v1, this.target.body.position, this.node.getPosition(this.v3)) : cc.Vec2.subtract(this.v1, t.body.position, this.node.getPosition(this.v3));
if (this.v1.lengthSqr() < 400) this.target = null; else {
this.v1.normalizeSelf();
this.v1.mulSelf(this.owner.speed * (1 + .01 * this.owner.GetFeature(o.SkillFeature.SummonCDUpPercent)));
cc.Vec2.lerp(this.velocity, this.velocity, this.v1, this.rotateSpeed * (1 + .01 * this.owner.GetFeature(o.SkillFeature.SummonCDUpPercent)) * e);
this.SetVelocity(this.velocity);
}
}
};
t.prototype.SetVelocity = function(e) {
this.owner.body.velocity = e;
};
__decorate([ c() ], t.prototype, "rotateSpeed", void 0);
return __decorate([ s ], t);
}(i.MyComponent);
n.SummonMovement_ChaseEnemy = u;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../../Config/SkillConfig": "SkillConfig",
"../LevelContext": "LevelContext",
"./Summon": "Summon"
} ],
SummonMovement_Circle: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0ca41u8MVRHXoTdnSEM7hFG", "SummonMovement_Circle");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SummonMovement_Circle_Group = void 0;
var o = e("../../Config/SkillConfig"), r = e("../LevelContext"), i = e("../../../Framework/Core/Resource/MyComponent"), a = e("../Util"), l = e("./Summon"), s = cc._decorator, c = s.ccclass, u = s.property, p = function() {
this.groupId = 0;
this.instances = [];
};
n.SummonMovement_Circle_Group = p;
var d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.angleVelocity = 120;
t.raduis = 200;
t.ignoreFeature = !0;
t.rotateSelf = !1;
t.groupId = 0;
t.owner = null;
t.curAngle = 0;
t.group = null;
t.v1 = cc.v2();
t.v2 = cc.v2();
return t;
}
n = t;
t.prototype.onLoad = function() {
var e = this;
this.owner = this.getComponent(l.Summon);
var t = n.groups.find(function(t) {
return t.groupId == e.groupId;
});
if (!t) {
(t = new p()).groupId = this.groupId;
n.groups.push(t);
}
t.instances.push(this);
for (var o = 360 / t.instances.length, r = t.instances.length - 1; r >= 0; r--) t.instances[r].curAngle = r * o;
this.group = t;
this.OnUpdate(0);
};
t.prototype.onDestroy = function() {
if (this.group) {
var e = this.group.instances.indexOf(this);
e >= 0 && this.group.instances.splice(e, 1);
}
};
t.prototype.OnUpdate = function(e) {
if (this.owner && this.owner.owner) {
var t = e * this.angleVelocity * (this.ignoreFeature ? 1 : 1 + .01 * this.owner.GetFeature(o.SkillFeature.SummonCDUpPercent));
this.curAngle += t;
var n = a.default.angle2Forward(this.curAngle, this.v2).mulSelf(this.raduis);
this.owner.body.position = r.LevelContext.Instance.mainPlayer.aimPos.add(n, this.v1);
this.rotateSelf && (this.owner.node.angle = this.curAngle);
}
};
var n;
t.groups = [];
__decorate([ u() ], t.prototype, "angleVelocity", void 0);
__decorate([ u() ], t.prototype, "raduis", void 0);
__decorate([ u() ], t.prototype, "ignoreFeature", void 0);
__decorate([ u() ], t.prototype, "rotateSelf", void 0);
__decorate([ u() ], t.prototype, "groupId", void 0);
return n = __decorate([ c ], t);
}(i.MyComponent);
n.default = d;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0,
"../../Config/SkillConfig": "SkillConfig",
"../LevelContext": "LevelContext",
"../Util": "Util",
"./Summon": "Summon"
} ],
SummonSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "487f8faU9BLaoktUOD3nCIV", "SummonSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/AssetManager"), r = e("../../../Service/kl"), i = e("../../Config/SummonConfig"), a = e("../LevelContext"), l = e("../Summon/Summon"), s = e("./BaseSkill"), c = cc._decorator, u = c.ccclass, p = c.property, d = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.summonId = 0;
t.summon = null;
return t;
}
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(n) {
switch (n.label) {
case 0:
return [ 4, e.prototype.OnInit.call(this, t) ];

case 1:
n.sent();
return [ 4, this.Fire(cc.Vec2.ZERO) ];

case 2:
n.sent();
return [ 2 ];
}
});
});
};
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, s, c;
return __generator(this, function(u) {
switch (u.label) {
case 0:
e = this.context.owner;
t = e.body.position.add(cc.v2(r.default.RandomInt(-150, 150)));
n = i.SummonConfig.GetSummon(this.summonId);
return [ 4, o.default.Default.CreateNode(n.resPath, a.LevelContext.Instance.effectLayer, t) ];

case 1:
s = u.sent();
return [ 4, (c = s.getComponent(l.Summon)).OnInitEx(n, e, this) ];

case 2:
u.sent();
this.summon = c;
this.broadcastMessage("OnSkillSummon", this.context.skillData.id, this.summonId);
return [ 2 ];
}
});
});
};
t.prototype.OnSave = function() {
return this.summon ? this.summon.OnSave() : null;
};
t.prototype.OnLoad = function(e) {
this.summon && this.summon.OnLoad(e);
};
__decorate([ p({
tooltip: "召唤物id"
}) ], t.prototype, "summonId", void 0);
return __decorate([ u ], t);
}(s.default);
n.default = d;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/AssetManager": void 0,
"../../../Service/kl": void 0,
"../../Config/SummonConfig": "SummonConfig",
"../LevelContext": "LevelContext",
"../Summon/Summon": "Summon",
"./BaseSkill": "BaseSkill"
} ],
Summon: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "dd6ed7T3E5KZb1nQ+wL31QU", "Summon");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Summon = void 0;
var o = e("../../Config/SkillConfig"), r = e("../../Config/BattleSkillData"), i = e("../Entity"), a = e("../Util"), l = e("../AI/AIComponent"), s = cc._decorator, c = s.ccclass, u = (s.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.owner = null;
t.ownerSkill = null;
t.proto = null;
t.posIndex = 0;
t.ai = null;
return t;
}
t.prototype.onDestroy = function() {
if (this.owner && cc.isValid(this.owner)) {
var e = this.owner.summons.indexOf(this);
if (e >= 0) {
this.owner.summons.splice(e, 1);
this.broadcastMessage("OnSummonChange", this.owner);
}
}
};
t.prototype.OnInitEx = function(t, n, o) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(r) {
switch (r.label) {
case 0:
e.prototype.OnInit.call(this, t);
this.proto = t;
this.owner = n;
this.ownerSkill = o;
return [ 4, this.InitSkills() ];

case 1:
r.sent();
this.owner.summons.push(this);
this.posIndex = this.owner.summons.length - 1;
this.speed = this.proto.speed;
this.health = this.maxHealth = this.proto.health;
this.InitAI();
this.broadcastMessage("OnSummonChange", this.owner);
return [ 2 ];
}
});
});
};
t.prototype.InitSkills = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t, n, o;
return __generator(this, function(i) {
switch (i.label) {
case 0:
if (!this.proto.skills) return [ 2 ];
if (this.activeSkills.length > 0) return [ 2 ];
e = 0;
i.label = 1;

case 1:
if (!(e < this.proto.skills.length)) return [ 3, 4 ];
t = this.proto.skills[e];
(n = new r.BattleSkillData(t)).id = t.id;
n.unlock = !0;
return [ 4, this.AddSkillByData(n) ];

case 2:
(o = i.sent()) && o.OnInit(this);
i.label = 3;

case 3:
e++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.InitAI = function() {
this.ai = this.getComponent(l.AIComponent);
this.ai && this.ai.OnInit();
};
t.prototype.GetFeature = function(e) {
var t = 0, n = this.features[e];
n && (t += n.value);
e != o.SkillFeature.SummonCDUpPercent && e != o.SkillFeature.SummonDamageUpPercent && e != o.SkillFeature.SummonDamageUp && e != o.SkillFeature.SummonBulletNumUp || (t += this.owner.GetFeature(e));
return t;
};
t.prototype.onCollisionEnter = function(e) {
this.isActive && this.ownerSkill.context.Damage(e.node, a.default.angle2Forward(this.node.angle));
};
t.prototype.OnSave = function() {
return null;
};
t.prototype.OnLoad = function() {};
return __decorate([ c ], t);
}(i.Entity));
n.Summon = u;
cc._RF.pop();
}, {
"../../Config/BattleSkillData": "BattleSkillData",
"../../Config/SkillConfig": "SkillConfig",
"../AI/AIComponent": "AIComponent",
"../Entity": "Entity",
"../Util": "Util"
} ],
SuperSkillUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0f0b7s8CNBESpkhBbJCZZrd", "SuperSkillUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../Battle/LevelContext"), l = e("../Battle/Util"), s = e("../Config/SkillConfig"), c = e("./LvStars"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
return t;
}
t.prototype.OnCreated = function() {
this.UpdateUI();
};
t.prototype.OnSetParams = function() {
a.LevelContext.Instance.runningCnt--;
};
t.prototype.UpdateUI = function() {
for (var e = s.SkillConfig.superSkillDepence[0].id, t = s.SkillConfig.superSkillDepence[s.SkillConfig.superSkillDepence.length - 1].id, n = 0, o = 0; o < s.SkillConfig.skills.length; o++) {
var r = s.SkillConfig.skills[o];
if (r.groupId >= e && r.groupId <= t) {
var i = s.SkillConfig.GetSuperSkillGroup(r.groupId), a = l.default.GetOrCreateChild(n, this.content);
a.findChild("NameLabel").getComponent(cc.Label).string = i.name;
l.default.SetImage(i.iconPath, a.findChild("MainIcon").getComponent(cc.Sprite));
a.findChild("DescLabel").getComponent(cc.RichText).string = r.desc;
var c = a.findChild("depence");
this.SetItem(c.findChild("super1"), i.ids[0]);
this.SetItem(c.findChild("super2"), i.ids[1]);
n++;
}
}
};
t.prototype.SetItem = function(e, t) {
if (t) {
e.active = !0;
var n = s.SkillConfig.GetSkill(t);
if (n) {
var o = s.SkillConfig.GetSkillGroup(n.groupId);
if (o) {
e.findChild("Name").getComponent(cc.Label).string = o.name;
l.default.SetImage(o.iconPath, e.findChild("icon").getComponent(cc.Sprite));
e.findChild("LvStars").getComponent(c.default).SetLv(o.GetLv(n.id));
}
}
} else e.active = !1;
};
t.prototype.Close = function() {
a.LevelContext.Instance.runningCnt++;
this.HideView();
};
__decorate([ d(cc.Node) ], t.prototype, "content", void 0);
return __decorate([ p, o.RegisterView("SuperSkillUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = f;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/Util": "Util",
"../Config/SkillConfig": "SkillConfig",
"./LvStars": "LvStars"
} ],
TTContactButtonUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2e8d8pITT1EoIeothJUDe07", "TTContactButtonUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
return __decorate([ l, o.RegisterView("TTContactButtonUI", r.ViewLayer.PopupLayer) ], t);
}(i.default));
n.default = s;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0
} ],
TTShortcutUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0413cjkTh9Nr7MeLIuGX6bx", "TTShortcutUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../Config/ArchivementConfig"), l = e("../Config/Config"), s = e("../Config/GameModel"), c = e("../Config/GiftConfig"), u = e("./RewardsUI"), p = cc._decorator, d = p.ccclass, f = p.property, h = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.coinsLabel = null;
return t;
}
t.prototype.OnShowView = function() {
this.coinsLabel.string = "+" + l.Config.AwemeRewardCoins;
};
t.prototype.OnAddShortcut = function() {
s.default.Instance.ttGotShortcutReward = !0;
u.default.ShowView("桌面快捷", [ new c.RewardProto(a.UnlockType.Coin, l.Config.AwemeRewardCoins) ]);
this.HideView();
};
__decorate([ f(cc.Label) ], t.prototype, "coinsLabel", void 0);
return __decorate([ d, o.RegisterView("TTShortcutUI", r.ViewLayer.NormalLayer) ], t);
}(i.default);
n.default = h;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./RewardsUI": "RewardsUI"
} ],
TailRenderer: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d32b6PjkhRGGqUutRMU9BIQ", "TailRenderer");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = (r.executionOrder, 
function() {
this.node = null;
this.passedTime = 0;
}), s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.prefab = null;
t.spawnInvertal = .2;
t.fadeTime = .5;
t.spawnOnStart = !0;
t.dynamicSprite = !1;
t.color = cc.Color.WHITE;
t.parent = null;
t.followPrefabRotation = !1;
t.carePosition = !0;
t.rotationNode = null;
t.scaleNode = null;
t.passedTime = 0;
t.usingIns = new Array();
t.unusedIns = new Array();
t.startSpawn_ = !1;
t.lastPos = cc.v2();
t.v1 = cc.v2();
return t;
}
Object.defineProperty(t.prototype, "startSpawn", {
get: function() {
return this.startSpawn_;
},
set: function(e) {
this.startSpawn_ = e;
this.passedTime = 0;
},
enumerable: !1,
configurable: !0
});
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.spawnOnStart && (this.startSpawn = !0);
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
this.Reset();
};
t.prototype.onDestroy = function() {
for (var e = this.usingIns.length - 1; e >= 0; e--) {
var t = this.usingIns[e];
cc.isValid(t.node) && t.node.destroy();
}
for (e = this.unusedIns.length - 1; e >= 0; e--) {
t = this.unusedIns[e];
cc.isValid(t.node) && t.node.destroy();
}
this.usingIns = null;
this.unusedIns = null;
};
t.prototype.Reset = function() {
this.passedTime = 0;
for (var e = this.usingIns.length - 1; e >= 0; e--) {
var t = this.usingIns[e];
t.node.active = !1;
this.usingIns.splice(e, 1);
this.unusedIns.push(t);
}
};
t.prototype.Clean = function() {
for (var e = this.usingIns.length - 1; e >= 0; e--) {
var t = this.usingIns[e];
cc.isValid(t.node) && t.node.destroy();
}
for (e = this.unusedIns.length - 1; e >= 0; e--) {
t = this.unusedIns[e];
cc.isValid(t.node) && t.node.destroy();
}
this.usingIns = [];
this.unusedIns = [];
};
t.prototype.Create = function() {
for (var e = null; this.unusedIns.length > 0 && !e; ) {
e = this.unusedIns[0];
this.unusedIns.splice(0, 1);
}
if (!e || !e.node.isValid) {
(e = new l()).node = cc.instantiate(this.prefab);
e.node.parent = this.parent ? this.parent : this.node.parent;
}
this.usingIns.push(e);
e.passedTime = 0;
e.node.color = cc.color(this.color.r, this.color.g, this.color.b);
e.node.opacity = 255 * this.color.a;
e.node.active = !0;
e.node.position = this.node.position;
this.rotationNode ? e.node.angle = this.node.angle + this.rotationNode.angle : e.node.angle = this.followPrefabRotation ? this.prefab.angle : this.node.angle;
var t = this.scaleNode ? this.scaleNode : this.prefab;
e.node.scaleX = t.scaleX * this.node.scaleX;
e.node.scaleY = t.scaleY * this.node.scaleY;
e.node.zIndex = cc.macro.MIN_ZINDEX;
if (this.dynamicSprite) {
var n = this.prefab.getComponent(cc.Sprite), o = e.node.getComponent(cc.Sprite), r = e.node.getComponent(cc.Animation);
r && r.destroy();
n && o && (o.spriteFrame = n.spriteFrame);
}
};
t.prototype.OnUpdate = function(e) {
if (this.prefab) {
for (var t = this.usingIns.length - 1; t >= 0; t--) {
var n = this.usingIns[t];
n.passedTime += e;
if (n.passedTime >= this.fadeTime) {
n.node.active = !1;
this.usingIns.splice(t, 1);
this.unusedIns.push(n);
} else n.node.opacity = Math.floor((1 - n.passedTime / this.fadeTime) * this.color.a);
}
if (!(!this.startSpawn || this.carePosition && this.lastPos.fuzzyEquals(this.node.getPosition(this.v1), 1))) {
this.passedTime += e;
if (this.passedTime >= this.spawnInvertal) {
this.passedTime = 0;
this.Create();
this.node.getPosition(this.lastPos);
}
}
}
};
__decorate([ a(cc.Node) ], t.prototype, "prefab", void 0);
__decorate([ a() ], t.prototype, "spawnInvertal", void 0);
__decorate([ a() ], t.prototype, "fadeTime", void 0);
__decorate([ a() ], t.prototype, "spawnOnStart", void 0);
__decorate([ a() ], t.prototype, "dynamicSprite", void 0);
__decorate([ a(cc.Color) ], t.prototype, "color", void 0);
__decorate([ a(cc.Node) ], t.prototype, "parent", void 0);
__decorate([ a() ], t.prototype, "followPrefabRotation", void 0);
__decorate([ a() ], t.prototype, "carePosition", void 0);
__decorate([ a(cc.Node) ], t.prototype, "rotationNode", void 0);
__decorate([ a(cc.Node) ], t.prototype, "scaleNode", void 0);
return __decorate([ i ], t);
}(o.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
TalentConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8ff87OZ4i1BKp6WmoO6UPpK", "TalentConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TalentConfig = n.TalentProto = n.TallentGroup = n.TallentType = void 0;
var o, r, i = e("./SkillConfig");
(function(e) {
e[e.Attack = 0] = "Attack";
e[e.Defence = 1] = "Defence";
})(o = n.TallentType || (n.TallentType = {}));
(function(e) {
e[e.Rank1 = 0] = "Rank1";
e[e.Rank5 = 1] = "Rank5";
e[e.Rank10 = 2] = "Rank10";
e[e.Rank15 = 3] = "Rank15";
})(r = n.TallentGroup || (n.TallentGroup = {}));
var a = function() {
function e(e, t, n, o, r, i, a, l, s, c) {
this.id = e;
this.type = t;
this.groupId = n;
this.name = o;
this.desc = r;
this.icon = i;
this.coin = a;
this.maxLv = l;
this.features = s;
this.skillProto = c;
}
Object.defineProperty(e.prototype, "iconPath", {
get: function() {
return "UI/TalentIcon/" + this.icon;
},
enumerable: !1,
configurable: !0
});
return e;
}();
n.TalentProto = a;
var l = function() {
function e() {}
e.GetTalent = function(t) {
return e.talents.find(function(e) {
return e.id == t;
});
};
e.GetTalentBySkillId = function(t) {
for (var n = 0; n < e.talents.length; n++) {
var o = e.talents[n];
if (o.skillProto && o.skillProto.id == t) return o;
}
return null;
};
e.UnlockLvs = [ 5, 5, 5, 5 ];
e.talents = [ new a(1, o.Attack, r.Rank1, "攻击", "子弹和召唤伤害提升（+2% / 级）", "1", [ 400, 700, 1e3, 1500, 2100 ], 5, [ new i.SkillFeatureProto(i.SkillFeature.BulletDamageUpPercent, 2), new i.SkillFeatureProto(i.SkillFeature.SummonDamageUpPercent, 2) ]), new a(2, o.Attack, r.Rank1, "速度", "射速和换弹速度提升（+2% / 级）", "2", [ 400, 700, 1e3, 1500, 2100 ], 5, [ new i.SkillFeatureProto(i.SkillFeature.BulletIntervelUpPercent, 2), new i.SkillFeatureProto(i.SkillFeature.BulletCDUpPercent, 2) ]), new a(3, o.Attack, r.Rank1, "盲射", "子弹有几率冰冻或点燃敌人（+2% / 级）", "3", [ 400, 700, 1e3, 1500, 2100 ], 5, null, new i.SkillProto(1003, 1, 0, i.SkillType.Other, "盲射", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/MiShu")), new a(4, o.Defence, r.Rank1, "范围", "可视范围和拾取范围扩大（+3% / 级）", "4", [ 400, 700, 1e3, 1500, 2100 ], 5, [ new i.SkillFeatureProto(i.SkillFeature.PlayerVisionUpPercent, 3), new i.SkillFeatureProto(i.SkillFeature.PickRangeUpPercent, 3) ]), new a(5, o.Defence, r.Rank1, "坚韧", "血量低于或等于半血时，射速和击退距离提升（+3% / 级）", "5", [ 400, 700, 1e3, 1500, 2100 ], 5, null, new i.SkillProto(1005, 1, 0, i.SkillType.Other, "坚韧", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/JianRen")), new a(6, o.Defence, r.Rank1, "无双", "换弹速度提升（+2% / 级），换弹后可击退一定范围内敌人", "6", [ 400, 700, 1e3, 1500, 2100 ], 5, [ new i.SkillFeatureProto(i.SkillFeature.BulletCDUpPercent, 2) ], new i.SkillProto(1006, 1, 0, i.SkillType.Other, "无双", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/YongQi")), new a(7, o.Attack, r.Rank5, "连锁共振", "射出最后一发子弹时，对一定范围内敌人造成20%的子弹伤害（+20% / 级）", "7", [ 2400, 2400, 2400, 2400, 2400 ], 5, null, new i.SkillProto(1007, 1, 0, i.SkillType.Other, "连锁共振", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/YuZhen")), new a(8, o.Attack, r.Rank5, "元素之歌", "每造成50次燃烧或冰冻后，射速和换弹速度提升（+50% / 级），持续1秒", "8", [ 2400, 2400, 2400, 2400, 2400 ], 5, null, new i.SkillProto(1008, 1, 0, i.SkillType.Other, "元素之歌", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/YuanSuSheJi")), new a(9, o.Attack, r.Rank5, "弱点感知", "可视范围内的敌人受到更多伤害（+3% / 级）", "9", [ 2400, 2400, 2400, 2400, 2400 ], 5, [ new i.SkillFeatureProto(i.SkillFeature.PlayerInVisionDamageUpPercent, 3) ]), new a(10, o.Defence, r.Rank5, "能量转换", "获得经验后，获得1秒移速提升（+7% / 级）", "10", [ 2400, 2400, 2400, 2400, 2400 ], 5, null, new i.SkillProto(1010, 1, 0, i.SkillType.Other, "能量转换", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/DongLiZhuanHuan")), new a(11, o.Defence, r.Rank5, "元素守护", "每造成50次燃烧或冰冻后，获得短暂无敌效果（+1% / 级）", "11", [ 2400, 2400, 2400, 2400, 2400 ], 5, null, new i.SkillProto(1011, 1, 0, i.SkillType.Other, "元素守护", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/YuanSuBiHu")), new a(12, o.Defence, r.Rank5, "守卫冲击", "召唤2个范围冲击，每10秒会击退附近敌人，CD减少（1秒 / 级）", "12", [ 2400, 2400, 2400, 2400, 2400 ], 5, null, new i.SkillProto(1012, 1, 0, i.SkillType.Other, "守卫冲击", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/ChongJiShouWei")), new a(13, o.Attack, r.Rank10, "舍生取义", "以半血进入对局，子弹伤害和射速提升（+5% / 级）", "13", [ 4700, 4700, 4700, 4700, 4700 ], 5, null, new i.SkillProto(1013, 1, 0, i.SkillType.Other, "舍生取义", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/BoLiDaPao")), new a(14, o.Attack, r.Rank10, "元素诅咒", "当敌人处于燃烧或冰冻状态时被击杀，有几率（+5% / 级）将状态传染给附近的敌人", "14", [ 4700, 4700, 4700, 4700, 4700 ], 5, null, new i.SkillProto(1014, 1, 0, i.SkillType.Other, "元素诅咒", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/ManYan")), new a(15, o.Attack, r.Rank10, "枪之印记", "每10秒向四周发出6枚子弹，相当于10%子弹伤害，CD减少（1秒 / 级）", "15", [ 4700, 4700, 4700, 4700, 4700 ], 5, null, new i.SkillProto(1015, 1, 0, i.SkillType.Other, "枪之印记", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/GunGlyph")), new a(16, o.Defence, r.Rank10, "诚心祝祷", "开局获得能力“防护罩”，其再生时间减少（5秒 / 级）", "16", [ 4700, 4700, 4700, 4700, 4700 ], 5, null, new i.SkillProto(1016, 1, 0, i.SkillType.Other, "诚心祝祷", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/Blessing")), new a(17, o.Defence, r.Rank10, "杀敌奥义", "每击杀1500个敌人，恢复1颗红心，数量减少（100 / 级）", "17", [ 4700, 4700, 4700, 4700, 4700 ], 5, null, new i.SkillProto(1017, 1, 0, i.SkillType.Other, "杀敌奥义", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/Healing")), new a(18, o.Defence, r.Rank10, "突出重围", "当血量降至1个红心时，获得无敌效果（+5秒 / 级），每局生效一次", "18", [ 4700, 4700, 4700, 4700, 4700 ], 5, null, new i.SkillProto(1018, 1, 0, i.SkillType.Other, "突出重围", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/LastStand")), new a(19, o.Attack, r.Rank15, "霸者之息", "每射出第3发子弹，会发射一颗穿透所有敌人的子弹，并造成额外的子弹伤害（+20% / 级）", "19", [ 9600, 9600, 9600, 9600, 9600 ], 5, null, new i.SkillProto(1019, 1, 0, i.SkillType.Other, "霸者之息", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/Cadence")), new a(20, o.Attack, r.Rank15, "狂怒感知", "每击杀60个敌人，进入“狂怒”状态，不会消耗子弹数，持续时间（+1秒 / 级）", "20", [ 9600, 9600, 9600, 9600, 9600 ], 5, null, new i.SkillProto(1020, 1, 0, i.SkillType.Other, "狂怒感知", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/Ethereal")), new a(21, o.Attack, r.Rank15, "守护契约", "当只有1个守护时，其伤害和攻速提升（+10% / 级）", "21", [ 9600, 9600, 9600, 9600, 9600 ], 5, null, new i.SkillProto(1021, 1, 0, i.SkillType.Other, "守护契约", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/Dedication")), new a(22, o.Defence, r.Rank15, "成长奥义", "对局中每升5级，恢复1颗红心，经验获取提升（+4% / 级）", "22", [ 9600, 9600, 9600, 9600, 9600 ], 5, [ new i.SkillFeatureProto(i.SkillFeature.ExpUpPercent, 4) ], new i.SkillProto(1022, 1, 0, i.SkillType.Other, "成长奥义", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/Growth")), new a(23, o.Defence, r.Rank15, "守护奉献", "受到致命伤害时，牺牲1个召唤来抵挡本次伤害。每局可生效次数增加（+1次 / 级）", "23", [ 9600, 9600, 9600, 9600, 9600 ], 5, null, new i.SkillProto(1023, 1, 0, i.SkillType.Other, "守护奉献", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/Guardian")), new a(24, o.Defence, r.Rank15, "钢铁意志", "血量降至1个红心时，立刻恢复3颗红心（+1点 / 级），每局生效1次", "24", [ 9600, 9600, 9600, 9600, 9600 ], 5, null, new i.SkillProto(1024, 1, 0, i.SkillType.Other, "钢铁意志", "", "", "", 0, 0, 0, 0, 0, "Prefabs/Skill/Talent/SecondWind")) ];
e.GuardianSkillID = 1023;
return e;
}();
n.TalentConfig = l;
cc._RF.pop();
}, {
"./SkillConfig": "SkillConfig"
} ],
TalentData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4055f9qColGJKl+rYcqAA/+", "TalentData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TalentData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("./GameModel"), i = e("./TalentConfig"), a = function(e) {
__extends(t, e);
function t(t) {
var n = e.call(this) || this;
n.id = 1;
n.lv = 0;
n.active = !1;
n.proto_ = null;
n.proto_ = t;
return n;
}
Object.defineProperty(t.prototype, "isLock", {
get: function() {
if (0 == this.proto.groupId) return !1;
var e = this.proto.groupId - 1;
return (this.proto.type == i.TallentType.Attack ? this.atkLvCount[e] : this.defLvCount[e]) < i.TalentConfig.UnlockLvs[e];
},
enumerable: !1,
configurable: !0
});
t.prototype.CalcLockInfo = function() {
this.atkLvCount = [ 0, 0, 0, 0 ];
this.defLvCount = [ 0, 0, 0, 0 ];
for (var e = 0; e < r.default.Instance.talentList.length; e++) {
var t = r.default.Instance.talentList[e];
t.proto.type == i.TallentType.Attack ? this.atkLvCount[t.proto.groupId] += t.lv : this.defLvCount[t.proto.groupId] += t.lv;
}
};
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = i.TalentConfig.GetTalent(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
t.prototype.Levelup = function() {
this.lv++;
for (var e = 0; e < r.default.Instance.talentList.length; e++) r.default.Instance.talentList[e].CalcLockInfo();
};
t.prototype.OnDeserialize = function() {};
t.prototype.Copy = function(e, t) {
void 0 === t && (t = !1);
this.id = e.id;
this.lv = e.lv;
t && (this.proto_ = e.proto_);
this.proto;
return this;
};
t.Clone = function(e) {
return new t().Copy(e);
};
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b") ], t.prototype, "lv", void 0);
__decorate([ o.SerializeField("c") ], t.prototype, "active", void 0);
return t;
}(o.default);
n.TalentData = a;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"./GameModel": "GameModel",
"./TalentConfig": "TalentConfig"
} ],
TalentUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b5f91afhzRG0Izq1a6ksSXU", "TalentUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/EffectManager"), r = e("../../Framework/Core/Resource/SoundsManager"), i = e("../../Framework/Core/Views/RegisterView"), a = e("../../Framework/Core/Views/ViewConfig"), l = e("../../Framework/Core/Views/ViewUIComponent"), s = e("../../Framework/Core/Views/ViewUIManager"), c = e("../../Framework/UI/PromptUI"), u = e("../Battle/Util"), p = e("../Config/GameModel"), d = e("../Config/TalentConfig"), f = e("./FreeCoinsUI"), h = cc._decorator, m = h.ccclass, w = h.property, y = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.attackContent = null;
t.defenceContent = null;
t.curSprite = null;
t.curMask = null;
t.curName = null;
t.curDesc = null;
t.curCoin = null;
t.upgradeBtn = null;
t.activeBtn = null;
t.coinLabel = null;
t.maxLevel = null;
t.curItem = null;
t.curItemNode = null;
return t;
}
t.prototype.update = function() {
this.coinLabel.string = p.default.Instance.coin.intValue.toFixed(0);
};
t.prototype.OnSetParams = function() {
this.UpdateList(!0);
};
t.prototype.OnItemClick = function(e) {
var t = Number.parseInt(e.target.name), n = p.default.Instance.GetTalent(t);
if (n) {
this.curItemNode = e.target;
this.curItem = n;
this.UpdateCurItem();
}
};
t.prototype.OnLevelupClick = function() {
if (this.curItem.isLock) c.default.Show("不可升级，请先升级前置天赋"); else {
var e = p.default.Instance, t = this.curItem.proto.coin[this.curItem.lv];
if (e.coin.intValue < t) {
p.default.Instance.dailyAdFreeCoinsCnt.value > 0 ? s.default.ShowView(f.default) : c.default.Show("金币不足");
return;
}
p.default.Instance.AddCoin(-t, "天赋升级");
this.curItem.Levelup();
this.UpdateList(!1);
this.broadcastMessage("OnTalentLevelup", this.curItem.id, this.curItem.lv);
p.default.Save();
o.EffectManager.PlayEffect(null, "Prefabs/Effect/Weapon_LevelupEF", this.curItemNode, cc.Vec2.ZERO, 0, .5);
r.default.instance.PlayEffect("weaponLevelup");
}
};
t.prototype.OnActiveClick = function() {
var e = this;
if (this.curItem.lv > 0 && !this.curItem.active) {
var t = this.curItem.proto.type == d.TallentType.Attack ? this.attackContent : this.defenceContent;
this.curItem.active = !0;
t.findChild(this.curItem.id.toFixed(0)).findChild("Active").active = !0;
this.activeBtn.active = !1;
p.default.Instance.talentList.forEach(function(n) {
if (n != e.curItem && n.lv > 0 && n.active && n.proto.type == e.curItem.proto.type && n.proto.groupId == e.curItem.proto.groupId) {
n.active = !1;
t.findChild(n.id.toFixed(0)).findChild("Active").active = !1;
}
});
p.default.Save();
}
};
t.prototype.UpdateList = function(e) {
for (var t = p.default.Instance, n = t.talentList, o = 0, r = 0, i = 0; i < n.length; i++) {
var a = n[i], l = null;
if (a.proto.type == d.TallentType.Attack) {
l = u.default.GetOrCreateChild(o, this.attackContent);
o++;
} else {
l = u.default.GetOrCreateChild(r, this.defenceContent);
r++;
}
l.name = a.id.toFixed(0);
var s = a.isLock;
e && u.default.SetImage(a.proto.iconPath, l.findChild("Icon").getComponent(cc.Sprite));
l.findChild("num").getComponent(cc.Label).string = a.lv + "/" + a.proto.maxLv;
l.findChild("mask").active = s;
l.findChild("Active").active = a.lv > 0 && a.active;
var c = l.findChild("RedPnt"), f = !s && a.lv < a.proto.maxLv ? a.proto.coin[a.lv] : Number.MAX_SAFE_INTEGER;
c.active = t.coin.intValue >= f;
if (this.curItem == a || null == this.curItem && 0 == i) {
this.curItem = a;
this.curItemNode = l;
this.UpdateCurItem();
}
}
};
t.prototype.UpdateCurItem = function() {
var e = this.curItem.isLock;
u.default.SetImage(this.curItem.proto.iconPath, this.curSprite);
var t = this.curItem.lv >= this.curItem.proto.maxLv;
this.curName.string = this.curItem.proto.name;
this.curDesc.string = this.curItem.proto.desc;
this.curCoin.string = t ? "" : this.curItem.proto.coin[this.curItem.lv].toFixed(0);
this.upgradeBtn.active = !t;
this.maxLevel.active = t;
this.curMask.active = e;
this.activeBtn.active = this.curItem.lv > 0 && !this.curItem.active;
};
__decorate([ w(cc.Node) ], t.prototype, "attackContent", void 0);
__decorate([ w(cc.Node) ], t.prototype, "defenceContent", void 0);
__decorate([ w(cc.Sprite) ], t.prototype, "curSprite", void 0);
__decorate([ w(cc.Node) ], t.prototype, "curMask", void 0);
__decorate([ w(cc.Label) ], t.prototype, "curName", void 0);
__decorate([ w(cc.RichText) ], t.prototype, "curDesc", void 0);
__decorate([ w(cc.Label) ], t.prototype, "curCoin", void 0);
__decorate([ w(cc.Node) ], t.prototype, "upgradeBtn", void 0);
__decorate([ w(cc.Node) ], t.prototype, "activeBtn", void 0);
__decorate([ w(cc.Label) ], t.prototype, "coinLabel", void 0);
__decorate([ w(cc.Node) ], t.prototype, "maxLevel", void 0);
return __decorate([ m, i.RegisterView("TalentUI", a.ViewLayer.NormalLayer, a.ViewShowRule.HideAllView) ], t);
}(l.default);
n.default = y;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/PromptUI": void 0,
"../Battle/Util": "Util",
"../Config/GameModel": "GameModel",
"../Config/TalentConfig": "TalentConfig",
"./FreeCoinsUI": "FreeCoinsUI"
} ],
TileMap: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "31b94x7srJOVZwQ4ItcTAcn", "TileMap");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./Tile"), r = cc._decorator, i = r.ccclass, a = r.property, l = r.executeInEditMode, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.tileAsset = null;
t.cellRowNumber = 25;
t.cellColNumber = 25;
t.cellWidth = 40;
t.cellHeight = 40;
t.cvsData = "";
t.secData = "";
t.showGrid = !0;
t.editMode = !1;
t.levelWidth = 0;
t.levelHeight = 0;
t.coord = cc.v2();
t.mainMasks = new Array();
t.curCellRowNumber = 0;
t.curCellColNumber = 0;
t.editorTileRoot = null;
t.tiles = new Array();
t.graphics = null;
t.tmpTile = cc.v2();
return t;
}
t.prototype.onLoad = function() {
this.cvsData.length > 0 && this.LoadCSVData(this.cvsData);
};
t.prototype.GetTile = function(e, t) {
var n = this.mainMasks;
if (t >= n.length || t < 0) return 0;
var o = n[t];
return e >= o.length || e < 0 ? 0 : o[e];
};
Object.defineProperty(t.prototype, "tileOffsetX", {
get: function() {
return .5 * (-this.levelWidth + this.cellWidth);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "tileOffsetY", {
get: function() {
return .5 * (-this.levelHeight - this.cellHeight);
},
enumerable: !1,
configurable: !0
});
t.prototype.PositionToTile = function(e, t, n) {
var o = (e + .5 * this.levelWidth) / this.cellWidth, r = (t - .5 * this.levelHeight) / this.cellHeight, i = Math.floor(o), a = Math.floor(Math.abs(r));
if (n) {
n.x = i;
n.y = a;
return n;
}
return new cc.Vec2(i, a);
};
t.prototype.IsWalkable = function(e, t, n) {
void 0 === n && (n = o.TileMask.All);
var r = this.PositionToTile(e, t, this.tmpTile), i = this.GetTile(r.x, r.y);
return 0 == i || 0 == (i & n);
};
t.prototype.SePositionMask = function(e, t, n) {
void 0 === n && (n = o.TileMask.All);
var r = this.PositionToTile(e, t, this.tmpTile);
this.mainMasks[r.y][r.x] = n;
};
t.prototype.SetTileMask = function(e, t, n) {
void 0 === n && (n = o.TileMask.All);
this.mainMasks[e][t] = n;
};
t.prototype.LoadCSVData = function(e) {
var t = e.split(",");
this.levelWidth = this.cellColNumber * this.cellWidth;
this.levelHeight = this.cellRowNumber * this.cellHeight;
this.mainMasks = new Array();
for (var n = this.mainMasks, o = 0; o < t.length; o++) {
var r = Math.floor(o / this.cellColNumber), i = t[o];
"string" == typeof i && (i = Number.parseInt(i));
var a = n[r];
if (!a) {
a = new Array();
n.push(a);
}
a.push(i);
}
this.curCellRowNumber = this.cellRowNumber;
this.curCellColNumber = this.cellColNumber;
var l = "__Tile_Debug__";
this.editorTileRoot = this.node.findChild(l);
if (!this.editorTileRoot) {
this.editorTileRoot = new cc.Node(l);
this.editorTileRoot.parent = this.node;
}
this.graphics = this.editorTileRoot.getOrAddComponent(cc.Graphics);
};
t.prototype.DestroyTile = function(e, t) {
this.mainMasks[e][t] = 0;
};
t.prototype.DrawTile = function(e, t, n) {
var r = this.graphics, i = this.cellWidth, a = this.cellHeight;
if (0 != e) {
var l = (o.TileMask.All & ~e) / o.TileMask.All * 510;
o.TileMask.All != e ? r.fillColor = cc.color(255 - l, 0, l, 80) : r.fillColor = cc.color(255, 0, 0, 80);
r.fillRect(t - .5 * i, n - .5 * a, i, a);
}
r.strokeColor = cc.color(0, 0, 150, 255);
r.rect(t - .5 * i, n - .5 * a, i, a);
r.stroke();
};
t.prototype.RedrawRect = function() {
this.graphics.clear();
for (var e = 0; e < this.mainMasks.length; e++) for (var t = this.mainMasks[e], n = 0; n < t.length; n++) {
var o = n * this.cellWidth + this.tileOffsetX, r = this.levelHeight - e * this.cellHeight + this.tileOffsetY;
this.DrawTile(t[n], o, r);
}
this.graphics.close();
};
t.prototype.CreateTile = function(e, t, n) {
var r = cc.instantiate(this.tileAsset).getComponent(o.default);
r.node.active = !0;
r.node.setParent(e);
var i = t * this.cellWidth + this.tileOffsetX, a = this.levelHeight - n * this.cellHeight + this.tileOffsetY;
r.node.setPosition(i, a);
r.Set(n, t);
r.tilemap = this;
return r;
};
t.prototype.update = function() {
this.coord.x = Math.floor((this.node.x + .5 * this.levelWidth) / this.levelWidth);
this.coord.y = Math.floor((this.node.y + .5 * this.levelHeight) / this.levelHeight);
this.showGrid && this.RedrawRect();
};
t.prototype.CreateEditTiles = function(e) {
var t = e.split(","), n = this.editorTileRoot;
n.destroyAllChildren();
this.tiles = new Array();
for (var r = 0; r < t.length; r++) {
var i = Math.floor(r / this.cellColNumber), a = Math.floor(r % this.cellColNumber), l = t[r];
"string" == typeof l && (l = Number.parseInt(l));
var s = this.tiles[i];
if (!s) {
s = new Array();
this.tiles.push(s);
}
var c = this.CreateTile(n, a, i);
c.canWalk = l == o.TileMask.None;
c.secondMask = c.canWalk ? o.TileMask.None : o.TileMask.All & ~l;
s.push(c);
}
};
t.prototype.NewTiles = function() {
this.RecalcData();
this.LoadCSVData(this.cvsData);
this.CreateEditTiles(this.cvsData);
};
t.prototype.GenTileData = function() {
for (var e = "", t = 0; t < this.tiles.length; t++) for (var n = this.tiles[t], r = 0; r < n.length; r++) {
var i = n[r].walkable ? o.TileMask.None : o.TileMask.All;
i &= ~n[r].secondMask;
e += r == n.length - 1 && t == this.tiles.length - 1 ? i : i + ",";
}
return e;
};
t.prototype.RecalcData = function() {
this.cvsData = this.GenTileData();
};
t.prototype.OnTileChanged = function() {
this.RecalcData();
this.LoadCSVData(this.cvsData);
};
__decorate([ a({
type: cc.Node
}) ], t.prototype, "tileAsset", void 0);
__decorate([ a ], t.prototype, "cellRowNumber", void 0);
__decorate([ a ], t.prototype, "cellColNumber", void 0);
__decorate([ a ], t.prototype, "cellWidth", void 0);
__decorate([ a ], t.prototype, "cellHeight", void 0);
__decorate([ a ], t.prototype, "cvsData", void 0);
__decorate([ a ], t.prototype, "secData", void 0);
__decorate([ a() ], t.prototype, "showGrid", void 0);
__decorate([ a ], t.prototype, "editMode", void 0);
return __decorate([ i, l ], t);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {
"./Tile": "Tile"
} ],
Tile: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d6fafdGTPxLq6yaGZ5RVNuK", "Tile");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TileMask = void 0;
var o, r = cc._decorator, i = r.ccclass, a = r.property, l = r.executeInEditMode;
(function(e) {
e[e.LanGan = 1] = "LanGan";
e[e.All = 7] = "All";
e[e.None = 0] = "None";
})(o = n.TileMask || (n.TileMask = {}));
var s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.canWalk = !1;
t.secondMask = o.None;
t.row = 0;
t.col = 0;
t.tilemap = null;
t.curWalkable = !1;
t.frame = 5;
return t;
}
t.prototype.Set = function(e, t) {
this.row = e;
this.col = t;
};
Object.defineProperty(t.prototype, "x", {
get: function() {
return this.col;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "y", {
get: function() {
return this.row;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "walkable", {
get: function() {
return this.canWalk;
},
enumerable: !1,
configurable: !0
});
t.prototype.start = function() {
this.curWalkable = this.walkable;
};
t.prototype.update = function() {};
__decorate([ a() ], t.prototype, "canWalk", void 0);
__decorate([ a({
type: cc.Enum(o)
}) ], t.prototype, "secondMask", void 0);
return __decorate([ i, l ], t);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {} ],
TimerSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "ad29fZTvURK7YyxyQCOdBaR", "TimerSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("./BaseSkill"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.passedTime = 0;
return t;
}
Object.defineProperty(t.prototype, "cd", {
get: function() {
return this.context.skillData.cd;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnUpdate = function(e) {
this.passedTime += e;
var t = this.cd;
if (Math.max(0, t - this.passedTime) <= 0) {
this.passedTime = 0;
this.OnTimeOut();
}
};
t.prototype.OnTimeOut = function() {};
return __decorate([ i ], t);
}(o.default));
n.default = a;
cc._RF.pop();
}, {
"./BaseSkill": "BaseSkill"
} ],
TongLingBiShou: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c0965rbO7lM/KxvxXFc3/La", "TongLingBiShou");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../SummonSkill"), r = cc._decorator, i = r.ccclass, a = (r.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = this.GetDamage.bind(this);
return [ 2 ];
});
});
};
t.prototype.GetDamage = function() {
return this.context.owner.weaponSkill.context.GetDamage();
};
return __decorate([ i ], t);
}(o.default));
n.default = a;
cc._RF.pop();
}, {
"../SummonSkill": "SummonSkill"
} ],
TriggerHandler: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "019d7I1h7dK8qxt8zHAIsfc", "TriggerHandler");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = (r.menu, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onCollisionEnter = function() {};
t.prototype.onCollisionExit = function() {};
return __decorate([ i ], t);
}(o.MyComponent));
n.default = a;
cc._RF.pop();
}, {
"../../../Framework/Core/Resource/MyComponent": void 0
} ],
TriggerSource: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "c220cV6V5FM2J71TOS5jw03", "TriggerSource");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/MyComponent"), r = cc._decorator, i = r.ccclass, a = r.property, l = r.menu, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.enableHandler = !0;
t.handler = null;
t.handlerComps = [];
return t;
}
t.prototype.onDestroy = function() {
this.handler = null;
this.handlerComps = null;
};
t.prototype.onLoad = function() {
this.handler && (this.handlerComps = this.handler.getComponents(cc.Component));
};
t.prototype.SetHandler = function(e) {
this.handler = e;
this.handler ? this.handlerComps = this.handler.getComponents(cc.Component) : this.handlerComps = [];
};
t.prototype.onCollisionEnter = function(e, t) {
if (this.enableHandler) for (var n = 0; n < this.handlerComps.length; n++) {
var o = this.handlerComps[n], r = o.onCollisionEnter;
r && r.call(o, e, t);
}
};
t.prototype.onCollisionExit = function(e, t) {
if (this.enableHandler) for (var n = 0; n < this.handlerComps.length; n++) {
var o = this.handlerComps[n], r = o.onCollisionExit;
r && r.call(o, e, t);
}
};
__decorate([ a() ], t.prototype, "enableHandler", void 0);
__decorate([ a(cc.Node) ], t.prototype, "handler", void 0);
return __decorate([ i, l("Battle/TriggerSource") ], t);
}(o.MyComponent);
n.default = s;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0
} ],
TypeHelp: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8d47eRJZFxIFphwX8QD4MGA", "TypeHelp");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.isSubClass = n.isSubPrototype = void 0;
function o(e, t) {
for (var n = e.constructor; n; ) {
if (n == t.constructor) return !0;
var o = n.prototype.__proto__;
n = o ? o.constructor : null;
}
return !1;
}
n.isSubPrototype = o;
n.isSubClass = function(e, t) {
return o(e.prototype, t.prototype);
};
cc._RF.pop();
}, {} ],
Util2D: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "75799TpUqZOYbknyUvvt0IR", "Util2D");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Util2D = n.HitDir = void 0;
var o;
(function(e) {
e[e.HSide = 0] = "HSide";
e[e.VSide = 1] = "VSide";
e[e.None = 2] = "None";
})(o = n.HitDir || (n.HitDir = {}));
var r = function() {
function e() {}
e.Reflect = function(e, t, n) {
var o = 2 * (t.x * n.x + t.y * n.y);
e.x = t.x - o * n.x;
e.y = t.y - o * n.y;
return e;
};
e.LineRectIntersection = function(e, t, n, r, i) {
var a = t.x <= n.x ? t : n, l = t.x <= n.x ? n : t, s = t.y <= n.y ? t : n, c = t.y <= n.y ? n : t, u = r.xMax, p = r.xMin, d = r.yMax, f = r.yMin;
if (i) {
if (a.x <= u && u <= l.x) {
var h = (l.y - a.y) / (l.x - a.x), m = (u - a.x) * h + a.y;
if (s.y <= m && m <= c.y && f <= m && m <= d) {
e.x = u;
e.y = m;
return o.HSide;
}
}
if (a.x <= p && p <= l.x) {
h = (l.y - a.y) / (l.x - a.x), m = (p - a.x) * h + a.y;
if (s.y <= m && m <= c.y && f <= m && m <= d) {
e.x = p;
e.y = m;
return o.HSide;
}
}
} else {
if (s.y <= d && d <= c.y) {
var w = (c.x - s.x) / (c.y - s.y), y = (d - s.y) * w + s.x;
if (a.x <= y && y <= l.x && p <= y && y <= u) {
e.x = y;
e.y = d;
return o.VSide;
}
}
if (s.y <= f && f <= c.y) {
w = (c.x - s.x) / (c.y - s.y), y = (f - s.y) * w + s.x;
if (a.x <= y && y <= l.x && p <= y && y <= u) {
e.x = y;
e.y = f;
return o.VSide;
}
}
}
return o.None;
};
return e;
}();
n.Util2D = r;
cc._RF.pop();
}, {} ],
Util: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "a3f64yWiFdBV60dk+M6G8Hj", "Util");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../../Framework/Core/Resource/EffectManager"), i = e("../../Framework/Core/Resource/SoundsManager"), a = e("../../Framework/Localize/LocalizeManager"), l = e("../../Service/kl"), s = e("../../Service/PlatformService"), c = e("../Config/GameModel"), u = function() {
function e() {}
e.shuffle = function(e) {
for (var t = void 0, n = void 0, o = e.length; o; t = Math.floor(Math.random() * o--), 
n = e[o], e[o] = e[t], e[t] = n) ;
return e;
};
e.getNum = function(e) {
return e < 10 ? "0" + e : e.toFixed(0);
};
e.FormatDateYYYYMMDD = function(t) {
return t.getFullYear() + e.getNum(t.getMonth() + 1) + e.getNum(t.getDate());
};
e.FormatDate = function(t) {
return t.getFullYear() + "-" + e.getNum(t.getMonth() + 1) + "-" + e.getNum(t.getDate()) + " " + e.getNum(t.getHours()) + ":" + e.getNum(t.getMinutes()) + ":" + e.getNum(t.getSeconds());
};
e.SeedRandom = function(e, t, n) {
return l.default.SeedRandom(e, t, n);
};
e.SeedRandomInt = function(e, t, n) {
return l.default.SeedRandomInt(e, t, n);
};
e.Random = function(e, t) {
return l.default.Random(e, t);
};
e.RandomInt = function(e, t) {
return l.default.RandomInt(e, t);
};
e.RandomInt2 = function(e, t) {
return Math.floor(Math.random() * (t - e)) + e;
};
e.Clamp = function(e, t, n) {
return l.default.Clamp(e, t, n);
};
e.Lerp = function(e, t, n) {
return l.default.Lerp(e, t, n);
};
e.R2A = function(e) {
return l.default.R2A(e);
};
e.A2R = function(e) {
return l.default.A2R(e);
};
e.Project = function(e, t) {
return t.mul(e.dot(t) / t.dot(t));
};
e.forward2Angle = function(t) {
if (t.fuzzyEquals(cc.Vec2.ZERO, .05)) return 0;
e.v3.set(t);
var n = e.v3.signAngle(cc.Vec2.RIGHT);
return -e.R2A(Number.isNaN(n) ? 0 : n);
};
e.angle2Forward = function(t, n) {
return cc.Vec2.RIGHT.rotate(e.A2R(t), n);
};
e.LerpAngle = function(e, t, n) {
var o = 0;
o = (t %= 360) - (e %= 360);
if (Math.abs(o) <= 180) return e + o * n;
if (e > t) {
o = 360 - e;
e = 0;
t += o;
} else {
o = 360 - t;
t = 0;
e += o;
}
return (e + (t - e) * n - o) % 360;
};
e.forward = function(e, t, n) {
var o = cc.v2();
e.sub(t, o);
o.normalizeSelf();
n.set(o);
};
e.FormatTimeMMSS = function(e) {
var t = Math.trunc(e / 60), n = Math.ceil(e % 60), o = null;
o = n >= 10 ? "" + n : "0" + n;
t >= 10 ? o = t + ":" + o : t >= 0 && (o = "0" + t + ":" + o);
return o;
};
e.FormatTimeMMSSMsMs = function(e) {
var t = .001 * e, n = Math.trunc(t / 60), o = Math.floor(t % 60), r = null, i = Math.ceil(e % 1e3);
r = (i = Math.trunc(.1 * i)) >= 10 ? "" + i : "0" + i;
r = o >= 10 ? o + ":" + r : "0" + o + ":" + r;
n >= 10 ? r = n + ":" + r : n >= 0 && (r = "0" + n + ":" + r);
return r;
};
e.FormatTimeHHMM = function(e, t) {
void 0 === t && (t = !1);
var n = Math.trunc(e / 3600), o = Math.trunc(e / 60 - 60 * n);
return n + (t ? a.TXT("小时") : ":") + o + (t ? a.TXT("分") : "");
};
e.FormatTimeHHMMSS = function(e, t) {
void 0 === t && (t = !1);
var n = Math.ceil(e % 60), o = Math.trunc(e / 3600), r = Math.trunc(e / 60 - 60 * o), i = null;
i = n >= 10 ? n + (t ? a.TXT("秒") : "") : "0" + n + (t ? a.TXT("秒") : "");
i = r >= 10 ? r + (t ? a.TXT("分") : ":") + i : "0" + r + (t ? a.TXT("分") : ":") + i;
o > 0 && (i = o + (t ? a.TXT("小时") : ":") + i);
return i;
};
e.FormatTimeDDHHMM = function(t, n) {
void 0 === n && (n = !1);
var o = Math.floor(1e3 * t / e.oneDay);
t -= o * e.oneDay * .001;
t = Math.max(t, 0);
var r = Math.trunc(t / 3600), i = Math.trunc(t / 60 - 60 * r), l = "";
l = i >= 10 ? i + (n ? a.TXT("分") : ":") : "0" + i + (n ? a.TXT("分") : ":");
r >= 10 ? l = r + (n ? a.TXT("小时") : ":") + l : r >= 0 && (l = "0" + r + (n ? a.TXT("小时") : ":") + l);
return o + (n ? a.TXT("天") : ":") + l;
};
e.PlayAudioEffect = function(e, t, n) {
void 0 === t && (t = !1);
void 0 === n && (n = !1);
if (e) return i.default.instance.PlayEffectSync(e, n);
};
e.SetImage = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
o.default.Default.SetLocalSprite(e, t);
return [ 2 ];
});
});
};
e.SetImageUrl = function(e, t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
o.default.Default.SetRemoteSprite(e, t);
return [ 2 ];
});
});
};
e.InstantiateChild = function(e, t) {
void 0 === t && (t = 0);
var n = cc.instantiate(e.children[t]);
n.setParent(e);
return n;
};
e.GetOrCreateChild = function(t, n, o) {
void 0 === o && (o = 0);
return t < n.children.length ? n.children[t] : e.InstantiateChild(n, o);
};
e.EnabledAllChild = function(e, t) {
for (var n = 0, o = e.children; n < o.length; n++) o[n].active = t;
};
Object.defineProperty(e, "time", {
get: function() {
return .001 * performance.now();
},
enumerable: !1,
configurable: !0
});
e.SetGameFPS = function(e) {
try {
cc.PhysicsManager.FIXED_TIME_STEP = 1 / e;
cc.game.setFrameRate(e);
} catch (e) {}
};
e.PlayerEffect = function(t, n, o, i, a, l) {
void 0 === i && (i = cc.Vec2.ZERO);
void 0 === a && (a = 0);
void 0 === l && (l = null);
var s = null;
if (o) {
var c = o.data.getPosition(e.v1), u = o.data.angle;
(s = r.EffectManager.PlayEffectSync(t, o, l, i.add(c, e.v2), a + u)).setSiblingIndex(s.parent.childrenCount - 1);
}
n && e.PlayAudioEffect(n);
return s;
};
e.CalcBezierPoint = function(e, t, n, o, r) {
r.x = e.x * Math.pow(1 - o, 2) + n.x * o * (1 - o) * 2 + t.x * Math.pow(o, 2);
r.y = e.y * Math.pow(1 - o, 2) + n.y * o * (1 - o) * 2 + t.y * Math.pow(o, 2);
};
e.Vibrate = function() {
c.default.Instance.enableVibrate && s.default.vibrate();
};
e.oneDay = 864e5;
e.v3 = cc.v2();
e.v1 = cc.v2();
e.v2 = cc.v2();
return e;
}();
n.default = u;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../../Service/PlatformService": void 0,
"../../Service/kl": void 0,
"../Config/GameModel": "GameModel"
} ],
Vector2: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "24563GThx5OjqhWUNx5ELgS", "Vector2");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Vector2 = void 0;
var o = function() {
function e(e, t) {
void 0 === e && (e = 0);
void 0 === t && (t = 0);
this.x = e;
this.y = t;
}
e.prototype.Copy = function(e) {
this.x = e.x;
this.y = e.y;
return this;
};
e.prototype.Clone = function() {
return new e(this.x, this.y);
};
e.prototype.Set = function(e, t) {
this.x = e;
this.y = t;
};
Object.defineProperty(e.prototype, "isZero", {
get: function() {
return 0 == this.x && 0 == this.y;
},
enumerable: !1,
configurable: !0
});
e.prototype.FuzzyEqual = function(e, t) {
void 0 === t && (t = .001);
return Math.abs(this.x - e.x) <= t && Math.abs(this.y - e.y) <= t;
};
e.Add = function(t, n, o) {
void 0 === o && (o = new e());
o.x = t.x + n.x;
o.y = t.y + n.y;
return o;
};
e.Subtract = function(t, n, o) {
void 0 === o && (o = new e());
o.x = t.x - n.x;
o.y = t.y - n.y;
return o;
};
e.Multiply = function(t, n, o) {
void 0 === o && (o = new e());
o.x = t.x * n;
o.y = t.y * n;
return o;
};
e.Divide = function(t, n, o) {
void 0 === o && (o = new e());
o.x = t.x / n;
o.y = t.y / n;
return o;
};
e.Dot = function(e, t) {
return e.x * t.x + e.y * t.y;
};
e.Negate = function(t, n) {
void 0 === n && (n = new e());
n.x = -t.x;
n.y = -t.y;
return n;
};
return e;
}();
n.Vector2 = o;
cc._RF.pop();
}, {} ],
VehicleHUD: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "9e86fF1VsxKeo9+xl3B/1zt", "VehicleHUD");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.VehicleHUD = void 0;
var o = e("./EntityHUD"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
return __decorate([ i ], t);
}(o.EntityHUD));
n.VehicleHUD = a;
cc._RF.pop();
}, {
"./EntityHUD": "EntityHUD"
} ],
Vehicle: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "6907dJ3xMJLDrORYZltPpMv", "Vehicle");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Vehicle = void 0;
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../../Framework/Core/Resource/EffectManager"), i = e("../../Framework/Core/Resource/SoundsManager"), a = e("../../Service/Extension/Input/TouchInput"), l = e("../Config/SkillConfig"), s = e("./Enemy"), c = e("./Entity"), u = e("./LevelContext"), p = e("./Skill/SkillContext"), d = e("./View/MyCameraFollow"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.wheelAnim = null;
t.tanHao = null;
t.destroyEft = null;
t.engineSnd = null;
t.hitEft = null;
t.hitSnd = null;
t.damage = 1;
t.moveSpeed = 200;
t.totalTime = 20;
t.healthPerSec = 10;
t.rider = null;
t.damageContext = new p.default();
t.sndId = null;
t.animState = null;
t.v1 = cc.v2();
t.v2 = cc.v2();
t.input = cc.v2();
return t;
}
t.prototype.onEnable = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.onEnable.call(this);
u.LevelContext.Instance.vehicles.indexOf(this) < 0 && u.LevelContext.Instance.vehicles.push(this);
this.tanHao.active = !0;
this.collider.node.active = !1;
this.hud.node.active = !1;
this.animState = this.anim.getAnimationState(this.anim.defaultClip.name);
this.wheelAnim.enabled = !1;
this.body.velocity = cc.Vec2.ZERO;
return [ 2 ];
});
});
};
t.prototype.onDisable = function() {
e.prototype.onDisable.call(this);
var t = u.LevelContext.Instance.vehicles.indexOf(this);
t >= 0 && u.LevelContext.Instance.vehicles.splice(t, 1);
i.default.instance.StopEffect(this.sndId);
};
t.prototype.OnInit = function() {
this.speed = this.moveSpeed;
var e = this.healthPerSec * this.totalTime;
this.maxHealth = this.health = e;
this.enableUpdateViewDir = !1;
this.hud.node.active = !0;
};
t.prototype.onCollisionEnter = function(e) {
if (this.isActive && "Enemy" == e.node.group) {
var t = e.node.parent.getComponent(s.Enemy);
this.Hit(t);
}
};
t.prototype.Hit = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
t = e.body.position.sub(this.body.position).normalize();
e.HitFly(130, t, .5);
r.EffectManager.PlayEffectSync(null, this.hitEft, u.LevelContext.Instance.effectLayer, e.aimPos);
i.default.instance.PlayEffectSync(this.hitSnd);
return [ 4, this.waitForTime(.5) ];

case 1:
n.sent();
this.damageContext.owner = this;
e.Damage(this.damage, 100, this.damageContext, t) && e.PlayTextEffect(-this.damage, "");
return [ 2 ];
}
});
});
};
t.prototype.OnUpdate = function(t) {
if (this.rider) {
this.UpdateInput();
this.animState.speed = this.health / this.maxHealth < .2 ? 2 : 1;
this.wheelAnim.enabled = !this.body.finalVelocity.equals(cc.Vec2.ZERO);
e.prototype.OnUpdate.call(this, t);
var n = t *= this.healthPerSec;
this.health = Math.max(0, this.health - n);
if (this.dead && this.rider) {
r.EffectManager.PlayEffectSync(null, this.destroyEft, u.LevelContext.Instance.effectLayer, this.body.position, 0, 3);
i.default.instance.PlayEffect("boom");
u.LevelContext.Instance.mainPlayer.ShockAwayMonsters(1300, 300);
u.LevelContext.Instance.cameraShake.Start(3, .15);
this.OnRiderOff();
}
} else {
var o = u.LevelContext.Instance.mainPlayer, a = o.node.getPosition(this.v1), l = this.node.getPosition(this.v2);
!o.isDashing && !o.isJumping && !o.vehicle && cc.Vec2.squaredDistance(a, l) <= 1600 && this.SetRider(o);
}
};
t.prototype.update = function(t) {
e.prototype.update.call(this, t);
this.sndId && this.isActive && i.default.instance.SetVolume(this.sndId, !u.LevelContext.Instance.paused && this.wheelAnim.enabled ? .5 : 0);
};
t.prototype.Damage = function(e, t, n, o) {
void 0 === t && (t = 100);
void 0 === n && (n = null);
void 0 === o && (o = cc.Vec2.ZERO);
this.health = Math.max(0, this.health - e);
return !0;
};
t.prototype.UpdateInput = function() {
var e = u.LevelContext.Instance.joystick;
this.input.set(e.equals(cc.Vec2.ZERO) ? a.default.instance.joystickValue : e.normalize());
this.fireForward.set(this.input);
this.body.velocity = this.input.multiplyScalar(this.speed);
this.enableUpdateViewDir = !this.input.equals(cc.Vec2.ZERO);
this.rider && (this.rider.body.position = this.body.position);
};
t.prototype.OnRiderOff = function() {
var e = u.LevelContext.Instance.mainPlayer;
e.vehicle = null;
e.collider.node.active = !0;
e.visioinCollider.node.active = !0;
e.footCollider.node.active = !0;
e.enableCull = !0;
e.controlableCnt++;
e.node.opacity = 255;
e.hud.node.active = !0;
var t = cc.v2(this.body.position);
u.LevelContext.Instance.camera.getComponent(d.default).SetTarget(e.node);
for (var n = 0; n < 20; n++) {
if (u.LevelContext.Instance.IsWalkable(t.x, t.y)) {
e.body.position = t;
break;
}
t.y += 20;
}
e.wuDiLeftTime += 2;
e.viewEft.ShowTwinkleEffect(2);
this.rider = null;
i.default.instance.StopEffect(this.sndId);
o.default.Default.DestroyNode(this.node);
};
t.prototype.OnRiderOn = function() {
this.OnInit();
var e = this.rider;
this.maxHealth = this.health = this.maxHealth * (1 + .01 * e.GetFeature(l.SkillFeature.VehicleTimeUpPercent));
e.vehicle = this;
e.collider.node.active = !1;
e.visioinCollider.node.active = !1;
e.footCollider.node.active = !1;
e.enableCull = !1;
e.controlableCnt--;
e.node.opacity = 0;
e.hud.node.active = !1;
this.tanHao.active = !1;
this.collider.node.active = !0;
u.LevelContext.Instance.camera.getComponent(d.default).SetTarget(this.node);
this.sndId = i.default.instance.PlayEffectSync(this.engineSnd, !0);
this.broadcastMessage("OnVehicle");
};
t.prototype.SetRider = function(e) {
if (e && null == this.rider) {
this.rider = e;
this.OnRiderOn();
}
};
__decorate([ m(cc.Animation) ], t.prototype, "wheelAnim", void 0);
__decorate([ m(cc.Node) ], t.prototype, "tanHao", void 0);
__decorate([ m(cc.Prefab) ], t.prototype, "destroyEft", void 0);
__decorate([ m(cc.AudioClip) ], t.prototype, "engineSnd", void 0);
__decorate([ m(cc.Prefab) ], t.prototype, "hitEft", void 0);
__decorate([ m(cc.AudioClip) ], t.prototype, "hitSnd", void 0);
__decorate([ m() ], t.prototype, "damage", void 0);
__decorate([ m() ], t.prototype, "moveSpeed", void 0);
__decorate([ m() ], t.prototype, "totalTime", void 0);
__decorate([ m() ], t.prototype, "healthPerSec", void 0);
return __decorate([ h ], t);
}(c.Entity);
n.Vehicle = w;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Service/Extension/Input/TouchInput": void 0,
"../Config/SkillConfig": "SkillConfig",
"./Enemy": "Enemy",
"./Entity": "Entity",
"./LevelContext": "LevelContext",
"./Skill/SkillContext": "SkillContext",
"./View/MyCameraFollow": "MyCameraFollow"
} ],
VideoMessageBoxUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bd2ecJL7WlAOrCZMRIrTXIb", "VideoMessageBoxUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Banner/BannerManager"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.contentLabel = null;
t.confirmLabel = null;
t.cancelLabel = null;
return t;
}
t.prototype.OnSetParams = function(e, t, n, o, r) {
this.contentLabel.string = e;
this.confirmLabel.string = t;
this.cancelLabel.string = n;
this.confirmCb = o;
this.cancelCb = r;
};
t.prototype.OnConfirmClicked = function() {
this.HideView();
this.confirmCb && this.confirmCb();
};
t.prototype.OnCancelClicked = function() {
this.HideView();
this.cancelCb && this.cancelCb();
};
__decorate([ c(cc.Label) ], t.prototype, "contentLabel", void 0);
__decorate([ c(cc.Label) ], t.prototype, "confirmLabel", void 0);
__decorate([ c(cc.Label) ], t.prototype, "cancelLabel", void 0);
return __decorate([ s, o.RegisterBanner(), r.RegisterView("VideoMessageBoxUI", i.ViewLayer.TopLayer) ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../Framework/Core/Banner/BannerManager": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0
} ],
VipCodeComponent: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "af0d690gMdBX6y+OvM3Zne3", "VipCodeComponent");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/UI/PromptUI"), r = e("../../Service/KolaBiService"), i = e("../Config/ArchivementConfig"), a = e("../Config/ChestConfig"), l = e("../Config/EquipmentConfig"), s = e("../Config/GiftConfig"), c = e("./RewardsUI"), u = cc._decorator, p = u.ccclass, d = u.property, f = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.editBox = null;
t.onSuc = null;
t.onFail = null;
return t;
}
t.prototype.onDisable = function() {
this.editBox.string = "";
};
t.prototype.OnRequstClick = function() {
var e = this, t = this.editBox.string;
t && 0 != t.length ? r.default.RequestVipCodeReward(t, function(t) {
for (var n = [], o = 0; o < t.length; o++) {
var r = t[o];
r.itemId = r.type;
r.count = r.value;
"string" == typeof r.value && (r.count = parseInt(r.value));
if ("金币" == r.itemId) n.push(new s.RewardProto(i.UnlockType.Coin, r.count)); else if ("钻石" == r.itemId) n.push(new s.RewardProto(i.UnlockType.Diamond, r.count)); else if ("免广告卡" == r.itemId) n.push(new s.RewardProto(i.UnlockType.AdCard, 1)); else if ("碎片" == r.itemId) if (r.extData && null != r.extData.id && r.extData.id > 0) n.push(new s.RewardProto(i.UnlockType.Piece, r.count, r.extData.id)); else for (var u = a.ChestConfig.GetWeaponRewards(a.ChestConfig.shopWeaponPieceParam, 0, r.count), p = 0; p < u.length; p++) n.push(u[p]); else if ("图纸" == r.itemId) if (r.extData && null != r.extData.id && r.extData.id >= 0) n.push(new s.RewardProto(i.UnlockType.BluePrint, r.count, r.extData.id)); else for (var d = a.ChestConfig.GetBlueprintRewards(a.ChestConfig.shopWeaponStuffParam, r.count), f = 0; f < d.length; f++) n.push(d[f]); else if ("武器" == r.itemId) r.extData && null != r.extData.id && null != r.extData.classLevel && n.push(new s.RewardProto(i.UnlockType.Weapon, r.count, r.extData.id, null, r.extData.classLevel, r.extData.lv)); else if ("活跃" == r.itemId) n.push(new s.RewardProto(i.UnlockType.ActiveValue, r.count)); else if ("扫荡券" == r.itemId) n.push(new s.RewardProto(i.UnlockType.Saodang, r.count)); else if ("时装" == r.itemId) r.extData && null != r.extData.id && r.extData.id > 0 && n.push(new s.RewardProto(i.UnlockType.Equipment, r.count, r.extData.id)); else if ("时装碎片" == r.itemId) {
if (r.extData && null != r.extData.id) if (r.extData.id > 0) n.push(new s.RewardProto(i.UnlockType.EquipmentPiece, r.count, r.extData.id)); else {
u = a.ChestConfig.GetEquipmentRewards(r.extData.type == l.EquipmentType.Mask ? a.ChestConfig.shopMaskParam : a.ChestConfig.shopWingParam, r.extData.type, !1, r.count, null, 3e3 * r.count);
for (var h = 0; h < u.length; h++) n.push(u[h]);
}
} else "时装图纸" == r.itemId && n.push(new s.RewardProto(i.UnlockType.EquipmentBluePrint, r.count));
}
c.default.ShowView("礼包码", n);
e.editBox.string = "";
}, function(e) {
o.default.Show(e);
}) : o.default.Show("请输入兑换码");
};
__decorate([ d(cc.EditBox) ], t.prototype, "editBox", void 0);
return __decorate([ p ], t);
}(cc.Component);
n.default = f;
cc._RF.pop();
}, {
"../../Framework/UI/PromptUI": void 0,
"../../Service/KolaBiService": void 0,
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/ChestConfig": "ChestConfig",
"../Config/EquipmentConfig": "EquipmentConfig",
"../Config/GiftConfig": "GiftConfig",
"./RewardsUI": "RewardsUI"
} ],
Weapon3_Feature: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "0f5f98XLRNKZbZWydpacmjf", "Weapon3_Feature");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/MyComponent"), r = e("../../../Config/SkillConfig"), i = e("../../Player"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 10;
t.accelStep = 2;
t.maxValue = 10;
t.owner = null;
t.isCurMoving = !1;
t.passedTime = 0;
t.acceledValue_ = 0;
return t;
}
Object.defineProperty(t.prototype, "acceledValue", {
get: function() {
return this.acceledValue_;
},
enumerable: !1,
configurable: !0
});
t.prototype.AddAcceledValue = function(e) {
if (0 != e) {
this.acceledValue_ += e;
this.owner.AddFeatureEx(r.SkillFeature.BulletDamageUpPercent, e);
this.owner.ResetFeatures();
}
};
t.prototype.onEnable = function() {
this.owner = this.node.getComponentInParent(i.Player);
};
t.prototype.onDisable = function() {
this.AddAcceledValue(-this.acceledValue);
};
t.prototype.OnUpdate = function(e) {
if (this.owner && this.owner.body) {
this.passedTime += e;
var t = !this.owner.body.velocity.equals(cc.Vec2.ZERO);
if (this.isCurMoving) this.passedTime = 0; else if (t) this.AddAcceledValue(-this.acceledValue); else if (this.passedTime >= this.intervel) {
this.passedTime = 0;
this.acceledValue < this.maxValue && this.AddAcceledValue(this.accelStep);
}
this.isCurMoving = t;
}
};
__decorate([ s() ], t.prototype, "intervel", void 0);
__decorate([ s() ], t.prototype, "accelStep", void 0);
__decorate([ s() ], t.prototype, "maxValue", void 0);
return __decorate([ l ], t);
}(o.MyComponent);
n.default = c;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/MyComponent": void 0,
"../../../Config/SkillConfig": "SkillConfig",
"../../Player": "Player"
} ],
Weapon8_Effect: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3efb8h/Wa5MDalvNtHdhWD2", "Weapon8_Effect");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Service/kl"), r = e("../../LevelContext"), i = e("../EffectHandler"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bullet = null;
t.view = null;
t.delay = 1;
return t;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.view.scaleX = r.LevelContext.Instance.mainPlayer.node.x >= this.node.x ? -1 : 1;
this.Fire();
};
t.prototype.Fire = function() {
return __awaiter(this, void 0, void 0, function() {
var e, t;
return __generator(this, function(n) {
switch (n.label) {
case 0:
return [ 4, this.waitForTime(this.delay) ];

case 1:
n.sent();
(e = cc.v2(o.default.Random(-1, 1), o.default.Random(-1, 1))).normalizeSelf();
t = this.skill.DoCreateBullet(this.bullet, r.LevelContext.Instance.effectLayer, e, this.node.getPosition(), !0, !0);
this.skill.DoInitBullet(t, e);
this.skill.cache.DestroyNode(this.node);
return [ 2 ];
}
});
});
};
__decorate([ s(cc.Prefab) ], t.prototype, "bullet", void 0);
__decorate([ s(cc.Node) ], t.prototype, "view", void 0);
__decorate([ s() ], t.prototype, "delay", void 0);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../../Service/kl": void 0,
"../../LevelContext": "LevelContext",
"../EffectHandler": "EffectHandler"
} ],
WeaponConfig: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "521b1wWO+pI2b1xaEe6YkJG", "WeaponConfig");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.WeaponConfig = n.WeaponProto = n.WeaponClassProp = n.WeaponLevelProp = n.QualityColor = n.WeaponQuality = n.BluePrintTypeName = n.WeaponType = void 0;
var o, r = e("./SkillConfig");
(function(e) {
e[e.HandGun = 0] = "HandGun";
e[e.Bow = 1] = "Bow";
e[e.Cannon = 2] = "Cannon";
e[e.ShotGun = 3] = "ShotGun";
e[e.LaserGun = 4] = "LaserGun";
e[e.Other = 5] = "Other";
e[e.Count = 6] = "Count";
})(o = n.WeaponType || (n.WeaponType = {}));
n.BluePrintTypeName = [ "手枪图纸", "弓箭图纸", "火炮图纸", "散弹枪图纸", "激光枪图纸", "外星图纸" ];
(function(e) {
e[e.Grey = 0] = "Grey";
e[e.Blue = 1] = "Blue";
e[e.Purple = 2] = "Purple";
e[e.Orange = 3] = "Orange";
e[e.Red = 4] = "Red";
e[e.Count = 5] = "Count";
})(n.WeaponQuality || (n.WeaponQuality = {}));
n.QualityColor = [ cc.color().fromHEX("#4C534C"), cc.color().fromHEX("#3567B8"), cc.color().fromHEX("#8B35B8"), cc.color().fromHEX("#DA9147"), cc.color().fromHEX("#DA3D3D") ];
var i = function(e, t, n) {
this.consumeCoin = e;
this.consumeBluePrint = t;
this.features = n;
};
n.WeaponLevelProp = i;
var a = function(e, t, n, o, r, i) {
this.icon = e;
this.res = t;
this.skillPath = n;
this.consumePiece = o;
this.features = r;
this.desc = i;
};
n.WeaponClassProp = a;
var l = function() {
function e(e, t, n, o, r, i, a, l, s, c, u, p, d, f, h, m, w, y, g, v, S, M, k) {
this.id = e;
this.order = t;
this.name = n;
this.desc = o;
this.unlockCoin = r;
this.damage = i;
this.fireSpeed = a;
this.bulletNum = l;
this.capacity = s;
this.reloadTime = c;
this.fireTrigger = u;
this.skillProto = p;
this.mass = d;
this.hitback = f;
this.elementDamage = h;
this.summonDamage = m;
this.dashDamage = w;
this.critDamage = y;
this.crit = g;
this.type = v;
this.schoolWeights = S;
this.levelProps = M;
this.classProps = k;
}
Object.defineProperty(e.prototype, "blueprintIconPath", {
get: function() {
return "UI/Blueprint/" + this.type;
},
enumerable: !1,
configurable: !0
});
e.prototype.GetSkillPath = function(e) {
return "Prefabs/Weapon/" + this.classProps[e - 1].skillPath;
};
e.prototype.GetIconPath = function(e) {
var t = this.classProps[e - 1];
return t ? "Battle/Texture/Weapon/" + t.icon : "";
};
e.prototype.GetResPath = function(e) {
return "Prefabs/Weapon/" + this.classProps[e - 1].res;
};
return e;
}();
n.WeaponProto = l;
var s = function() {
function e() {}
e.GetWeapon = function(t) {
return e.weapons.find(function(e) {
return e.id == t;
});
};
e.GetWeaponBySkillId = function(t) {
for (var n = 0; n < e.weapons.length; n++) {
var o = e.weapons[n];
if (o.skillProto && o.skillProto.id == t) return o;
}
return null;
};
e.weapons = [ new l(1, 1, "手枪", "居家必备的入门武器", 0, 20, 4, 1, 6, 1, "Fire", new r.SkillProto(200001, 1, 0, r.SkillType.Bullet, "手枪", "", "", "", 0, 20, 0, 1, 0, ""), 0, 150, 1, 2, 3, 10, 15, o.HandGun, [ .8, .5, .4, .6, .6 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 2) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 11), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 11), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 11), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]) ], [ new a("1", "1/1", "1/Skill/1", 0, [], ""), new a("1-2", "1/1-2", "1/Skill/1-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.SecKillUpPercent, 1) ], "有1%几率秒杀怪物"), new a("1-3", "1/1-3", "1/Skill/1-3", 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletNumUp, 1) ], "子弹数量+1"), new a("1-4", "1/1-4", "1/Skill/1-4", 50, [], "有10%几率免疫子弹伤害"), new a("1-5", "1/1-5", "1/Skill/1-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BossDamageUpPercent, 2) ], "对BOSS伤害+2%") ]), new l(2, 2, "散弹枪", "射程较短，但杀伤范围较大", 1200, 16, 5, 3, 2, 1, "Fire", new r.SkillProto(200002, 1, 0, r.SkillType.Bullet, "散弹枪", "", "", "", 0, 16, 0, 1, 0, "Prefabs/Skill/Weapon/Weapon2", null, 3), 0, 220, 1, 2, 3, 10, 30, o.ShotGun, [ .6, .95, .6, .7, .7 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 32) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 16) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 13) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 14) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 2) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 4) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 2) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 14) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 4) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]) ], [ new a("2", "2/2", "2/Skill/2", 0, [], ""), new a("2-2", "2/2-2", "2/Skill/2-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.SecKillUpPercent, 1) ], "有1.5%几率秒杀怪物"), new a("2-3", "2/2-3", "2/Skill/2-3", 30, [], "冲刺的路径伤害范围+50%"), new a("2-4", "2/2-4", "2/Skill/2-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletNumUp, 1) ], "子弹数量+1"), new a("2-5", "2/2-5", "2/Skill/2-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BattleCoinUpPercent, 25) ], "结算金币加成+25%") ]), new l(3, 3, "十字弩", "子弹穿透一名敌人，非移动状态下，子弹伤害随时间延长而增加，移动后重置效果", 2500, 30, 6, 1, 1, 1.2, "Fire", new r.SkillProto(200003, 1, 0, r.SkillType.Bullet, "十字弩", "", "", "", 0, 30, 0, 1.2, 0, "Prefabs/Skill/Weapon/Weapon3"), 0, 200, 0, 0, 0, 15, 15, o.Bow, [ .7, .47, .8, .4, .65 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 5), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 8) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 15), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 15), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 15), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]) ], [ new a("4", "4/4", "4/Skill/4", 0, [], ""), new a("4-2", "4/4-2", "4/Skill/4-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.KillEliteHpRecoverRateUpPercent, 8) ], "击杀精英怪有8%几率恢复1点生命"), new a("4-3", "4/4-3", "4/Skill/4-3", 30, [ new r.SkillFeatureProto(r.SkillFeature.VehicleTimeUpPercent, 30) ], "战中拾取战车，持续时间增加30%"), new a("4-4", "4/4-4", "4/Skill/4-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.SummonCDUpPercent, 10) ], "召唤物攻击速度+10%"), new a("4-5", "4/4-5", "4/Skill/4-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BattleCoinUpPercent, 25) ], "结算金币加成+25%") ]), new l(4, 4, "火枪", "子弹对命中的敌人造成每秒3点燃烧伤害", 3500, 8, 6, 1, 10, 1.6, "Fire", new r.SkillProto(200004, 1, 0, r.SkillType.Bullet, "火枪", "", "", "", 0, 8, 0, 1.6, 0, "Prefabs/Skill/Weapon/Weapon4"), 0, 180, 0, 0, 0, 10, 15, o.Cannon, [ .55, .5, .45, .88, .6 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 8) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]) ], [ new a("5", "5/5", "5/Skill/5", 0, [], ""), new a("5-2", "5/5-2", "5/Skill/5-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.BurningTimeUpPercent, 20) ], "燃烧持续时间+20%"), new a("5-3", "5/5-3", "5/Skill/5-3", 30, [ new r.SkillFeatureProto(r.SkillFeature.KillEliteHpRecoverRateUpPercent, 8) ], "击杀精英怪有8%几率恢复1点生命"), new a("5-4", "5/5-4", "5/Skill/5-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.BurningCDUpPercent, 30) ], "燃烧频率+30%"), new a("5-5", "5/5-5", "5/Skill/5-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BossDamageUpPercent, 2) ], "对BOSS伤害+2%") ]), new l(5, 5, "双枪", "两把快枪同时发射子弹", 5500, 10, 4, 2, 12, 2, "Fire", new r.SkillProto(200005, 1, 0, r.SkillType.Bullet, "双枪", "", "", "", 0, 10, 0, 2, 0, "Prefabs/Skill/Weapon/Weapon5", null, 2), 0, 180, 0, 0, 0, 10, 15, o.HandGun, [ .6, .52, .45, .85, .6 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 8), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 5) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]) ], [ new a("i3", "3/3", "3/Skill/3", 0, [], ""), new a("i3-2", "3/3-2", "3/Skill/3-2", 15, [], "有5%几率免疫子弹伤害"), new a("i3-3", "3/3-3", "3/Skill/3-3", 30, [ new r.SkillFeatureProto(r.SkillFeature.FireBallScaleUpPercent, 100) ], "火球体积变大2倍"), new a("i3-4", "3/3-4", "3/Skill/3-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.FreezeTimeUp, .1) ], "冰冻持续时间+0.1秒"), new a("i3-5", "3/3-5", "3/Skill/3-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BattleCoinUpPercent, 20) ], "结算金币加成+20%") ]), new l(6, 6, "龙枪", "发射龙形子弹追击敌人，且子弹附带召唤属性加成", 7e3, 9, 2, 2, 12, 1.5, "Fire", new r.SkillProto(200006, 1, 0, r.SkillType.Bullet | r.SkillType.Summon, "龙枪", "", "", "", 0, 9, 0, 1.5, 0, "Prefabs/Skill/Weapon/Weapon6", null, 2), 0, 200, 0, 0, 0, 10, 17, o.Other, [ .58, .4, .93, .45, .6 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 5), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 8) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 8) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 8) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 8) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 7) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 7) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 8) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 7) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 7) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]) ], [ new a("7", "7/7", "7/Skill/7", 0, [], ""), new a("7-2", "7/7-2", "7/Skill/7-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.SecKillUpPercent, 1) ], "有1%几率秒杀怪物"), new a("7-3", "7/7-3", "7/Skill/7-3", 30, [], "有8%几率免疫子弹伤害"), new a("7-4", "7/7-4", "7/Skill/7-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.SummonCDUpPercent, 1) ], "召唤物攻击速度+10%"), new a("7-5", "7/7-5", "7/Skill/7-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BossDamageUpPercent, 2) ], "对BOSS伤害+2%") ]), new l(7, 7, "榴弹枪", "发射榴弹，爆炸后造成范围伤害", 0, 23, 2.5, 1, 5, 1.5, "Fire", new r.SkillProto(200007, 1, 0, r.SkillType.Bullet, "榴弹枪", "", "", "", 0, 23, 0, 1.5, 0, "Prefabs/Skill/Weapon/Weapon7"), 0, 200, 0, 0, 0, 10, 28, o.Cannon, [ .85, .5, .38, .6, .75 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 5) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 35) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 14), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 14), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 4) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 15), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]) ], [ new a("6", "6/6", "6/Skill/6", 0, [], ""), new a("6-2", "6/6-2", "6/Skill/6-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.SecKillUpPercent, 1) ], "有1.5%几率秒杀怪物"), new a("6-3", "6/6-3", "6/Skill/6-3", 30, [ new r.SkillFeatureProto(r.SkillFeature.VehicleTimeUpPercent, 30) ], "战中拾取战车，持续时间增加30%"), new a("6-4", "6/6-4", "6/Skill/6-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletNumUp, 1) ], "子弹数量+1"), new a("6-5", "6/6-5", "6/Skill/6-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BossDamageUpPercent, 2.5) ], "对BOSS伤害+2.5%") ]), new l(8, 8, "弓箭", "射出的箭将插入地面，一段时间后自动收回", 0, 20, 2.5, 1, 4, 1.2, "Fire", new r.SkillProto(200008, 1, 0, r.SkillType.Bullet, "弓箭", "", "", "", 0, 20, 0, 1.2, 0, "Prefabs/Skill/Weapon/Weapon8"), 0, 180, 0, 0, 0, 10, 15, o.Bow, [ .85, .5, .42, .63, .65 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 2) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 25) ]) ], [ new a("8", "8/8", "8/Skill/8", 0, [], ""), new a("8-2", "8/8-2", "8/Skill/8-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.SecKillUpPercent, 1) ], "有1%几率秒杀怪物"), new a("8-3", "8/8-3", "8/Skill/8-3", 30, [ new r.SkillFeatureProto(r.SkillFeature.KillEliteHpRecoverRateUpPercent, 5) ], "击杀精英怪有5%几率恢复1点生命"), new a("8-4", "8/8-4", "8/Skill/8-4", 50, [], "有10%几率免疫子弹伤害"), new a("8-5", "8/8-5", "8/Skill/8-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BattleCoinUpPercent, 20) ], "结算金币加成+20%") ]), new l(9, 9, "激光枪", "穿透一切物体的远程强力武器", 0, 23, 2, 1, 1, 1.3, "Fire", new r.SkillProto(200009, 1, 0, r.SkillType.Bullet, "激光枪", "", "", "", 0, 23, 0, 1.3, 0, "Prefabs/Skill/Weapon/Weapon9"), 0, 200, 0, 0, 0, 15, 32, o.LaserGun, [ .65, .5, .55, .8, .7 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 5) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 8) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 6) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 8) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 7) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 8) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]) ], [ new a("9", "9/9", "9/Skill/9", 0, [], ""), new a("9-2", "9/9-2", "9/Skill/9-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.SecKillUpPercent, 1) ], "有2%几率秒杀怪物"), new a("9-3", "9/9-3", "9/Skill/9-3", 30, [ new r.SkillFeatureProto(r.SkillFeature.VehicleTimeUpPercent, 35) ], "战中拾取战车，持续时间增加35%"), new a("9-4", "9/9-4", "9/Skill/9-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.KillEliteHpRecoverRateUpPercent, 10) ], "击杀精英怪有10%几率恢复1点生命"), new a("9-5", "9/9-5", "9/Skill/9-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.FreezeTimeUp, .2) ], "冰冻持续时间+0.2秒") ]), new l(10, 10, "真空剑", "快速的射出剑气，造成范围伤害", 0, 35, 2, 1, 3, 1, "Attack", new r.SkillProto(200010, 1, 0, r.SkillType.Bullet, "真空剑", "", "", "", 0, 35, 0, 1, 0, "Prefabs/Skill/Weapon/Weapon10"), 0, 220, 0, 0, 0, 20, 30, o.Other, [ .75, .9, .6, .5, .75 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 4), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 17) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 17) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 4) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 17) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 17) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 4) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 16) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 4) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 17) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 16) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 4) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 16) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 16) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 16) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 2) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 17) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 4) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 16) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 16) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 4) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 16) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 15) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 4) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 17) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 12), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]) ], [ new a("10", "10/10", "10/Skill/10", 0, [], ""), new a("10-2", "10/10-2", "10/Skill/10-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.KillEliteHpRecoverRateUpPercent, 1) ], "击杀精英怪有10%几率恢复1点生命"), new a("10-3", "10/10-3", "10/Skill/10-3", 30, [], "冲刺的路径伤害范围+50%"), new a("10-4", "10/10-4", "10/Skill/10-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletNumUp, 1) ], "子弹数量+1"), new a("10-5", "10/10-5", "10/Skill/10-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.FreezeTimeUp, .2) ], "冰冻持续时间+0.2秒") ]), new l(11, 11, "异形步枪", "外星武器，发射的子弹会穿透并在屏幕边缘反弹", 0, 25, 2, 1, 3, 1.1, "Fire", new r.SkillProto(200011, 1, 0, r.SkillType.Bullet, "异形步枪", "", "", "", 0, 25, 0, 1.1, 0, "Prefabs/Skill/Weapon/Weapon11"), 0, 220, 0, 0, 0, 20, 32, o.Other, [ .68, .53, .85, .63, .7 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 5), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 9) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 5) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 7) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 7) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 7) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 7) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 7) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 3), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 6) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 20) ]) ], [ new a("11", "11/11", "11/Skill/11", 0, [], ""), new a("11-2", "11/11-2", "11/Skill/11-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.SummonCDUpPercent, 10) ], "召唤物攻击速度+10%"), new a("11-3", "11/11-3", "11/Skill/11-3", 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletLastTimeUpPercent, 5) ], "增加10%子弹飞行时长"), new a("11-4", "11/11-4", "11/Skill/11-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletScreenReflectUp, 1) ], "增加1次子弹反弹次数"), new a("11-5", "11/11-5", "11/Skill/11-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BulletLastTimeUpPercent, 5) ], "增加10%子弹飞行时长") ]), new l(12, 12, "重力枪", "发射榴弹，爆炸后造成范围伤害", 0, 20, 1, 1, 1, 2, "Fire", new r.SkillProto(200012, 1, 0, r.SkillType.Bullet, "重力枪", "", "", "", 0, 20, 0, 2, 0, "Prefabs/Skill/Weapon/Weapon12"), 0, 0, 0, 0, 0, 10, 28, o.Cannon, [ .85, .5, .38, .6, .75 ], [ new i(0, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 5) ]), new i(300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(400, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(600, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(500, 8, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(800, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(900, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(1e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1100, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(1e3, 12, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 35) ]), new i(1300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1400, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(1500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(1600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(1800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(2e3, 20, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 14), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(2e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(2200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(2300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(2400, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(2500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(3e3, 25, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(3e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(3200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(3500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(3600, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(3800, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(4e3, 30, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(4e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(4200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(4300, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(4500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(4700, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5e3, 35, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 14), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(5e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 4) ]), new i(5200, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(5300, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(5500, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(5700, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(6e3, 40, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(6e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(6200, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 3) ]), new i(6300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(6500, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(6700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(7e3, 45, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(7e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 3) ]), new i(7300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(7500, 0, [ new r.SkillFeatureProto(r.SkillFeature.DashDamageUp, 4) ]), new i(7700, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 4) ]), new i(8e3, 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 15), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]), new i(8e3, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 2) ]), new i(8200, 0, [ new r.SkillFeatureProto(r.SkillFeature.SummonDamageUp, 2) ]), new i(8300, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(8500, 0, [ new r.SkillFeatureProto(r.SkillFeature.ElementDamageUp, 3) ]), new i(8800, 0, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUp, 3) ]), new i(9e3, 60, [ new r.SkillFeatureProto(r.SkillFeature.BulletDamageUpPercent, 1), new r.SkillFeatureProto(r.SkillFeature.ElementDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.SummonDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.DashDamageUpPercent, 2), new r.SkillFeatureProto(r.SkillFeature.CritUp, 13), new r.SkillFeatureProto(r.SkillFeature.CritDamageUpPercent, 30) ]) ], [ new a("12", "12/12", "12/Skill/12", 0, [], ""), new a("12-2", "12/12-2", "12/Skill/12-2", 15, [ new r.SkillFeatureProto(r.SkillFeature.SecKillUpPercent, 1) ], "有1.5%几率秒杀怪物"), new a("12-3", "12/12-3", "12/Skill/12-3", 30, [ new r.SkillFeatureProto(r.SkillFeature.VehicleTimeUpPercent, 30) ], "战中拾取战车，持续时间增加30%"), new a("12-4", "12/12-4", "12/Skill/12-4", 50, [ new r.SkillFeatureProto(r.SkillFeature.BulletNumUp, 1) ], "子弹数量+1"), new a("12-5", "12/12-5", "12/Skill/12-5", 80, [ new r.SkillFeatureProto(r.SkillFeature.BossDamageUpPercent, 2.5) ], "对BOSS伤害+2.5%") ]) ];
return e;
}();
n.WeaponConfig = s;
cc._RF.pop();
}, {
"./SkillConfig": "SkillConfig"
} ],
WeaponControl: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "856c9tbmBNAx4CgDnAIquXQ", "WeaponControl");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.WeaponControl = void 0;
var o = e("./Entity"), r = e("../../Framework/Core/Resource/MyComponent"), i = e("./Util"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.rotateNodes = [];
t.gunNode = null;
t.wingNode = null;
t.wingFrontNode = null;
t.maskNode = null;
t.reloadNode = null;
t.childOfView = !1;
t.owner = null;
return t;
}
t.prototype.onLoad = function() {
this.owner = this.getComponent(o.Entity);
};
t.prototype.OnUpdate = function() {
if (this.childOfView) {
for (var e = 0 != this.owner.fireForward.x ? Math.sign(this.owner.fireForward.x) : 1, t = 0; t < this.rotateNodes.length; t++) {
(n = this.rotateNodes[t]).scaleX = e;
n.scaleY = e;
n.angle = e * i.default.forward2Angle(this.owner.fireForward);
}
this.gunNode && (this.gunNode.scaleY = e);
} else for (t = 0; t < this.rotateNodes.length; t++) {
var n;
(n = this.rotateNodes[t]).angle = i.default.forward2Angle(this.owner.fireForward);
}
};
__decorate([ s(cc.Node) ], t.prototype, "rotateNodes", void 0);
__decorate([ s(cc.Node) ], t.prototype, "gunNode", void 0);
__decorate([ s(cc.Node) ], t.prototype, "wingNode", void 0);
__decorate([ s(cc.Node) ], t.prototype, "wingFrontNode", void 0);
__decorate([ s(cc.Node) ], t.prototype, "maskNode", void 0);
__decorate([ s(cc.Node) ], t.prototype, "reloadNode", void 0);
__decorate([ s() ], t.prototype, "childOfView", void 0);
return __decorate([ l ], t);
}(r.MyComponent);
n.WeaponControl = c;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0,
"./Entity": "Entity",
"./Util": "Util"
} ],
WeaponData: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "1a8edC2GUNIxpxP3GcPjEIB", "WeaponData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.WeaponData = void 0;
var o = e("../../Framework/Core/Storage/Serializable"), r = e("../../Service/Analys"), i = e("./GameModel"), a = e("./SafeBool"), l = e("./SafeInt"), s = e("./WeaponConfig"), c = function(e) {
__extends(t, e);
function t(t) {
var n = e.call(this) || this;
n.id = 1;
n.unlock = new a.default(!1);
n.visible = !0;
n.level = new l.default(1);
n.classLevel = new l.default(1);
n.piece = new l.default(0);
n.proto_ = null;
n.proto_ = t;
t && (n.id = t.id);
return n;
}
Object.defineProperty(t.prototype, "proto", {
get: function() {
this.proto_ || (this.proto_ = s.WeaponConfig.GetWeapon(this.id));
return this.proto_;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "maxlevel", {
get: function() {
return 12 * this.classLevel.intValue;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "iconPath", {
get: function() {
return this.proto.GetIconPath(this.classLevel.intValue);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "resPath", {
get: function() {
return this.proto.GetResPath(this.classLevel.intValue);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "skillPath", {
get: function() {
return this.proto.GetSkillPath(this.classLevel.intValue);
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isRedPnt", {
get: function() {
if (!this.unlock.boolValue) return !1;
var e = this.classLevel.intValue >= this.proto.classProps.length, t = this.proto.classProps[this.classLevel.intValue];
if (!e && this.piece.intValue >= t.consumePiece) return !0;
var n = this.level.intValue >= this.maxlevel, o = this.proto.levelProps[this.level.intValue];
return !n && i.default.Instance.coin.intValue >= o.consumeCoin && i.default.Instance.GetWeaponBlueprintNum(this.proto.type) >= o.consumeBluePrint;
},
enumerable: !1,
configurable: !0
});
t.prototype.Unlock = function(e) {
this.unlock.boolValue = !0;
r.default.LogModifyItem(e, null, this.proto.name, 1);
};
t.prototype.AddPiece = function(e, t) {
if (0 != e) {
this.piece.intValue += e;
r.default.LogModifyItem(t, null, "[碎片]" + this.proto.name, e);
}
};
t.prototype.GetLevelupFeatures = function(e) {
for (var t = 0, n = 0; n < this.level.intValue; n++) for (var o = this.proto.levelProps[n].features, r = 0; r < o.length; r++) {
var i = o[r];
i.type == e && (t += i.x);
}
return t;
};
t.prototype.GetClassupFeatures = function(e) {
for (var t = 0, n = 0; n < this.classLevel.intValue; n++) for (var o = this.proto.classProps[n].features, r = 0; r < o.length; r++) {
var i = o[r];
i.type == e && (t += i.x);
}
return t;
};
t.prototype.OnDeserialize = function() {};
t.prototype.CopyFrom = function(e, t) {
void 0 === t && (t = !1);
this.id = e.id;
this.unlock.boolValue = e.unlock.boolValue;
this.level.intValue = e.level.intValue;
this.classLevel.intValue = e.classLevel.intValue;
this.piece.intValue = e.piece.intValue;
t && (this.proto_ = e.proto_);
this.proto;
return this;
};
t.Clone = function(e) {
return new t().CopyFrom(e);
};
__decorate([ o.SerializeField("a") ], t.prototype, "id", void 0);
__decorate([ o.SerializeField("b", a.default) ], t.prototype, "unlock", void 0);
__decorate([ o.SerializeField("c") ], t.prototype, "visible", void 0);
__decorate([ o.SerializeField("d", l.default) ], t.prototype, "level", void 0);
__decorate([ o.SerializeField("e", l.default) ], t.prototype, "classLevel", void 0);
__decorate([ o.SerializeField("f", l.default) ], t.prototype, "piece", void 0);
return t;
}(o.default);
n.WeaponData = c;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/Serializable": void 0,
"../../Service/Analys": void 0,
"./GameModel": "GameModel",
"./SafeBool": "SafeBool",
"./SafeInt": "SafeInt",
"./WeaponConfig": "WeaponConfig"
} ],
WeaponDealerUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "db8b1vq85JIXpnukka89bj1", "WeaponDealerUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Storage/SaveManager"), r = e("../../Framework/Core/Views/RegisterView"), i = e("../../Framework/Core/Views/ViewConfig"), a = e("../../Framework/Core/Views/ViewUIComponent"), l = e("../../Framework/UI/PromptUI"), s = e("../../Service/Analys"), c = e("../Battle/LevelContext"), u = e("../Battle/Util"), p = e("../Config/ArchivementConfig"), d = e("../Config/GameModel"), f = e("../Config/GiftConfig"), h = e("../Config/WeaponConfig"), m = e("../Config/WeaponData"), w = cc._decorator, y = w.ccclass, g = w.property, v = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.coinLabel = null;
t.diamondLabel = null;
t.priceSprite = null;
t.hero = null;
t.content = null;
t.busy = !1;
return t;
}
t.prototype.onEnable = function() {
c.LevelContext.Instance.runningCnt--;
};
t.prototype.onDisable = function() {
c.LevelContext.Instance.runningCnt++;
};
t.prototype.update = function() {
this.coinLabel.string = d.default.Instance.coin.intValue.toFixed(0);
this.diamondLabel.string = d.default.Instance.diamond.intValue.toFixed(0);
};
t.prototype.OnSetParams = function() {
this.busy = !1;
var e = c.LevelContext.Instance.sellItems;
this.hero.parent = this.node;
for (var t = 0; t < e.length; t++) {
var n = e[t], o = u.default.GetOrCreateChild(t, this.content), r = h.WeaponConfig.GetWeapon(n.id);
u.default.SetImage(r.GetIconPath(n.cls), o.findChild("Icon").getComponent(cc.Sprite));
o.findChild("NameLabel").getComponent(cc.Label).string = n.cls + "阶" + n.level + "级 " + r.name;
u.default.SetImage(f.RewardProto.GetIconPath(n.coin > 0 ? p.UnlockType.Coin : p.UnlockType.Diamond, 0, 0), o.findChild("PriceCoin").getComponent(cc.Sprite));
o.findChild("PriceLabel").getComponent(cc.Label).string = "x" + (n.coin > 0 ? n.coin : n.diamond);
o.findChild("Lock").active = n.sellout;
o.data = n;
}
this.hero.parent = this.content;
this.hero.setSiblingIndex(0);
s.default.LogEvent("展示试用武器界面");
};
t.prototype.OnBuyClick = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, n, r;
return __generator(this, function(i) {
switch (i.label) {
case 0:
if (this.busy) return [ 2 ];
if ((t = e.target.parent.data).coin > 0 && d.default.Instance.coin.intValue < t.coin) {
l.default.Show("金币不足");
return [ 2 ];
}
if (t.diamond > 0 && d.default.Instance.diamond.intValue < t.diamond) {
l.default.Show("钻石不足");
return [ 2 ];
}
this.busy = !0;
d.default.Instance.AddCoin(-t.coin, "武器商人");
d.default.Instance.AddDiamond(-t.diamond, "武器商人");
t.sellout = !0;
(n = c.LevelContext.Instance.mainPlayer).RemoveWeapon();
(r = new m.WeaponData(h.WeaponConfig.GetWeapon(t.id))).classLevel.intValue = t.cls;
r.level.intValue = t.level;
return [ 4, n.AddWeapon(r) ];

case 1:
i.sent();
n.ResetFeatures();
this.HideView();
o.default.Save(!0);
s.default.LogUseItem("试用武器", c.LevelContext.Instance.levelProto.id, r.id.toFixed(0), 1);
return [ 2 ];
}
});
});
};
__decorate([ g(cc.Label) ], t.prototype, "coinLabel", void 0);
__decorate([ g(cc.Label) ], t.prototype, "diamondLabel", void 0);
__decorate([ g(cc.Sprite) ], t.prototype, "priceSprite", void 0);
__decorate([ g(cc.Node) ], t.prototype, "hero", void 0);
__decorate([ g(cc.Node) ], t.prototype, "content", void 0);
return __decorate([ y, r.RegisterView("WeaponDealerUI", i.ViewLayer.NormalLayer) ], t);
}(a.default);
n.default = v;
cc._RF.pop();
}, {
"../../Framework/Core/Storage/SaveManager": void 0,
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/Analys": void 0,
"../Battle/LevelContext": "LevelContext",
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"../Config/WeaponConfig": "WeaponConfig",
"../Config/WeaponData": "WeaponData"
} ],
WeaponDealer: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "bde1dZ8tIJPMa+aWpcJvDEb", "WeaponDealer");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.WeaponDealer = void 0;
var o = e("../../Framework/Core/Views/ViewUIManager"), r = e("../UI/WeaponDealerUI"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.body = null;
return t;
}
t.prototype.onLoad = function() {};
t.prototype.onCollisionEnter = function() {
o.default.ShowView(r.default);
};
__decorate([ l(cc.Sprite) ], t.prototype, "body", void 0);
return __decorate([ a ], t);
}(cc.Component);
n.WeaponDealer = s;
cc._RF.pop();
}, {
"../../Framework/Core/Views/ViewUIManager": void 0,
"../UI/WeaponDealerUI": "WeaponDealerUI"
} ],
WeaponInfoUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "775b5qRDMhAF6uxqD4Hu/iO", "WeaponInfoUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/AssetManager"), r = e("../../Framework/Localize/LocalizeManager"), i = e("../Battle/Enemy"), a = e("../Battle/Player"), l = e("../Battle/Weapon"), s = e("../Battle/WeaponControl"), c = e("../Config/EquipmentConfig"), u = e("../Config/GameModel"), p = e("../Config/SkillConfig"), d = e("../Config/WeaponConfig"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.curWeaponName = null;
t.curWeaponLevel = null;
t.curWeaponClass = null;
t.baseAttack = null;
t.bulletAttack = null;
t.bulletAttackUp = null;
t.elementAttack = null;
t.elementAttackUp = null;
t.summonAttack = null;
t.summonAttackUp = null;
t.dashAttack = null;
t.dashAttackUp = null;
t.critAttack = null;
t.critAttackUp = null;
t.critValue = null;
t.critValueUp = null;
t.bulletNum = null;
t.bulletCapacity = null;
t.bulletSpeed = null;
t.bulletCd = null;
t.curWeaponDesc = null;
t.classContent = null;
t.curWeapon = null;
return t;
}
t.prototype.Update = function(e) {
this.curWeapon = e;
this.curWeaponName.string = this.curWeapon.proto.name;
this.curWeaponLevel.string = r.LFTXT("{0}/{1}级", this.curWeapon.level.intValue, this.curWeapon.maxlevel);
this.curWeaponClass.string = r.LFTXT("{0}阶", this.curWeapon.classLevel.intValue);
this.curWeaponClass.node.color = d.QualityColor[this.curWeapon.classLevel.intValue - 1];
this.curWeaponDesc.string = this.curWeapon.proto.desc;
this.elementAttack.string = (this.curWeapon.GetLevelupFeatures(p.SkillFeature.ElementDamageUp) + this.curWeapon.proto.elementDamage).toFixed(0);
this.summonAttack.string = (this.curWeapon.GetLevelupFeatures(p.SkillFeature.SummonDamageUp) + this.curWeapon.proto.summonDamage).toFixed(0);
this.dashAttack.string = (this.curWeapon.GetLevelupFeatures(p.SkillFeature.DashDamageUp) + this.curWeapon.proto.dashDamage).toFixed(0);
this.critAttack.string = this.curWeapon.GetLevelupFeatures(p.SkillFeature.CritDamageUpPercent) + this.curWeapon.proto.critDamage + "%";
this.critValue.string = (this.curWeapon.GetLevelupFeatures(p.SkillFeature.CritUp) + this.curWeapon.proto.crit).toFixed(0);
this.bulletAttack.string = (this.curWeapon.GetLevelupFeatures(p.SkillFeature.BulletDamageUp) + this.curWeapon.proto.damage).toFixed(0);
this.bulletNum.string = this.curWeapon.proto.bulletNum.toFixed(0);
this.bulletCapacity.string = this.curWeapon.proto.capacity.toFixed(0);
this.bulletSpeed.string = this.curWeapon.proto.fireSpeed.toFixed(1);
this.bulletCd.string = this.curWeapon.proto.reloadTime.toFixed(1);
this.baseAttack && (this.baseAttack.string = this.curWeapon.proto.damage.toFixed(0));
for (var t = 1; t < this.curWeapon.proto.classProps.length; t++) {
var n = this.curWeapon.proto.classProps[t], o = this.classContent.children[t - 1], i = o.children[0], a = o.children[1], l = this.curWeapon.classLevel.intValue > t;
i.active = !l;
a.active = l;
(l ? a : i).children[1].getComponent(cc.Label).string = n.desc;
}
};
t.UpdateHeroNode = function(e, t, n, r, i) {
return __awaiter(this, void 0, void 0, function() {
var p, d, f, h, m, w, y, g, v, S, M, k;
return __generator(this, function(C) {
switch (C.label) {
case 0:
p = u.default.Instance;
return [ 4, o.default.Default.LoadRes(t.proto.resPath + "_Show") ];

case 1:
if (!(d = C.sent())) return [ 2 ];
f = cc.instantiate(d);
h = f.getComponent(a.Player);
m = h.getComponent(s.WeaponControl);
return n ? [ 4, o.default.Default.LoadRes(n.resPath) ] : [ 3, 3 ];

case 2:
d = C.sent();
(w = cc.instantiate(d)).getComponent(l.Weapon).destroy();
w.setPosition(cc.Vec2.ZERO);
w.setParent(m.gunNode);
C.label = 3;

case 3:
if (r) return [ 3, 8 ];
y = p.equipmentList;
k = 0;
C.label = 4;

case 4:
return k < y.length ? (g = y[k]).isEquip ? [ 4, o.default.Default.LoadRes(g.proto.resPath) ] : [ 3, 6 ] : [ 3, 7 ];

case 5:
d = C.sent();
(v = cc.instantiate(d)).setPosition(cc.Vec2.ZERO);
if (g.proto.type == c.EquipmentType.Wing) {
(S = v.findChild("Front")) && S.setParent(m.wingFrontNode);
v.setParent(m.wingNode);
} else v.setParent(m.maskNode);
C.label = 6;

case 6:
k++;
return [ 3, 4 ];

case 7:
return [ 3, 12 ];

case 8:
k = 0;
C.label = 9;

case 9:
if (!(k < r.length)) return [ 3, 12 ];
g = p.GetEquipment(r[k]);
return [ 4, o.default.Default.LoadRes(g.proto.resPath) ];

case 10:
d = C.sent();
(v = cc.instantiate(d)).setPosition(cc.Vec2.ZERO);
if (g.proto.type == c.EquipmentType.Wing) {
(S = v.findChild("Front")) && S.setParent(m.wingFrontNode);
v.setParent(m.wingNode);
} else v.setParent(m.maskNode);
C.label = 11;

case 11:
k++;
return [ 3, 9 ];

case 12:
m.destroy();
h.destroy();
e.destroyAllChildren();
f.setParent(e);
f.setPosition(cc.Vec2.ZERO);
if (i) {
M = f.getComponentsInChildren(cc.Sprite);
for (k = 0; k < M.length; k++) M[k].setMaterial(0, i);
}
return [ 2 ];
}
});
});
};
t.UpdateEnemyNode = function(e, t, n) {
return __awaiter(this, void 0, void 0, function() {
var r, a, l, s, c, u;
return __generator(this, function(p) {
switch (p.label) {
case 0:
return [ 4, o.default.Default.LoadRes(t.resPath) ];

case 1:
if (!(r = p.sent())) return [ 2 ];
a = cc.instantiate(r);
l = a.getComponent(i.Enemy);
(s = a.getComponent(cc.Animation)) && (s.enabled = !1);
if (l.hud) {
l.hud.destroy();
l.hud = null;
}
l.destroy();
e.destroyAllChildren();
a.setParent(e);
a.setPosition(cc.Vec2.ZERO);
if (n) {
c = a.getComponentsInChildren(cc.Sprite);
for (u = 0; u < c.length; u++) c[u].setMaterial(0, n);
}
return [ 2 ];
}
});
});
};
__decorate([ m(cc.Label) ], t.prototype, "curWeaponName", void 0);
__decorate([ m(cc.Label) ], t.prototype, "curWeaponLevel", void 0);
__decorate([ m(cc.Label) ], t.prototype, "curWeaponClass", void 0);
__decorate([ m(cc.Label) ], t.prototype, "baseAttack", void 0);
__decorate([ m(cc.Label) ], t.prototype, "bulletAttack", void 0);
__decorate([ m(cc.Label) ], t.prototype, "bulletAttackUp", void 0);
__decorate([ m(cc.Label) ], t.prototype, "elementAttack", void 0);
__decorate([ m(cc.Label) ], t.prototype, "elementAttackUp", void 0);
__decorate([ m(cc.Label) ], t.prototype, "summonAttack", void 0);
__decorate([ m(cc.Label) ], t.prototype, "summonAttackUp", void 0);
__decorate([ m(cc.Label) ], t.prototype, "dashAttack", void 0);
__decorate([ m(cc.Label) ], t.prototype, "dashAttackUp", void 0);
__decorate([ m(cc.Label) ], t.prototype, "critAttack", void 0);
__decorate([ m(cc.Label) ], t.prototype, "critAttackUp", void 0);
__decorate([ m(cc.Label) ], t.prototype, "critValue", void 0);
__decorate([ m(cc.Label) ], t.prototype, "critValueUp", void 0);
__decorate([ m(cc.Label) ], t.prototype, "bulletNum", void 0);
__decorate([ m(cc.Label) ], t.prototype, "bulletCapacity", void 0);
__decorate([ m(cc.Label) ], t.prototype, "bulletSpeed", void 0);
__decorate([ m(cc.Label) ], t.prototype, "bulletCd", void 0);
__decorate([ m(cc.RichText) ], t.prototype, "curWeaponDesc", void 0);
__decorate([ m(cc.Node) ], t.prototype, "classContent", void 0);
return __decorate([ h ], t);
}(cc.Component);
n.default = w;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/AssetManager": void 0,
"../../Framework/Localize/LocalizeManager": void 0,
"../Battle/Enemy": "Enemy",
"../Battle/Player": "Player",
"../Battle/Weapon": "Weapon",
"../Battle/WeaponControl": "WeaponControl",
"../Config/EquipmentConfig": "EquipmentConfig",
"../Config/GameModel": "GameModel",
"../Config/SkillConfig": "SkillConfig",
"../Config/WeaponConfig": "WeaponConfig"
} ],
WeaponRedPnt: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "b2eb3oOgPRJXJU+Pwr3yCEC", "WeaponRedPnt");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Config/GameModel"), r = e("./EquipmentRedPnt"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.includeEquiupment = !0;
t.cntLable = null;
t.timeCounter = 0;
return t;
}
n = t;
t.prototype.update = function(e) {
this.timeCounter -= e;
if (this.timeCounter <= 0) {
var t = n.redCnt + (this.includeEquiupment ? r.default.redCnt : 0);
this.node.opacity = t > 0 ? 255 : 0;
this.cntLable.string = t.toFixed(0);
this.timeCounter = 1;
}
};
Object.defineProperty(t, "redCnt", {
get: function() {
if (!o.default.Instance.GetLevel(3).unlock) return 0;
for (var e = 0, t = 0; t < o.default.Instance.weaponList.length; t++) o.default.Instance.weaponList[t].isRedPnt && e++;
return e;
},
enumerable: !1,
configurable: !0
});
var n;
__decorate([ l() ], t.prototype, "includeEquiupment", void 0);
__decorate([ l(cc.Label) ], t.prototype, "cntLable", void 0);
return n = __decorate([ a ], t);
}(cc.Component);
n.default = s;
cc._RF.pop();
}, {
"../Config/GameModel": "GameModel",
"./EquipmentRedPnt": "EquipmentRedPnt"
} ],
WeaponUI_Equipment: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "2f959urtQlFubuJh/r5K2vK", "WeaponUI_Equipment");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/EffectManager"), r = e("../../Framework/Core/Resource/SoundsManager"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("../../Framework/UI/PromptUI"), l = e("../Battle/Util"), s = e("../Config/ArchivementConfig"), c = e("../Config/EquipmentConfig"), u = e("../Config/GameModel"), p = e("../Config/GiftConfig"), d = e("./WeaponInfoUI"), f = cc._decorator, h = f.ccclass, m = f.property, w = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.content = null;
t.featrueContent = null;
t.heroNode = null;
t.totalBlueprint = null;
t.curEquipSprite = null;
t.curEquipDesc = null;
t.outputDesc = null;
t.equipName = null;
t.unlockPiece = null;
t.unlockPieceIcon = null;
t.unlockBlueprint = null;
t.equipBtn = null;
t.unequipBtn = null;
t.unlockBtn = null;
t.curEquip = null;
return t;
}
t.prototype.onDisable = function() {
this.heroNode.destroyAllChildren();
};
t.prototype.onEnable = function() {
this.UpdateEquipList();
var e = u.default.Instance, t = e.GetHero(e.selectedHeroId), n = e.GetWeapon(e.selectedWeaponId);
d.default.UpdateHeroNode(this.heroNode, t, n);
};
t.prototype.UpdateEquipList = function() {
for (var e = u.default.Instance.equipmentList, t = function(t) {
var o = e[t], r = l.default.GetOrCreateChild(t, n.content);
r.name = o.id.toFixed(0);
var i = r.findChild("icon");
l.default.SetImage(o.proto.iconPath, i.getComponent(cc.Sprite));
i.scale = o.proto.type == c.EquipmentType.Wing ? 1 : 2;
var a = o.unlock.boolValue ? cc.Color.WHITE : cc.Color.BLACK;
i.color = a;
r.findChild("Equip").active = o.isEquip;
r.findChild("RedPnt").active = !o.unlock.boolValue && o.piece.intValue >= o.proto.unlockPieces;
var u = r.findChild("Blueprint");
l.default.SetImage(p.RewardProto.GetPieceIconPath(s.UnlockType.EquipmentPiece, o.id), u.findChild("BlueprintIcon").getComponent(cc.Sprite));
u.getComponent(cc.Label).string = o.piece.intValue.toFixed(0);
u.active = !o.unlock.boolValue;
for (var d = r.findChild("Bgs"), f = 0; f < d.children.length; f++) d.children[f].active = f == o.proto.quality;
if (n.curEquip == o || null == n.curEquip && 0 == t) {
n.scheduleOnce(function() {
r.getComponent(cc.Toggle).check();
}, .05);
n.curEquip = o;
n.UpdateCurEquip();
}
}, n = this, o = 0; o < e.length; o++) t(o);
this.totalBlueprint.string = u.default.Instance.equipmentBlueprintCount.intValue.toFixed(0);
};
t.prototype.UpdateCurEquip = function() {
l.default.SetImage(this.curEquip.proto.iconPath, this.curEquipSprite);
this.curEquipSprite.node.color = this.curEquip.unlock.boolValue ? cc.Color.WHITE : cc.Color.BLACK;
this.curEquipSprite.node.scale = this.curEquip.proto.type == c.EquipmentType.Wing ? 1.5 : 3;
this.curEquipDesc.string = this.curEquip.proto.desc;
this.outputDesc.string = this.curEquip.proto.outputDesc;
this.outputDesc.node.active = !this.curEquip.unlock.boolValue;
this.equipName.string = this.curEquip.proto.name;
for (var e = 0; e < this.featrueContent.children.length; e++) {
var t = this.curEquip.proto.features[e], n = this.featrueContent.children[e];
n.active = null != t;
n.active && (n.children[1].getComponent(cc.Label).string = t.desc);
}
this.unlockPiece.string = this.curEquip.piece.intValue + "/" + this.curEquip.proto.unlockPieces;
this.unlockPiece.node.color = this.curEquip.piece.intValue >= this.curEquip.proto.unlockPieces ? cc.Color.WHITE : cc.Color.RED;
this.unlockBlueprint.string = u.default.Instance.equipmentBlueprintCount.intValue + "/" + this.curEquip.proto.unlockBluePrints;
this.unlockBlueprint.node.color = u.default.Instance.equipmentBlueprintCount.intValue >= this.curEquip.proto.unlockBluePrints ? cc.Color.WHITE : cc.Color.RED;
this.unlockBtn.node.active = !this.curEquip.unlock.boolValue;
this.equipBtn.node.active = this.curEquip.unlock.boolValue && !this.curEquip.isEquip;
this.unequipBtn.node.active = this.curEquip.unlock.boolValue && this.curEquip.isEquip;
l.default.SetImage(p.RewardProto.GetPieceIconPath(s.UnlockType.EquipmentPiece, this.curEquip.id), this.unlockPieceIcon);
};
t.prototype.OnWeaponItemClick = function(e) {
var t = Number.parseInt(e.target.name);
this.curEquip = u.default.Instance.GetEquipment(t);
this.UpdateCurEquip();
};
t.prototype.OnWeaponUnlockClick = function() {
if (this.curEquip.piece.intValue < this.curEquip.proto.unlockPieces) a.default.Show("碎片不足"); else if (u.default.Instance.equipmentBlueprintCount.intValue < this.curEquip.proto.unlockBluePrints) a.default.Show("图纸不足"); else {
this.curEquip.Unlock("解锁时装");
this.curEquip.AddPiece(-this.curEquip.proto.unlockPieces, "解锁时装");
u.default.Instance.AddEquipmentBlueprint(-this.curEquip.proto.unlockBluePrints, "解锁时装");
u.default.Save();
o.EffectManager.PlayEffect(null, "Prefabs/Effect/Weapon_LevelupEF", this.curEquipSprite.node, cc.Vec2.ZERO, 0, .3);
r.default.instance.PlayEffect("weaponLevelup");
this.UpdateEquipList();
}
};
t.prototype.OnWeaponEquipClick = function() {
for (var e = u.default.Instance, t = e.equipmentList, n = 0; n < t.length; n++) {
var o = t[n];
o.proto.type == this.curEquip.proto.type && (o.isEquip = this.curEquip == o);
}
u.default.Save(!0);
this.UpdateEquipList();
var r = e.GetHero(e.selectedHeroId), i = e.GetWeapon(e.selectedWeaponId);
d.default.UpdateHeroNode(this.heroNode, r, i);
};
t.prototype.OnWeaponUnequipClick = function() {
this.curEquip.isEquip = !1;
u.default.Save(!0);
this.UpdateEquipList();
var e = u.default.Instance, t = e.GetHero(e.selectedHeroId), n = e.GetWeapon(e.selectedWeaponId);
d.default.UpdateHeroNode(this.heroNode, t, n);
};
__decorate([ m(cc.Node) ], t.prototype, "content", void 0);
__decorate([ m(cc.Node) ], t.prototype, "featrueContent", void 0);
__decorate([ m(cc.Node) ], t.prototype, "heroNode", void 0);
__decorate([ m(cc.Label) ], t.prototype, "totalBlueprint", void 0);
__decorate([ m(cc.Sprite) ], t.prototype, "curEquipSprite", void 0);
__decorate([ m(cc.RichText) ], t.prototype, "curEquipDesc", void 0);
__decorate([ m(cc.Label) ], t.prototype, "outputDesc", void 0);
__decorate([ m(cc.Label) ], t.prototype, "equipName", void 0);
__decorate([ m(cc.Label) ], t.prototype, "unlockPiece", void 0);
__decorate([ m(cc.Sprite) ], t.prototype, "unlockPieceIcon", void 0);
__decorate([ m(cc.Label) ], t.prototype, "unlockBlueprint", void 0);
__decorate([ m(cc.Button) ], t.prototype, "equipBtn", void 0);
__decorate([ m(cc.Button) ], t.prototype, "unequipBtn", void 0);
__decorate([ m(cc.Button) ], t.prototype, "unlockBtn", void 0);
return __decorate([ h ], t);
}(i.default);
n.default = w;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"../../Framework/UI/PromptUI": void 0,
"../Battle/Util": "Util",
"../Config/ArchivementConfig": "ArchivementConfig",
"../Config/EquipmentConfig": "EquipmentConfig",
"../Config/GameModel": "GameModel",
"../Config/GiftConfig": "GiftConfig",
"./WeaponInfoUI": "WeaponInfoUI"
} ],
WeaponUI_SchoolGraph: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "be186jceW5MWa+KHqiS2r5P", "WeaponUI_SchoolGraph");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = cc._decorator, r = o.ccclass, i = o.property, a = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.g = null;
return t;
}
t.prototype.Draw = function(e) {
this.g.clear();
this.DrawItem(115, e, !1);
this.DrawItem(85, e, !1);
this.DrawItem(55, e, !1);
this.DrawItem(115, e, !0);
};
t.prototype.DrawItem = function(e, t, n) {
for (var o = this.g, r = [], i = 0; i < t.schoolWeights.length; i++) {
var a = n ? t.schoolWeights[i] : 1;
r.push(new cc.Vec2(0, a * e).rotate(i * Math.PI * 2 / 5));
}
o.moveTo(r[0].x, r[0].y);
for (i = 0; i < r.length; i++) {
var l = r[(i + 1) % r.length];
o.lineTo(l.x, l.y);
}
n ? o.fill() : o.stroke();
};
__decorate([ i(cc.Graphics) ], t.prototype, "g", void 0);
return __decorate([ r ], t);
}(cc.Component);
n.default = a;
cc._RF.pop();
}, {} ],
WeaponUI_Weapon: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "12f36LyMb9L65r/9HxpbhE6", "WeaponUI_Weapon");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Resource/EffectManager"), r = e("../../Framework/Core/Resource/SoundsManager"), i = e("../../Framework/Core/Views/ViewUIManager"), a = e("../../Framework/UI/MessageBoxUI"), l = e("../../Framework/UI/PromptUI"), s = e("../../Service/PlatformService"), c = e("../Battle/Util"), u = e("../Config/Config"), p = e("../Config/GameModel"), d = e("../Config/SkillConfig"), f = e("./CopyLevelUI"), h = e("./FreeCoinsUI"), m = e("./LevelUI"), w = e("./ShopUI"), y = e("./WeaponInfoUI"), g = e("./WeaponUI_SchoolGraph"), v = cc._decorator, S = v.ccclass, M = v.property, k = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.weaponScrollView = null;
t.weaponContent = null;
t.graph = null;
t.curWeaponSprite = null;
t.coinLabel = null;
t.blueprintLabel = null;
t.blueprintSprite = null;
t.blueprintSprite1 = null;
t.levelupBtn = null;
t.levelupCoins = null;
t.levelupBlueprints = null;
t.levelupMaxTip = null;
t.classupBtn = null;
t.classupPieces = null;
t.classupMaxTip = null;
t.buyBtn = null;
t.buyCoins = null;
t.systemLabel = null;
t.outputLabel = null;
t.inputLock = null;
t.infoContent = null;
t.curWeapon = null;
return t;
}
Object.defineProperty(t.prototype, "systemActive", {
get: function() {
return p.default.Instance.GetLevel(3).unlock;
},
enumerable: !1,
configurable: !0
});
t.prototype.update = function() {
this.coinLabel.string = p.default.Instance.coin.intValue.toFixed(0);
};
t.prototype.onEnable = function() {
var e = p.default.Instance;
this.curWeapon = e.GetWeapon(e.selectedWeaponId);
this.UpdateWeaponList();
this.graph.Draw(this.curWeapon.proto);
this.inputLock.active = !1;
};
t.prototype.UpdateWeaponList = function() {
for (var e = this.systemActive, t = p.default.Instance.weaponList, n = function(n) {
var r = t[n], i = c.default.GetOrCreateChild(n, o.weaponContent);
i.active = r.visible;
i.name = r.id.toFixed(0);
var a = i.findChild("icon");
c.default.SetImage(r.iconPath, a.getComponent(cc.Sprite));
var l = r.unlock.boolValue ? cc.Color.WHITE : cc.Color.BLACK;
a.color = l;
for (var s = i.findChild("Bgs"), u = 0; u < s.children.length; u++) s.children[u].active = u == r.classLevel.intValue - 1;
i.findChild("RedPnt").active = e && r.isRedPnt;
i.findChild("Blueprint").getComponent(cc.Label).string = r.piece.intValue.toFixed(0);
if (o.curWeapon == r || null == o.curWeapon && 0 == n) {
o.scheduleOnce(function() {
i.getComponent(cc.Toggle).check();
}, .05);
o.curWeapon = r;
o.UpdateCurWeapon(e);
}
}, o = this, r = 0; r < t.length; r++) n(r);
};
t.prototype.UpdateCurWeapon = function(e) {
this.infoContent.Update(this.curWeapon);
this.blueprintLabel.string = p.default.Instance.GetWeaponBlueprintNum(this.curWeapon.proto.type).toFixed(0);
this.curWeaponSprite.node.color = this.curWeapon.unlock.boolValue ? cc.Color.WHITE : cc.Color.BLACK;
c.default.SetImage(this.curWeapon.iconPath, this.curWeaponSprite);
c.default.SetImage(this.curWeapon.proto.blueprintIconPath, this.blueprintSprite);
c.default.SetImage(this.curWeapon.proto.blueprintIconPath, this.blueprintSprite1);
var t = this.curWeapon.classLevel.intValue >= this.curWeapon.proto.classProps.length, n = this.curWeapon.proto.classProps[this.curWeapon.classLevel.intValue];
this.classupPieces.node.parent.active = !t;
this.classupMaxTip.active = t;
if (!t) {
this.classupPieces.string = this.curWeapon.piece.intValue + "/" + n.consumePiece;
this.classupPieces.node.color = this.curWeapon.piece.intValue >= n.consumePiece ? cc.Color.WHITE : cc.Color.RED;
}
var o = this.curWeapon.level.intValue >= this.curWeapon.maxlevel, r = this.curWeapon.proto.levelProps[this.curWeapon.level.intValue];
this.levelupBlueprints.node.parent.active = !o;
this.levelupMaxTip.active = o;
if (!o) {
this.levelupCoins.string = r.consumeCoin.toFixed(0);
this.levelupBlueprints.string = r.consumeBluePrint.toFixed(0);
this.levelupBlueprints.node.active = r.consumeBluePrint > 0;
this.levelupCoins.node.color = p.default.Instance.coin.intValue >= r.consumeCoin ? cc.Color.WHITE : cc.Color.RED;
this.levelupBlueprints.node.color = p.default.Instance.GetWeaponBlueprintNum(this.curWeapon.proto.type) >= r.consumeBluePrint ? cc.Color.WHITE : cc.Color.RED;
}
var i = this.infoContent;
i.bulletAttackUp.string = "";
i.elementAttackUp.string = "";
i.summonAttackUp.string = "";
i.dashAttackUp.string = "";
i.critAttackUp.string = "";
i.critValueUp.string = "";
if (!o) for (var a = 0; a < r.features.length; a++) {
var l = r.features[a];
switch (l.type) {
case d.SkillFeature.BulletDamageUp:
i.bulletAttackUp.string = "+" + l.x;
break;

case d.SkillFeature.ElementDamageUp:
i.elementAttackUp.string = "+" + l.x;
break;

case d.SkillFeature.SummonDamageUp:
i.summonAttackUp.string = "+" + l.x;
break;

case d.SkillFeature.DashDamageUp:
i.dashAttackUp.string = "+" + l.x;
break;

case d.SkillFeature.CritDamageUpPercent:
i.critAttackUp.string = "+" + l.x + "%";
break;

case d.SkillFeature.CritUp:
i.critValueUp.string = "+" + l.x;
break;

case d.SkillFeature.BulletDamageUpPercent:
i.bulletAttackUp.string = "+" + l.x + "%";
break;

case d.SkillFeature.ElementDamageUpPercent:
i.elementAttackUp.string = "+" + l.x + "%";
break;

case d.SkillFeature.SummonDamageUpPercent:
i.summonAttackUp.string = "+" + l.x + "%";
break;

case d.SkillFeature.DashDamageUpPercent:
i.dashAttackUp.string = "+" + l.x + "%";
}
}
var s = !this.curWeapon.unlock.boolValue && this.curWeapon.proto.unlockCoin > 0;
this.buyCoins.string = this.curWeapon.proto.unlockCoin.toFixed(0);
this.outputLabel.node.active = !this.curWeapon.unlock.boolValue && this.curWeapon.proto.unlockCoin <= 0;
this.systemLabel.node.active = !e;
this.buyBtn.node.active = s;
this.levelupBtn.node.active = e && this.curWeapon.unlock.boolValue;
this.classupBtn.node.active = e && this.curWeapon.unlock.boolValue;
};
t.prototype.OnWeaponItemClick = function(e) {
var t = Number.parseInt(e.target.name);
this.curWeapon = p.default.Instance.GetWeapon(t);
this.UpdateCurWeapon(this.systemActive);
this.graph.Draw(this.curWeapon.proto);
};
t.prototype.OnWeaponBuyClick = function() {
if (p.default.Instance.coin.intValue < this.curWeapon.proto.unlockCoin) p.default.Instance.dailyAdFreeCoinsCnt.value > 0 ? i.default.ShowView(h.default) : l.default.Show("金币不足"); else {
p.default.Instance.AddCoin(-this.curWeapon.proto.unlockCoin, "购买武器");
this.curWeapon.Unlock("购买武器");
this.UpdateWeaponList();
this.broadcastMessage("OnWeaponBuy", this.curWeapon.id);
p.default.Save();
l.default.Show("购买成功");
}
};
t.prototype.OnWeaponLevelupClick = function() {
if (this.curWeapon.level.intValue >= this.curWeapon.maxlevel) this.curWeapon.classLevel.intValue >= this.curWeapon.proto.classProps.length ? l.default.Show("已满级!") : l.default.Show("已达到本阶最高等级，请先升阶!"); else {
var e = this.curWeapon.proto.levelProps[this.curWeapon.level.intValue];
if (p.default.Instance.coin.intValue < e.consumeCoin) p.default.Instance.dailyAdFreeCoinsCnt.value > 0 ? i.default.ShowView(h.default) : l.default.Show("金币不足"); else if (p.default.Instance.GetWeaponBlueprintNum(this.curWeapon.proto.type) < e.consumeBluePrint) s.default.payable || p.default.Instance.diamond.intValue > 0 ? a.default.ShowButton2AndClose("图纸不足", "获取更多武器图纸？", {
text: "关卡",
callback: function() {
i.default.ShowView(m.default);
}
}, {
text: "商城",
callback: function() {
i.default.ShowView(w.default, null);
}
}) : a.default.ShowButtonAndClose("图纸不足", "获取更多武器图纸？", {
text: "关卡",
callback: function() {
i.default.ShowView(m.default);
}
}); else {
this.curWeapon.level.intValue += 1;
p.default.Instance.AddCoin(-e.consumeCoin, "升级武器");
p.default.Instance.AddWeaponBlueprintNum(this.curWeapon.proto.type, -e.consumeBluePrint, "升级武器");
this.UpdateWeaponList();
this.broadcastMessage("OnWeaponLevelup", this.curWeapon.id, this.curWeapon.level.intValue);
p.default.Save();
o.EffectManager.PlayEffect(null, "Prefabs/Effect/Weapon_LevelupEF", this.curWeaponSprite.node, cc.Vec2.ZERO, 0, .3);
r.default.instance.PlayEffect("weaponLevelup");
}
}
};
t.prototype.OnWeaponClassupClick = function() {
return __awaiter(this, void 0, void 0, function() {
var e;
return __generator(this, function(t) {
switch (t.label) {
case 0:
if (this.curWeapon.classLevel.intValue >= this.curWeapon.proto.classProps.length) {
l.default.Show("已达到最高阶级!");
return [ 2 ];
}
e = this.curWeapon.proto.classProps[this.curWeapon.classLevel.intValue];
if (this.curWeapon.piece.intValue < e.consumePiece) {
s.default.payable || p.default.Instance.diamond.intValue > 0 ? a.default.ShowButton2AndClose("碎片不足", "获取更多武器碎片？", {
text: "试炼",
callback: function() {
i.default.ShowView(f.default, u.BattleMode.Fragment1);
}
}, {
text: "商城",
callback: function() {
i.default.ShowView(w.default, null);
}
}) : a.default.ShowButtonAndClose("碎片不足", "获取更多武器碎片？", {
text: "试炼",
callback: function() {
i.default.ShowView(f.default, u.BattleMode.Fragment1);
}
});
return [ 2 ];
}
this.curWeapon.classLevel.intValue += 1;
this.curWeapon.AddPiece(-e.consumePiece, "武器进阶");
this.broadcastMessage("OnWeaponClassup", this.curWeapon.id, this.curWeapon.classLevel.intValue);
p.default.Save();
o.EffectManager.PlayEffect(null, "Prefabs/Effect/Weapon_ShengJieEF", this.curWeaponSprite.node, cc.Vec2.ZERO, 0, .3);
r.default.instance.PlayEffect("weaponClassup");
this.inputLock.active = !0;
return [ 4, this.waitForTime(1.1) ];

case 1:
t.sent();
this.inputLock.active = !1;
this.UpdateWeaponList();
return [ 2 ];
}
});
});
};
__decorate([ M(cc.ScrollView) ], t.prototype, "weaponScrollView", void 0);
__decorate([ M(cc.Node) ], t.prototype, "weaponContent", void 0);
__decorate([ M(g.default) ], t.prototype, "graph", void 0);
__decorate([ M(cc.Sprite) ], t.prototype, "curWeaponSprite", void 0);
__decorate([ M(cc.Label) ], t.prototype, "coinLabel", void 0);
__decorate([ M(cc.Label) ], t.prototype, "blueprintLabel", void 0);
__decorate([ M(cc.Sprite) ], t.prototype, "blueprintSprite", void 0);
__decorate([ M(cc.Sprite) ], t.prototype, "blueprintSprite1", void 0);
__decorate([ M(cc.Button) ], t.prototype, "levelupBtn", void 0);
__decorate([ M(cc.Label) ], t.prototype, "levelupCoins", void 0);
__decorate([ M(cc.Label) ], t.prototype, "levelupBlueprints", void 0);
__decorate([ M(cc.Node) ], t.prototype, "levelupMaxTip", void 0);
__decorate([ M(cc.Button) ], t.prototype, "classupBtn", void 0);
__decorate([ M(cc.Label) ], t.prototype, "classupPieces", void 0);
__decorate([ M(cc.Node) ], t.prototype, "classupMaxTip", void 0);
__decorate([ M(cc.Button) ], t.prototype, "buyBtn", void 0);
__decorate([ M(cc.Label) ], t.prototype, "buyCoins", void 0);
__decorate([ M(cc.Label) ], t.prototype, "systemLabel", void 0);
__decorate([ M(cc.Label) ], t.prototype, "outputLabel", void 0);
__decorate([ M(cc.Node) ], t.prototype, "inputLock", void 0);
__decorate([ M(y.default) ], t.prototype, "infoContent", void 0);
return __decorate([ S ], t);
}(cc.Component);
n.default = k;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/EffectManager": void 0,
"../../Framework/Core/Resource/SoundsManager": void 0,
"../../Framework/Core/Views/ViewUIManager": void 0,
"../../Framework/UI/MessageBoxUI": void 0,
"../../Framework/UI/PromptUI": void 0,
"../../Service/PlatformService": void 0,
"../Battle/Util": "Util",
"../Config/Config": "Config",
"../Config/GameModel": "GameModel",
"../Config/SkillConfig": "SkillConfig",
"./CopyLevelUI": "CopyLevelUI",
"./FreeCoinsUI": "FreeCoinsUI",
"./LevelUI": "LevelUI",
"./ShopUI": "ShopUI",
"./WeaponInfoUI": "WeaponInfoUI",
"./WeaponUI_SchoolGraph": "WeaponUI_SchoolGraph"
} ],
WeaponUI: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "3b089kWNHZPPrX0jvc8CL4t", "WeaponUI");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../Framework/Core/Views/RegisterView"), r = e("../../Framework/Core/Views/ViewConfig"), i = e("../../Framework/Core/Views/ViewUIComponent"), a = e("./WeaponUI_Equipment"), l = e("./WeaponUI_Weapon"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.weaponTab = null;
t.weaponContent = null;
t.equipmentTab = null;
t.equipmentContent = null;
return t;
}
t.prototype.OnSetParams = function() {};
t.prototype.OnTabClick = function(e, t) {
this.weaponContent.node.active = "1" == t;
this.equipmentContent.node.active = "2" == t;
};
__decorate([ u(cc.Toggle) ], t.prototype, "weaponTab", void 0);
__decorate([ u(l.default) ], t.prototype, "weaponContent", void 0);
__decorate([ u(cc.Toggle) ], t.prototype, "equipmentTab", void 0);
__decorate([ u(a.default) ], t.prototype, "equipmentContent", void 0);
return __decorate([ c, o.RegisterView("WeaponUI", r.ViewLayer.NormalLayer, r.ViewShowRule.HideAllView) ], t);
}(i.default);
n.default = p;
cc._RF.pop();
}, {
"../../Framework/Core/Views/RegisterView": void 0,
"../../Framework/Core/Views/ViewConfig": void 0,
"../../Framework/Core/Views/ViewUIComponent": void 0,
"./WeaponUI_Equipment": "WeaponUI_Equipment",
"./WeaponUI_Weapon": "WeaponUI_Weapon"
} ],
Weapon: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "8f4de9zyYJP76TmaFW+pL4O", "Weapon");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Weapon = void 0;
var o = e("../../Framework/Core/Resource/MyComponent"), r = e("./Player"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.guns = [];
t.firePnts = [];
t.player = null;
return t;
}
t.prototype.onLoad = function() {
this.player = this.node.getComponentInParent(r.Player);
this.player.gunFirePnt = this.firePnts[0];
this.player.weapon = this;
};
t.prototype.OnUpdate = function() {
this.node.scaleY = Math.sign(this.player.view.scaleX);
};
t.prototype.GetFirePos = function(e) {
var t = this.firePnts[e % this.firePnts.length].convertToWorldSpaceAR(cc.Vec2.ZERO);
return this.player.node.parent.convertToNodeSpaceAR(t);
};
__decorate([ l(cc.Node) ], t.prototype, "guns", void 0);
__decorate([ l(cc.Node) ], t.prototype, "firePnts", void 0);
return __decorate([ a ], t);
}(o.MyComponent);
n.Weapon = s;
cc._RF.pop();
}, {
"../../Framework/Core/Resource/MyComponent": void 0,
"./Player": "Player"
} ],
Wix_FeatureSkill: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "59009x5VcVN2qNdetFDcgf/", "Wix_FeatureSkill");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../../Framework/Core/Resource/EffectManager"), r = e("../../../../../Framework/Core/Resource/SoundsManager"), i = e("../../../../Messaging/MessageBroadcastReceiver"), a = e("../../../Enemy"), l = e("../../EffectSkill"), s = cc._decorator, c = s.ccclass, u = (s.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.triggerInterval = 1.5;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
i.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
i.RemoveBroadcastReceiver(this);
};
t.prototype.OnHitEntity = function(e) {
var t;
if (e.context.isBulletSkill && e.target instanceof a.Enemy) {
var n = e.target, i = Date.now();
if (i - (null !== (t = n.wixSkillTriggerStartTime) && void 0 !== t ? t : 0) >= 1e3 * this.triggerInterval) {
var l = o.EffectManager.PlayEffectSync(null, this.fireEffect, e.target.aimPnt, cc.Vec2.ZERO), s = Math.min(l.width, l.height), c = e.target.bodySize > 0 ? e.target.bodySize : Math.min(e.target.node.width, e.target.node.height);
l.scale = Math.clamp(.7 * c / s, 1, 2);
r.default.instance.PlayEffectSync(this.fireSound);
this.context.ResetHitResult();
this.context.DamageEnity(e.target, cc.Vec2.RIGHT);
n.wixSkillTriggerStartTime = i;
}
}
};
__decorate([ i.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ c ], t);
}(l.default));
n.default = u;
cc._RF.pop();
}, {
"../../../../../Framework/Core/Resource/EffectManager": void 0,
"../../../../../Framework/Core/Resource/SoundsManager": void 0,
"../../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../../Enemy": "Enemy",
"../../EffectSkill": "EffectSkill"
} ],
XieDao: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "11730zRlphL17le3DeLa3bB", "XieDao");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../BaseSkill"), i = e("./DiaoLing2"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.initBuffRatio = 0;
return t;
}
n = t;
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
n.Instance = this;
this.initBuffRatio = this.buffRatio;
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
n.Instance = null;
};
t.prototype.OnHitEntity = function(e) {
if (e.target && e.context.owner == this.context.owner && e.context.isBulletSkill) {
this.buffRatio = this.initBuffRatio + (i.default.IsActive ? i.default.TriggerBuffRatio : 0);
this.context.TryBuff(e.target);
}
};
var n;
t.Instance = null;
__decorate([ o.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return n = __decorate([ l ], t);
}(r.default));
n.default = s;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill",
"./DiaoLing2": "DiaoLing2"
} ],
XieMu: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4445cH+09pCF5p79rPWEE4i", "XieMu");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../Util"), i = e("../BaseSkill"), a = e("../BulletSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletCount = 10;
t.damageRatio = .15;
return t;
}
n = t;
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n = this;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
this.context.getDamageFunc = function() {
return t.weaponSkill.context.getDamageFunc() * n.damageRatio;
};
return [ 2 ];
});
});
};
t.prototype.OnPlayerFireBullet = function(e) {
return __awaiter(this, void 0, void 0, function() {
var t, o, i, l, s;
return __generator(this, function(c) {
switch (c.label) {
case 0:
if (0 != e.bulletNum) return [ 2 ];
if (!(e.weaponSkill instanceof a.default)) return [ 2 ];
t = e.weaponSkill;
o = 360 / this.bulletCount;
i = o / 3 * (n.index % 3);
n.index++;
l = 0;
c.label = 1;

case 1:
if (!(l < this.bulletCount)) return [ 3, 4 ];
(s = t.CreateBullet(r.default.angle2Forward(o * l + i), e.aimPos)).damage = Math.max(1, t.context.GetDamage() * this.damageRatio);
s.critable = !1;
return [ 4, this.waitForTime(.06) ];

case 2:
c.sent();
c.label = 3;

case 3:
l++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
var n;
t.index = 0;
__decorate([ c() ], t.prototype, "bulletCount", void 0);
__decorate([ c() ], t.prototype, "damageRatio", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnPlayerFireBullet", null);
return n = __decorate([ s ], t);
}(i.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../Util": "Util",
"../BaseSkill": "BaseSkill",
"../BulletSkill": "BulletSkill"
} ],
XinYangShouHu_Effect: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "381b262TsJMJ6S//koomORa", "XinYangShouHu_Effect");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = e("./XinYangShouHu"), i = cc._decorator, a = i.ccclass, l = (i.property, 
function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
t.prototype.onEnable = function() {
e.prototype.onEnable.call(this);
this.context.owner.AddListener(this);
};
t.prototype.onDisable = function() {
this.context.owner.RemoveListener(this);
e.prototype.onDisable.call(this);
};
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
r.default.IsActive && this.OnXinYangShouHuBegin();
return [ 2 ];
});
});
};
t.prototype.OnXinYangShouHuBegin = function() {
this.OnEffectBegin(this.context.owner);
};
t.prototype.OnXinYangShouHuEnd = function() {
this.OnEffectEnd(this.context.owner);
};
t.prototype.OnEffectBegin = function() {};
t.prototype.OnEffectEnd = function() {};
return __decorate([ a ], t);
}(o.default));
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill",
"./XinYangShouHu": "XinYangShouHu"
} ],
XinYangShouHu: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "36a55gzG19E1o5zVksfoxZf", "XinYangShouHu");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../Talent/Blessing"), r = e("../TimerSkill"), i = e("./ShenShengShouHu"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.eft = null;
return t;
}
n = t;
Object.defineProperty(t.prototype, "cd", {
get: function() {
return Math.max(0, (i.default.IsActive ? i.default.NewCd : this.context.skillData.cd) - o.default.reduceSeconds);
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
n.Instance = this;
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
this.eft = null;
n.IsActive = !1;
n.Instance = null;
};
t.prototype.start = function() {
this.OnTimeOut();
};
t.prototype.OnTimeOut = function() {
this.context.isCleared = !1;
this.eft = this.context.cache.CreateNodeSync(this.context.fireEffect, this.context.owner.aimPnt, cc.Vec2.ZERO);
this.context.owner.leftShieldCnt += 1;
n.IsActive = !0;
this.context.owner.SendMessage("OnXinYangShouHuBegin");
};
t.prototype.OnUpdate = function(t) {
if (this.eft) {
var o = this.context.owner;
if (o.leftShieldCnt <= 0) {
this.context.cache.DestroyNode(this.eft);
this.eft = null;
n.IsActive = !1;
this.context.owner.SendMessage("OnXinYangShouHuEnd");
o.ShockAwayMonsters(1300, 300);
}
} else e.prototype.OnUpdate.call(this, t);
};
var n;
t.IsActive = !1;
t.Instance = null;
return n = __decorate([ l ], t);
}(r.default));
n.default = s;
cc._RF.pop();
}, {
"../Talent/Blessing": "Blessing",
"../TimerSkill": "TimerSkill",
"./ShenShengShouHu": "ShenShengShouHu"
} ],
YanJing: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7e78bjYt8RFroioI/jfeGpg", "YanJing");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = (r.property, function(e) {
__extends(t, e);
function t() {
return null !== e && e.apply(this, arguments) || this;
}
Object.defineProperty(t.prototype, "summonFeatureOpt", {
get: function() {
return this.context.skillData.proto.summonFeaturesOpt;
},
enumerable: !1,
configurable: !0
});
t.prototype.OnInit = function(t) {
return __awaiter(this, void 0, void 0, function() {
var n;
return __generator(this, function() {
e.prototype.OnInit.call(this, t);
if (!(n = this.context.owner.GetSummon(this.summonFeatureOpt.summonId))) return [ 2 ];
n.yanJingSkillContext = this.context;
return [ 2 ];
});
});
};
return __decorate([ i ], t);
}(o.default));
n.default = a;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
YeLi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "47a71qZ1HJJQIUUH6BKRJBL", "YeLi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../../LevelContext"), a = e("../BaseSkill"), l = e("./XieDao"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.killCnt = 10;
t.maxAddRatio = 30;
t.addBulletDamageUpPerercent = 1;
t.addedRatio = 0;
t.killedCnt = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnKillEnemy = function(e, t) {
if (t && t.skillData && l.default.Instance && t.skillData.id == l.default.Instance.context.skillData.id) {
this.killedCnt++;
if (this.killedCnt >= this.killCnt) {
this.killedCnt = 0;
if (this.addedRatio < this.maxAddRatio) {
this.addedRatio += this.addBulletDamageUpPerercent;
i.LevelContext.Instance.mainPlayer.AddFeatureEx(o.SkillFeature.BulletDamageUpPercent, this.addBulletDamageUpPerercent);
}
}
}
};
__decorate([ u() ], t.prototype, "killCnt", void 0);
__decorate([ u() ], t.prototype, "maxAddRatio", void 0);
__decorate([ u() ], t.prototype, "addBulletDamageUpPerercent", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ c ], t);
}(a.default);
n.default = p;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill",
"./XieDao": "XieDao"
} ],
YiQiFengFa: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "1726byYK2dIrJURHEosiHFQ", "YiQiFengFa");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Config/SkillConfig"), r = e("../../../Messaging/MessageBroadcastReceiver"), i = e("../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 10;
t.accelStep = 10;
t.maxValue = 40;
t.acceledValue_ = 0;
return t;
}
Object.defineProperty(t.prototype, "acceledValue", {
get: function() {
return this.acceledValue_;
},
enumerable: !1,
configurable: !0
});
t.prototype.AddAcceledValue = function(e) {
this.acceledValue_ += e;
var t = this.context.owner;
t.AddFeatureEx(o.SkillFeature.PlayerSpeedUpPercent, e);
t.AddFeatureEx(o.SkillFeature.BulletDamageUpPercent, e);
t.ResetFeatures();
};
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.onEnable = function() {
this.StartTask();
};
t.prototype.StartTask = function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.waitForTime(this.intervel) ];

case 1:
e.sent();
this.acceledValue < this.maxValue && this.AddAcceledValue(this.accelStep);
return [ 3, 0 ];

case 2:
return [ 2 ];
}
});
});
};
t.prototype.OnHitEntity = function(e) {
e.target == this.context.owner && this.AddAcceledValue(-this.acceledValue);
};
__decorate([ s() ], t.prototype, "intervel", void 0);
__decorate([ s() ], t.prototype, "accelStep", void 0);
__decorate([ s() ], t.prototype, "maxValue", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Config/SkillConfig": "SkillConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill"
} ],
YiXinZhengDao: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "d0a94Qlge9Pj6a1L8U0LjdF", "YiXinZhengDao");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../BaseSkill"), i = e("../ShengDao/ShengDao"), a = e("../XinYangShouHu/XinYangShouHu"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.fangHuZhaoReliveTimeDesc = 1;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnKillEnemy = function(e, t) {
t && t.skillData && i.default.Instance && t.skillData.id == i.default.Instance.context.skillData.id && a.default.Instance && !a.default.IsActive && (a.default.Instance.passedTime += this.fangHuZhaoReliveTimeDesc);
};
__decorate([ c() ], t.prototype, "fangHuZhaoReliveTimeDesc", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnKillEnemy", null);
return __decorate([ s ], t);
}(r.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../BaseSkill": "BaseSkill",
"../ShengDao/ShengDao": "ShengDao",
"../XinYangShouHu/XinYangShouHu": "XinYangShouHu"
} ],
YongQi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "96947zZmFVHyLwQNR1DUIsF", "YongQi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("./BaseTalentSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.radius = 200;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnBulletReloadEnd = function() {
var e = this.context.owner;
if (cc.isValid(e)) for (var t = r.LevelContext.Instance.GetEnemysInRadius(e, this.radius), n = cc.v2(), o = 0; o < t.length; o++) {
var i = t[o];
if (this.hitbackForce > 0 && this.hitbackTime > 0 && !i.staitcCollision && i.hitFlyAble) {
var a = i.proto.mass, l = this.hitbackForce - a;
if (l > 0) {
cc.Vec2.subtract(n, i.body.position, e.body.position).normalizeSelf();
var s = n.multiplyScalar(l);
i.body.AddForce(s.x, s.y, this.hitbackTime);
}
}
}
};
__decorate([ s() ], t.prototype, "radius", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnBulletReloadEnd", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
YuZhen: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "1d5755QxR1GaY8Xabuhmyt2", "YuZhen");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("../../LevelContext"), i = e("../BulletSkill"), a = e("./BaseTalentSkill"), l = cc._decorator, s = l.ccclass, c = l.property, u = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.radius = 200;
t.damageRatio = .2;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnPlayerFireBullet = function(e) {
if (0 == e.bulletNum && e.weaponSkill instanceof i.default) for (var t = r.LevelContext.Instance.GetEnemysInRadius(e, this.radius), n = 0; n < t.length; n++) {
var o = t[n], a = e.weaponSkill.context.GetDamage(o) * this.damageRatio * this.context.talentData.lv;
a = Math.max(1, a);
o.Damage(a, 100, this.context) && o.PlayTextEffect(-a, null);
}
};
__decorate([ c() ], t.prototype, "radius", void 0);
__decorate([ c() ], t.prototype, "damageRatio", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnPlayerFireBullet", null);
return __decorate([ s ], t);
}(a.default);
n.default = u;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BulletSkill": "BulletSkill",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
YuanSuBiHu: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "786edbvc0ROEIaTNVd7EHHt", "YuanSuBiHu");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("./BaseTalentSkill"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.triggerTalentCnt = 50;
t.triggerTalentPercent = 1;
t.cnt = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnFreeze = function() {
this.DoOnElementBuff();
};
t.prototype.OnBurn = function() {
this.DoOnElementBuff();
};
t.prototype.DoOnElementBuff = function() {
if (cc.isValid(this.context.owner)) {
this.cnt++;
if (this.cnt == this.triggerTalentCnt) {
this.cnt = 0;
var e = this.context.owner;
Math.random() < this.triggerTalentPercent * this.context.talentData.lv * .01 && e.AddWudiTime(this.buffTime);
}
}
};
t.prototype.OnSave = function() {
return {
t: this.cnt
};
};
t.prototype.OnLoad = function(e) {
this.cnt = e.t;
};
__decorate([ l() ], t.prototype, "triggerTalentCnt", void 0);
__decorate([ l() ], t.prototype, "triggerTalentPercent", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnFreeze", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnBurn", null);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
YuanSuSheJi: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "14fde6oOPpBgbOMaFOoba76", "YuanSuSheJi");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../Messaging/MessageBroadcastReceiver"), r = e("./BaseTalentSkill"), i = cc._decorator, a = i.ccclass, l = i.property, s = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletIntervelUpPercent = 50;
t.bulletCDUpPercent = 50;
t.triggerTalentCnt = 50;
t.cnt = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
o.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
o.RemoveBroadcastReceiver(this);
};
t.prototype.OnFreeze = function() {
this.DoOnElementBuff();
};
t.prototype.OnBurn = function() {
this.DoOnElementBuff();
};
t.prototype.DoOnElementBuff = function() {
if (cc.isValid(this.context.owner)) {
this.cnt++;
if (this.cnt == this.triggerTalentCnt) {
this.cnt = 0;
var e = this.context.owner, t = {
bulletIntervelUpPercent: this.bulletIntervelUpPercent * this.context.talentData.lv,
bulletCDUpPercent: this.bulletCDUpPercent * this.context.talentData.lv
};
e.AddBuff(this.buff, this.buffTime, this.context, t);
}
}
};
t.prototype.OnSave = function() {
return {
t: this.cnt
};
};
t.prototype.OnLoad = function(e) {
this.cnt = e.t;
};
__decorate([ l() ], t.prototype, "bulletIntervelUpPercent", void 0);
__decorate([ l() ], t.prototype, "bulletCDUpPercent", void 0);
__decorate([ l() ], t.prototype, "triggerTalentCnt", void 0);
__decorate([ o.BroadcastHandler ], t.prototype, "OnFreeze", null);
__decorate([ o.BroadcastHandler ], t.prototype, "OnBurn", null);
return __decorate([ a ], t);
}(r.default);
n.default = s;
cc._RF.pop();
}, {
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"./BaseTalentSkill": "BaseTalentSkill"
} ],
ZaiSheng: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "56a06sf7ohDv6ay5cHoSWft", "ZaiSheng");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../BaseSkill"), r = cc._decorator, i = r.ccclass, a = r.property, l = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.intervel = 5;
t.hp = 1;
return t;
}
t.prototype.start = function() {
var e = this;
this.RepeatRun(this.intervel, function() {
e.context.owner.AddHealth(e.hp);
});
};
__decorate([ a() ], t.prototype, "intervel", void 0);
__decorate([ a() ], t.prototype, "hp", void 0);
return __decorate([ i ], t);
}(o.default);
n.default = l;
cc._RF.pop();
}, {
"../BaseSkill": "BaseSkill"
} ],
ZhanSha: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "7a1bcGbjDVKF4uVZPmeqCLL", "ZhanSha");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Framework/Core/Resource/EffectManager"), r = e("../../../Config/MonsterConfig"), i = e("../../../Messaging/MessageBroadcastReceiver"), a = e("../../LevelContext"), l = e("../BaseSkill"), s = cc._decorator, c = s.ccclass, u = s.property, p = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.ratio = .05;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
i.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
i.RemoveBroadcastReceiver(this);
};
t.prototype.OnHitEntity = function(e) {
var t = e.target;
if (e.target && e.context.owner == this.context.owner && t.proto.type != r.MonsterType.Boss && t.health / t.maxHealth < this.ratio) {
o.EffectManager.PlayEffect(null, "Prefabs/Effect/MiaoSaEF", a.LevelContext.Instance.effectLayer, t.aimPos);
t.Damage(t.health, 100, this.context, cc.Vec2.ZERO);
}
};
__decorate([ u ], t.prototype, "ratio", void 0);
__decorate([ i.BroadcastHandler ], t.prototype, "OnHitEntity", null);
return __decorate([ c ], t);
}(l.default);
n.default = p;
cc._RF.pop();
}, {
"../../../../Framework/Core/Resource/EffectManager": void 0,
"../../../Config/MonsterConfig": "MonsterConfig",
"../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../LevelContext": "LevelContext",
"../BaseSkill": "BaseSkill"
} ],
ZhiMingZhuoShang: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "497300YctJMZZgJHdsNA9jC", "ZhiMingZhuoShang");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Config/SkillConfig"), r = e("../../../../Messaging/MessageBroadcastReceiver"), i = e("../../BaseSkill"), a = cc._decorator, l = a.ccclass, s = a.property, c = function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.bulletIntervalUpPercent = 10;
t.totalFeature = 0;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnBurnDamage = function() {
var e = this.context.owner;
if (cc.isValid(e)) {
e.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, this.bulletIntervalUpPercent);
e.ResetFeatures();
this.totalFeature += this.bulletIntervalUpPercent;
}
};
t.prototype.OnBulletReloadEnd = function() {
var e = this.context.owner;
if (cc.isValid(e)) {
e.AddFeatureEx(o.SkillFeature.BulletIntervelUpPercent, -this.totalFeature);
e.ResetFeatures();
this.totalFeature = 0;
}
};
__decorate([ s() ], t.prototype, "bulletIntervalUpPercent", void 0);
__decorate([ r.BroadcastHandler ], t.prototype, "OnBurnDamage", null);
__decorate([ r.BroadcastHandler ], t.prototype, "OnBulletReloadEnd", null);
return __decorate([ l ], t);
}(i.default);
n.default = c;
cc._RF.pop();
}, {
"../../../../Config/SkillConfig": "SkillConfig",
"../../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../BaseSkill": "BaseSkill"
} ],
ZhuanJia: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "098a2Qcm8JK0rCc50uflqgP", "ZhuanJia");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = e("../../../../Config/BattleSkillData"), r = e("../../../../Messaging/MessageBroadcastReceiver"), i = e("../../BaseSkill"), a = cc._decorator, l = a.ccclass, s = (a.property, 
function(e) {
__extends(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.isTrick = !1;
return t;
}
t.prototype.onLoad = function() {
e.prototype.onLoad.call(this);
r.AddBroadcastReceiver(this);
};
t.prototype.onDestroy = function() {
e.prototype.onDestroy.call(this);
r.RemoveBroadcastReceiver(this);
};
t.prototype.OnAddSkill = function(e) {
if (this.isTrick) r.RemoveBroadcastReceiver(this); else if (e.proto.id != this.context.skillData.proto.id) {
r.RemoveBroadcastReceiver(this);
this.context.owner.AddSkillByData(o.BattleSkillData.Clone(e));
this.isTrick = !0;
}
};
t.prototype.OnSave = function() {
return {
t: this.isTrick
};
};
t.prototype.OnLoad = function(e) {
this.isTrick = e.t;
};
__decorate([ r.BroadcastHandler ], t.prototype, "OnAddSkill", null);
return __decorate([ l ], t);
}(i.default));
n.default = s;
cc._RF.pop();
}, {
"../../../../Config/BattleSkillData": "BattleSkillData",
"../../../../Messaging/MessageBroadcastReceiver": "MessageBroadcastReceiver",
"../../BaseSkill": "BaseSkill"
} ]
}, {}, [ "AntiAddiction", "AntiAddictionComponent", "AntiAddictionUI", "AI", "AIComponent", "AISkillTrigger_Cd", "AISkillTrigger_Distance", "AISkillTrigger_OnDead", "ChasePlayerAI", "CrossMovementAI", "SinMovementAI", "SkillPatternAI", "AnimationIgnoreTimeScale", "AreaLimitedRVOBody", "BodyAreaLimited", "BossWall", "Buff", "Buff_Burning", "Buff_Chaos", "Buff_Ethereal", "Buff_Freeze", "Buff_Intervel", "Buff_Palsy", "Buff_RecoverHp", "Buff_ShiQiDaZhen", "Buff_Silent", "Buff_Speed", "Buff_Timer", "Buff_Twine", "Buff_WuDi", "Buff_YuanSuSheJi", "Buff_ZuZhou", "CameraWall", "CameraWorldRect", "CollisionItem", "Enemy", "EffectHandler_Slowdown", "Enemy_08", "Enemy_10", "Enemy_11", "Enemy_13", "Enemy_26_Fan", "Enemy_36", "Skill_Enemy_Frog", "EnemyGroup", "Enemy_SceneConfig", "Entity", "EntityHUD", "GravityArea", "HitMask", "Item", "ItemContainer", "ItemSpawner", "Item_Box", "LeveFixedBg", "LeveFixedScrollBg", "LevelBgItem", "LevelBgManager", "LevelBgManager_3", "LevelBgManager_3_v", "LevelBgManager_Static", "LevelMonsterSpawn", "MonsterSpanwnMgr", "LevelContext", "LevelManager", "LevelStatistics", "LimitedNodePool", "LinearBody", "LockArea", "MapItem", "MicroAnimation", "MyAnimation", "MyParticleSystem", "ParticleIgnoreTimeScale", "Player", "PlayerGhost", "PlayerHUD", "PlayerVision", "RenderSorter", "AbstractSkill", "BaseBullet", "BaseBullet_ContinuousDamage", "BaseSkill", "BoomBullet", "Boss6BombFire", "BossSplitBullet", "Boss_Buff_Burning", "BulletSkill_Multi_Random", "BulletSkill_Multi_X", "EffectSkill_Boom_Raser", "EffectSkill_Boom_Raser_Arc", "EffectSkill_Boom_Raser_Grid", "EffectSkill_Boom_Raser_Horizonal", "EffectSkill_Boom_Raser_Rotate", "EffectSkill_Raser", "EffectSkill_RaserRotate", "Rush", "RushSectionHandler", "RushSectionHandlerBullet", "RushSectionHandlerEffect", "RushSectionHandlerSummon", "SkillJump", "SpawnBullet", "SummonEnemySkill", "BulletMovement", "BulletMovement_Accel", "BulletMovement_Bezier", "BulletMovement_Circle", "BulletMovement_Curve", "BulletMovement_Follow", "BulletMovement_HV", "BulletSkill", "BulletSkill_Multi", "BulletSkill_Multi_FirePnts", "ChaoZai", "JiBingLieYan", "NvRen", "ShiQiDaZhen", "SiWangWenYi", "YiXinZhengDao", "LingHunBuJi", "RongGuangHuanFa", "DashSkill", "EffectHandler", "EffectHandler_Buff", "EffectHandler_ContinuousDamage", "EffectHandler_Damage", "EffectHandler_EnemyDamage", "EffectLayer", "EffectSkill", "EffectSkill_Boom", "EffectSkill_Continuous", "EffectSkill_Multi", "EffectSkill_Target", "ExpCircle", "ShuiDan", "BingFengBao", "HanBingFoMo", "HanBingFoMo2", "HanBingSuiPian", "AiLiSi_FeatureSkill", "SiWangJiaSu", "B2_FeatureSkill", "KuaiSuBaQiang", "ZhiMingZhuoShang", "ShanDianBaoFa", "ShanDianHuoHua", "Wix_FeatureSkill", "FeiSheng", "ZhuanJia", "BaoLieChongCi", "HuoYanChongCi", "NuHuoChongJi", "NuHuoChongJi2", "HuoYanFuMo", "HuoYanXinXing", "NuanLiu", "ISkill", "ChiLieZhiYan", "YiQiFengFa", "HuanRanYiXin", "QiaoHunDanJia", "DianLiChongNeng", "HuanLeiChong", "LeiDianZhiPei", "LiRenChongCi", "LiRenXuanZhuan", "LiRenXuanZhuan2", "LiRenXuanZhuan3", "LongLuan_Summon", "LongZhiLuoYin", "ZhanSha", "JuJiao", "LengJing", "MoJing_Summon", "YanJing", "NuMou", "SuiPianBingFa", "LeiTingChongCi", "LeiTingChongCi2", "PiaoYiChongCi", "ShanDianChongCi", "ShengDao", "ShengEn", "ShengLing", "ShengXin", "ShengXin2", "BaoNu", "ZaiSheng", "XieMu", "SkillContext", "SplitBullet", "SummonBulletSkill_Multi", "SummonFeatureSkill", "SummonSkill", "BaseTalentSkill", "Blessing", "BoLiDaPao", "Cadence", "ChongJiShouWei", "ChongJiShouWei_Summon", "Dedication", "DongLiZhuanHuan", "Ethereal", "Growth", "Guardian", "GunGlyph", "Healing", "JianRen", "LastStand", "ManYan", "MiShu", "SecondWind", "YongQi", "YuZhen", "YuanSuBiHu", "YuanSuSheJi", "TimerSkill", "TongLingBiShou", "TriggerHandler", "BulletMovement_Weapon8_Effect", "Weapon3_Feature", "Weapon8_Effect", "DiaoLing", "DiaoLing2", "EYun", "XieDao", "YeLi", "ShenShengChongJi", "ShenShengShouHu", "ShenZhiZhuFu", "XinYangShouHu", "XinYangShouHu_Effect", "SkillInfoTouch", "Animator", "BlackBoard", "Condition", "State", "Summon", "SummonMovement_ChaseEnemy", "SummonMovement_Circle", "Tile", "TileMap", "TriggerSource", "Util", "Util2D", "Vehicle", "VehicleHUD", "AutoScroll", "DelayActive", "DissolveEffect", "EntityViewEffect", "FXVisibleControl", "FaceUp", "FollowEntityFirePnt", "FollowMovement", "FollowTarget", "GralicParticle", "LightningRotation", "MotionStreakReset", "MoveTowardToPlayer", "MyCameraFollow", "NoRotation", "OppositeRotate", "PlayerOutlineEffect", "Rotate", "Rotate_Skill", "Shake", "SpriteAnimation", "SpriteParticle", "TailRenderer", "Weapon", "WeaponControl", "WeaponDealer", "AISkillPatternConfig", "ArchivementConfig", "ArchivementData", "ArchivementModel", "BattleItemConfig", "BattleItemData", "BattleSkillData", "BattleWeaponShopConfig", "ChestConfig", "Config", "DailyMissionConfig", "DailyMissionData", "DropItemConfig", "EquipmentConfig", "EquipmentData", "FateCoinConfig", "GameModel", "GiftConfig", "GuoQingConfig", "GuoQingMissionData", "GuoQingModel", "HeroConfig", "HeroData", "ItemConfig", "ItemData", "LevelConfig", "LevelConfig_Activity", "LevelConfig_Chapter1", "LevelConfig_Chapter2", "LevelConfig_Chapter3", "LevelConfig_Chapter4", "LevelConfig_Chapter5", "LevelConfig_Chapter6", "LevelConfig_Endless", "LevelData", "MonsterConfig", "MonsterConfig_Activity", "MonsterConfig_Chapter1", "MonsterConfig_Chapter2", "MonsterConfig_Chapter3", "MonsterConfig_Chapter4", "MonsterConfig_Chapter5", "MonsterConfig_Chapter6", "MonsterConfig_Endless", "PetData", "ProcessSaveData", "SafeBool", "SafeInt", "SevenDayRewardData", "ShareAssistConfig", "ShareAssistData", "ShopConfig", "SkillConfig", "SkillData", "SkillGroupData", "SummonConfig", "TalentConfig", "TalentData", "WeaponConfig", "WeaponData", "MainConfig", "MessageBroadcastReceiver", "MessageExtension", "TypeHelp", "Agent", "IAgent", "IBody", "IKdTree", "KdTree", "KeyValuePair", "Line", "Obstacle", "RVOBody", "RVODebug", "RVOMath", "RVOObstacle", "RVOScene", "Simulator", "Vector2", "ActiveByBattleCnt", "ArchivementRedPnt", "BattleGuideUI", "BattleInfoUI", "BattleLevelupUI", "BattlePauseUI", "BattleReliveUI", "BattleResultUI", "BattleStartPowerUpUI", "BattleStatisticsUI", "BattleUI", "BookUI", "BoxUI2", "CenterGridLayout", "ChapterPackUI", "ChestUI", "CollectionUI", "CopyLevelUI", "DailyMissionRedPnt", "EquipmentRedPnt", "FashionPackUI", "FeedbackUI", "FirstChargePackRedPnt", "FirstChargePackUI", "FreeCoinsUI", "GiftRedPnt", "GiftUI", "HallUI", "HalloweenPackUI", "HeroUI", "ItemRedPnt", "JoystickUI", "KeepRatioSprite", "LeaderboardItemUI", "LeaderboardUI", "LevelUI", "LoginUI", "LvStars", "MailRedPnt", "MailUI", "MaxSpriteSize", "MissionRedPnt", "MissionUI", "MissionUI_Archivement", "MissionUI_DailyMission", "MyPayButton", "MyVideoAdBtn", "NoAdUI", "NoticeUI", "OfflineRewardUI", "PlaySoundEffect", "RewardsUI", "SetWidth", "SettingUI", "SevenDayRedPnt", "SevenDayRewardComponent", "ShareAssistUI", "ShopRedPnt", "ShopUI", "SkillController", "SpriteMaxSize", "SubcribeGiftUI", "SuperSkillUI", "TTContactButtonUI", "TTShortcutUI", "TalentUI", "VideoMessageBoxUI", "VipCodeComponent", "WeaponDealerUI", "WeaponInfoUI", "WeaponRedPnt", "WeaponUI", "WeaponUI_Equipment", "WeaponUI_SchoolGraph", "WeaponUI_Weapon" ]);