From 5338a5d6de484fbba880b7a3a032619d802c4b28 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Wed, 27 Sep 2023 20:15:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8B=87=E5=A3=AB=E6=98=BE=E4=BC=A4?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/game/fx/heroDetail.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin/game/fx/heroDetail.ts b/src/plugin/game/fx/heroDetail.ts index b1cfa97..ccc870d 100644 --- a/src/plugin/game/fx/heroDetail.ts +++ b/src/plugin/game/fx/heroDetail.ts @@ -18,13 +18,13 @@ function drawHeroDetail(px: number, py: number) { let i = 0; for (const [key, value] of Object.entries(toDraw)) { - const ctx = core.canvas['hero'].canvas; + const ctx = core.canvas['hero']; core.fillBoldText( ctx, - value.value.toString(), + core.formatBigNumber(value.value), px, py - 10 * i, - value.color as string + value.color ); i++; }