Compare commits

...

5 Commits

Author SHA1 Message Date
6968294f60
4! 2024-04-04 22:11:45 +08:00
5360860a61
main -> latest 2024-04-04 22:11:44 +08:00
ccad08732f
rua 2024-04-04 22:11:42 +08:00
ba184e5667
fmt 2024-04-04 22:11:41 +08:00
c0269b23ea sklfire 2024-04-04 22:06:45 +08:00
2 changed files with 79 additions and 26 deletions

View File

@ -548,7 +548,8 @@ var A = {
return new P.bJ("Too many elements")
},
tJ(a, b) {
H.hL(a, 0, J.aw(a) - 1, b)
// H.hL(a, 0, J.aw(a) - 1, b)
H.hL(a, 0, a.length - 1, b)
},
hL(a, b, c, d) {
if (c - b <= 32) H.ej(a, b, c, d)
@ -959,7 +960,8 @@ var A = {
bQ(a, b) {
var s, r = "index"
if (!H.aP(b)) return new P.aS(true, b, r, null)
s = J.aw(a)
// s = J.aw(a)
s = a.length
if (b < 0 || b >= s) return P.ft(b, a, r, null, s)
return P.k0(b, r)
},
@ -6036,7 +6038,7 @@ var A = {
},
tx(a, b, c, d, e) {},
tz(a, b, c, d, e) {},
cG(a) {
SklAttack(a) {
var s = new T.h8(0)
s.r = a
return s
@ -6197,7 +6199,7 @@ var A = {
c3: function c3(a) {
this.b = a
},
cc: function cc(a) {
SklFire: function SklFire(a) {
var _ = this
_.e = false
_.f = a
@ -6239,7 +6241,7 @@ var A = {
_.y = b
_.c = _.b = _.a = null
},
e9: function e9(a) {
SklIce: function e9(a) {
var _ = this
_.e = false
_.f = a
@ -14451,7 +14453,7 @@ T.c3.prototype = {
return -$.i()
}
}
T.cc.prototype = {
T.SklFire.prototype = {
v(a, b, c, d) {
var s, r, q, p = a[0].a,
o = t.a.a(p.r2.h(0, $.eY()))
@ -14677,7 +14679,7 @@ T.dx.prototype = {
},
$ix: 1
}
T.e9.prototype = {
T.SklIce.prototype = {
a9(a, b, c) {
var s = this.bC(a, b, c)
return a.r2.h(0, $.bS()) != null ? s / $.t() : s
@ -14995,7 +14997,7 @@ T.fS.prototype = {
return this.aj.r
},
ac() {
this.k3 = T.cG(this)
this.k3 = T.SklAttack(this)
this.k1.push(new T.hu(0))
},
aU() {
@ -15198,10 +15200,10 @@ T.fT.prototype = {
s[r] = p[r]
},
ac() {
this.k3 = T.cG(this)
this.k3 = T.SklAttack(this)
var s = this.k1
s.push(new T.cc(0))
s.push(new T.cc(0))
s.push(new T.SklFire(0))
s.push(new T.SklFire(0))
s.push(new T.hj(0))
},
bP() {
@ -15376,13 +15378,13 @@ T.f5.prototype = {
},
ac() {
var s, r
this.k3 = T.cG(this)
this.k3 = T.SklAttack(this)
s = this.k1
s.push(new T.h6(0))
r = new T.e2(0)
r.f = $.pW()
s.push(r)
r = new T.e9(0)
r = new T.SklIce(0)
r.f = $.b3()
s.push(r)
}
@ -15787,7 +15789,7 @@ T.f8.prototype = {
},
ac() {
var s, r
this.k3 = T.cG(this)
this.k3 = T.SklAttack(this)
s = this.k1
s.push(new T.hn(0))
r = new T.hm(0)
@ -15960,7 +15962,7 @@ T.df.prototype = {
var s, r, q = this
q.k3 = T.hE(q)
s = 0
q.aj = new T.cc(s)
q.aj = new T.SklFire(s)
s = new T.hr(q, s)
s.r = q
s.f = $.b2()
@ -16186,7 +16188,7 @@ T.fb.prototype = {
ac() {
var s, r, q = this
q.aC = q.dk.aC + $.i()
q.k3 = T.cG(q)
q.k3 = T.SklAttack(q)
s = q.k1
if (q.aC == $.i()) s.push(new T.ef(0))
else {
@ -17077,10 +17079,10 @@ T.Plr.prototype = {
// create skills
// createSkills()
var s, r, q
this.k3 = T.cG(this)
this.k3 = T.SklAttack(this)
s = this.k1
s.push(new T.cc(0))
s.push(new T.e9(0))
s.push(new T.SklFire(0))
s.push(new T.SklIce(0))
s.push(new T.hI(0))
s.push(new T.hv(0))
s.push(new T.e1(0))
@ -17128,13 +17130,16 @@ T.Plr.prototype = {
s.push(new T.cb(0))
s.push(new T.hs(0))
s.push(new T.hK(0))
r = new T.hJ(0)
r.Q = new T.bd(r)
s.push(r)
r = new T.hl(0)
r.ch = new T.bd(r)
r.Q = new T.ca(r)
s.push(r)
s.push(new T.SkillVoid(0))
s.push(new T.SkillVoid(0))
s.push(new T.SkillVoid(0))
@ -17167,9 +17172,11 @@ T.Plr.prototype = {
q = 0
if (sortedSkills[q] - $.Z() <= q) s.e = true
}++n
m += $.C()
m += $.C() // 4
}
console.log("this_.k2:",this_.k2)
for (; sortedSkills = this_.k2, n < sortedSkills.length; ++n) sortedSkills[n].ao(this_, 0)
console.log("sorted skills:",sortedSkills)
},
bs() {
// addSkillsToProc
@ -17211,7 +17218,28 @@ T.Plr.prototype = {
s.go = C.JsInt.P(s.fr, $.t())
},
F() {
// updateStates
/* void updateStates() {
atk = attr[0];
def = attr[1];
spd = attr[2] + 160;
agl = attr[3];
mag = attr[4];
mdf = attr[5];
itl = attr[6];
maxhp = attr[7];
calcAttrSum();
allyGroup = group;
atboost = 1.0;
frozen = false;
for (UpdateStateEntry ude in updatestates) {
ude.updateState(this);
}
}
*/
var s, this_ = this
this_.ch = this_.b0(this_.q[0], $.cj())
this_.cx = this_.b0(this_.q[1], $.cj())
@ -17226,7 +17254,9 @@ T.Plr.prototype = {
this_.z = this_.y
this_.id = $.T()
this_.A = false
for (s = this_.rx, s = new Sgls.a_(s, s.b, s.$ti.i("a_<1*>")); s.u();) s.b.ar(this_)
for (s = this_.rx, s = new Sgls.a_(s, s.b, s.$ti.i("a_<1*>")); s.u();) {
s.b.ar(this_)
}
},
ci() {
// calcAttrSum
@ -18110,7 +18140,7 @@ T.fX.prototype = {
return this.aj.r
},
ac() {
this.k3 = T.cG(this)
this.k3 = T.SklAttack(this)
},
aU() {
var s, r
@ -19004,7 +19034,7 @@ LangData.k_.prototype = {
inherit(HtmlRenderer.fW, HtmlRenderer.ax)
inherit_many(Sgls.n, [T.q, T.aZ, T.aB, T.bq, T.cB, T.bH, T.ah, T.aV, T.aF])
inherit_many(T.q, [T.ActionSkill, T.h6, T.he, T.hn, T.hq, T.ea, T.ef, T.cb, T.e6, T.hl, T.hs, T.eb, T.ed, T.hw, T.hC, T.hJ, T.hK])
inherit_many(T.ActionSkill, [T.e1, T.h5, T.h7, T.dd, T.h9, T.ha, T.e3, T.e4, T.e5, T.hf, T.hh, T.hi, T.cc, T.e7, T.hk, T.e8, T.e9, T.ho, T.ht, T.hv, T.ec, T.hx, T.hu, T.hB, T.hG, T.hj, T.hH, T.hI, T.e2, T.hb, T.dl, T.hd, T.hm, T.dB, T.hp, T.hr, T.hA, T.h8, T.hD, T.SkillVoid, T.hg, T.ee, T.hz])
inherit_many(T.ActionSkill, [T.e1, T.h5, T.h7, T.dd, T.h9, T.ha, T.e3, T.e4, T.e5, T.hf, T.hh, T.hi, T.SklFire, T.e7, T.hk, T.e8, T.SklIce, T.ho, T.ht, T.hv, T.ec, T.hx, T.hu, T.hB, T.hG, T.hj, T.hH, T.hI, T.e2, T.hb, T.dl, T.hd, T.hm, T.dB, T.hp, T.hr, T.hA, T.h8, T.hD, T.SkillVoid, T.hg, T.ee, T.hz])
inherit_many(T.aZ, [T.dj, T.dw, T.dx, T.eh, T.bd, T.h1])
inherit_many(T.x, [T.dI, T.c3, T.hF, T.fC, T.hY])
inherit_many(T.Plr, [T.dR, T.aM, T.cz, T.fP, T.fU, T.fV, T.fQ, T.cy])
@ -21045,7 +21075,6 @@ function main() {
if ($.qc() === h[0][0][0]) {
logger.debug("进入测号 init")
$.vr = 6
// h.length
// if (J.aw(h) === 2)
if (h.length === 2) {
// if (J.J(h, 1).length > 10 || J.lW(J.J(J.J(h, 1)[0], 0), O.j("S,AF", 5))) {

26
md5.js
View File

@ -17130,13 +17130,16 @@ T.Plr.prototype = {
s.push(new T.cb(0))
s.push(new T.hs(0))
s.push(new T.hK(0))
r = new T.hJ(0)
r.Q = new T.bd(r)
s.push(r)
r = new T.hl(0)
r.ch = new T.bd(r)
r.Q = new T.ca(r)
s.push(r)
s.push(new T.SkillVoid(0))
s.push(new T.SkillVoid(0))
s.push(new T.SkillVoid(0))
@ -17213,7 +17216,28 @@ T.Plr.prototype = {
s.go = C.JsInt.P(s.fr, $.t())
},
F() {
// updateStates
/* void updateStates() {
atk = attr[0];
def = attr[1];
spd = attr[2] + 160;
agl = attr[3];
mag = attr[4];
mdf = attr[5];
itl = attr[6];
maxhp = attr[7];
calcAttrSum();
allyGroup = group;
atboost = 1.0;
frozen = false;
for (UpdateStateEntry ude in updatestates) {
ude.updateState(this);
}
}
*/
var s, this_ = this
this_.ch = this_.b0(this_.q[0], $.cj())
this_.cx = this_.b0(this_.q[1], $.cj())