H.cC -> H.char_code_to_char

This commit is contained in:
shenjack 2024-05-05 00:55:40 +08:00
parent 5bfe5eb7d4
commit 087199fb0d
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -959,7 +959,8 @@ var H = {
} }
return r return r
}, },
cC(a) { char_code_to_char(a) {
// unicodeToChar
var s var s
if (a <= 65535) return String.fromCharCode(a) if (a <= 65535) return String.fromCharCode(a)
if (a <= 1114111) { if (a <= 1114111) {
@ -4659,6 +4660,8 @@ var H = {
}, },
T = { T = {
ty(a, b, c, d, e) { ty(a, b, c, d, e) {
// SklAbsorb 的 onDamage (static)
// static void onDamage(Plr caster, Plr target, int dmg, R r, RunUpdates updates) {
var s, r, q, p = 0 var s, r, q, p = 0
if (c > p && !(a.fx <= p)) { if (c > p && !(a.fx <= p)) {
s = C.JsInt.P(c + 1, $.t()) s = C.JsInt.P(c + 1, $.t())
@ -4667,6 +4670,7 @@ var H = {
q = p - r q = p - r
if (s > q) s = q if (s > q) s = q
a.fx = r + s a.fx = r + s
// [1]回复体力[2]点
p = LangData.get_lang("imin") p = LangData.get_lang("imin")
r = new T.HPlr(r) r = new T.HPlr(r)
r.a = a.e r.a = a.e
@ -10993,39 +10997,39 @@ P.lb.prototype = {
return q.eO(a, b, c, d) return q.eO(a, b, c, d)
}, },
eO(a, b, c, d) { eO(a, b, c, d) {
var s, r, q, p, o, n, m, l = this, var s, r, q, p, o, n, m, this_ = this,
k = 65533, k = 65533,
j = l.b, j = this_.b,
i = l.c, i = this_.c,
h = new P.cH(""), h = new P.cH(""),
g = b + 1, g = b + 1,
f = a[b] f = a[b]
$label0$0: for (s = l.a; true;) { $label0$0: for (s = this_.a; true;) {
for (; true; g = p) { for (; true; g = p) {
r = C.String.a8("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE", f) & 31 r = C.String.a8("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE", f) & 31
i = j <= 32 ? f & 61694 >>> r : (f & 63 | i << 6) >>> 0 i = j <= 32 ? f & 61694 >>> r : (f & 63 | i << 6) >>> 0
j = C.String.a8(" \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\x00\x00\x00\x00\x00AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA000\x800AAAAA\x00\x00\x00\x00 AAAAA", j + r) j = C.String.a8(" \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\x00\x00\x00\x00\x00AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA000\x800AAAAA\x00\x00\x00\x00 AAAAA", j + r)
if (j === 0) { if (j === 0) {
h.a += H.cC(i) h.a += H.char_code_to_char(i)
if (g === c) break $label0$0 if (g === c) break $label0$0
break break
} else if ((j & 1) !== 0) { } else if ((j & 1) !== 0) {
if (s) switch (j) { if (s) switch (j) {
case 69: case 69:
case 67: case 67:
h.a += H.cC(k) h.a += H.char_code_to_char(k)
break break
case 65: case 65:
h.a += H.cC(k); h.a += H.char_code_to_char(k);
--g --g
break break
default: default:
q = h.a += H.cC(k) q = h.a += H.char_code_to_char(k)
h.a = q + H.cC(k) h.a = q + H.char_code_to_char(k)
break break
} else { } else {
l.b = j this_.b = j
l.c = g - 1 this_.c = g - 1
return "" return ""
} }
j = 0 j = 0
@ -11052,21 +11056,21 @@ P.lb.prototype = {
p = n p = n
} }
if (o - g < 20) if (o - g < 20)
for (m = g; m < o; ++m) h.a += H.cC(a[m]) for (m = g; m < o; ++m) h.a += H.char_code_to_char(a[m])
else h.a += P.mh(a, g, o) else h.a += P.mh(a, g, o)
if (o === c) break $label0$0 if (o === c) break $label0$0
g = p g = p
} else g = p } else g = p
} }
if (d && j > 32) if (d && j > 32)
if (s) h.a += H.cC(k) if (s) h.a += H.char_code_to_char(k)
else { else {
l.b = 77 this_.b = 77
l.c = c this_.c = c
return "" return ""
} }
l.b = j this_.b = j
l.c = i this_.c = i
s = h.a s = h.a
return s.charCodeAt(0) == 0 ? s : s return s.charCodeAt(0) == 0 ? s : s
} }
@ -14038,6 +14042,8 @@ T.SklAbsorb.prototype = {
var s = a[0].a, var s = a[0].a,
r = T.getAt(this.r, true, c), r = T.getAt(this.r, true, c),
q = $.ph() q = $.ph()
// sklAbsorb
// [0]发起[吸血攻击]
d.a.push(T.RunUpdate_init(LangData.get_lang("FfpA"), this.r, s, null, null, 1, 1000, 100)) d.a.push(T.RunUpdate_init(LangData.get_lang("FfpA"), this.r, s, null, null, 1, 1000, 100))
s.a3(r * q, true, this.r, T.v6(), c, d) s.a3(r * q, true, this.r, T.v6(), c, d)
} }
@ -14148,8 +14154,11 @@ T.SklAssassinate.prototype = {
} }
}, },
aD(a, b, c, d) { aD(a, b, c, d) {
// postDamage
var s = d.a var s = d.a
s.push($.K()) s.push($.K())
// sklAssassinateFailed
// [0]的[潜行]被识破
s.push(T.RunUpdateCancel_init(LangData.get_lang("kMgn"), this.r, this.fy)) s.push(T.RunUpdateCancel_init(LangData.get_lang("kMgn"), this.r, this.fy))
this.ah(0) this.ah(0)
}, },
@ -16684,8 +16693,8 @@ T.Engine.prototype = {
// 因为 .cg 实际上只是 .az 的 async 包装 // 因为 .cg 实际上只是 .az 的 async 包装
// 这里又直接 await 了,实际上是多余的 // 这里又直接 await 了,实际上是多余的
// 所以直接去掉这个分支, 同时直接调用 .az // 所以直接去掉这个分支, 同时直接调用 .az
// return P._asyncAwait(name2p.h(0, b0).cg(), $async$bD) // return P._asyncAwait(name2p.h(0, b0).cg(), $async$bD)
// case 6: // case 6:
n = name2p.h(0, b0) n = name2p.h(0, b0)
m = this_.b // rc4_holder m = this_.b // rc4_holder
// name2p[name].sortInt = r.rFFFFFF; // name2p[name].sortInt = r.rFFFFFF;
@ -16756,7 +16765,7 @@ T.Engine.prototype = {
// players[roundPos].step(r, updates); // players[roundPos].step(r, updates);
J.rz(players[p], this_.b, b) J.rz(players[p], this_.b, b)
for (q = t.Y; p = b.b, p.length !== 0;) { for (q = t.Y; p = b.b, p.length !== 0;) {
b.b = H.b([], q) b.b = H.b([], q)
for (players = p.length, s = 0; s < p.length; p.length === players || (0, H.F)(p), ++s) p[s].$2(this_.b, b) for (players = p.length, s = 0; s < p.length; p.length === players || (0, H.F)(p), ++s) p[s].$2(this_.b, b)
@ -19447,7 +19456,11 @@ LangData.k_.prototype = {
inherit(P.kx, P.kw) inherit(P.kx, P.kw)
inherit(P.cF, P.p) inherit(P.cF, P.p)
inherit(HtmlRenderer.fW, HtmlRenderer.PlrView) inherit(HtmlRenderer.fW, HtmlRenderer.PlrView)
inherit_many(Sgls.MEntry, [T.Skill, T.UpdateStateEntry, T.PostDefendEntry, T.PostActionEntry, T.PreStepEntry, T.PreDefendEntry, T.PostDamageEntry, T.PreActionEntry, T.aF]) inherit_many(Sgls.MEntry,
[T.Skill, T.UpdateStateEntry, T.PostDefendEntry,
T.PostActionEntry, T.PreStepEntry, T.PreDefendEntry,
T.PostDamageEntry, T.PreActionEntry, T.aF]
)
inherit_many(T.Skill, inherit_many(T.Skill,
[T.ActionSkill, T.SklAokijiDefend, T.SklCovidDefend, T.SklIkarugaDefend, [T.ActionSkill, T.SklAokijiDefend, T.SklCovidDefend, T.SklIkarugaDefend,
T.SklLazyDefend, T.SklMarioReraise, T.SklSlimeSpawn, T.SklLazyDefend, T.SklMarioReraise, T.SklSlimeSpawn,
@ -21665,5 +21678,5 @@ function main() {
} }
main(); main();
logger.debug("反混淆", LangData.get_lang("JzmA")); logger.debug("反混淆", LangData.get_lang("imin"));
// logger.debug("running main:", main()) // 执行main函数 // logger.debug("running main:", main()) // 执行main函数