mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-19 17:16:08 +08:00
fix: 勇士显伤数据格式化
This commit is contained in:
parent
4e1f1b45c0
commit
5338a5d6de
@ -18,13 +18,13 @@ function drawHeroDetail(px: number, py: number) {
|
|||||||
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (const [key, value] of Object.entries(toDraw)) {
|
for (const [key, value] of Object.entries(toDraw)) {
|
||||||
const ctx = core.canvas['hero'].canvas;
|
const ctx = core.canvas['hero'];
|
||||||
core.fillBoldText(
|
core.fillBoldText(
|
||||||
ctx,
|
ctx,
|
||||||
value.value.toString(),
|
core.formatBigNumber(value.value),
|
||||||
px,
|
px,
|
||||||
py - 10 * i,
|
py - 10 * i,
|
||||||
value.color as string
|
value.color
|
||||||
);
|
);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user