From 08c6bd7d635fbf65ed2986ca7e71d6c932523afb Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 21 Apr 2024 18:01:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=BC=E4=B9=8E=E8=A6=81=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- branch/latest/md5.js | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/branch/latest/md5.js b/branch/latest/md5.js index 2405740..f92f6eb 100644 --- a/branch/latest/md5.js +++ b/branch/latest/md5.js @@ -30,6 +30,25 @@ let logger = { } } +function fmt_RunUpdate(update) { + let message = update.d; + let source_plr = update.e.a; + let target_plr = update.f.a; + let affect = update.x; + if (affect !== null && affect.a !== null) { + affect = affect.a + } else { + affect = "none" + } + return { + message: message, + source_plr: source_plr, + target_plr: target_plr, + affect: affect, + // raw: update, + } +} + if (run_env.from_code) { console.log("Running from code"); @@ -13241,6 +13260,7 @@ HtmlRenderer.inner_render.prototype = { } }, b4() { + // MARK: 渲染器主"循环" var async_goto = 0, async_complete = P._makeAsyncAwaitCompleter(t.z), q, this_ = this, @@ -13278,7 +13298,6 @@ HtmlRenderer.inner_render.prototype = { return P._asyncReturn(q, async_complete) } }) - // console.log("输出 实力评分.ing") return P._asyncStartSync($async$b4, async_complete) }, ft(a) { @@ -13331,10 +13350,14 @@ HtmlRenderer.inner_render.prototype = { (s && C.Q).cJ(s, "\u2003") } } else s.appendChild(document.createTextNode(", ")) - this_.db.appendChild(HtmlRenderer._updateToHtml(this_.cx)) + if (run_env.from_code) { + logger.debug(fmt_RunUpdate(this_.cx)) + } else { + this_.db.appendChild(HtmlRenderer._updateToHtml(this_.cx)) + } this_.b4() } - if (a) { + if (a && !run_env.from_code) { s = this_.b s.scrollTop = C.JsInt.aI(C.d.aI(s.scrollHeight) - s.clientHeight) }