From 731efe151be7430e0f4f74c9ff71722d0dc52aeb Mon Sep 17 00:00:00 2001 From: tobspr Date: Tue, 20 Sep 2022 17:10:19 +0200 Subject: [PATCH] Wegame adjustments 2/2 --- src/js/core/utils.js | 4 ++-- src/js/states/preload.js | 17 ++--------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/src/js/core/utils.js b/src/js/core/utils.js index fa3c575b..4a1b1cae 100644 --- a/src/js/core/utils.js +++ b/src/js/core/utils.js @@ -289,10 +289,10 @@ export function formatBigNumber(num, separator = T.global.decimalSeparator) { } else { if (G_WEGAME_VERSION) { if (num < 1000000) { - if (num < 100000) { + if (num < 10000) { return sign + String(num).replace(".0", "").replace(".", separator); } else { - return sign + Math.round(num / 10000.0) + T.global.suffix.thousands; + return sign + round2Digits(num / 10000.0) + T.global.suffix.thousands; } } } diff --git a/src/js/states/preload.js b/src/js/states/preload.js index dd44970a..d7488c42 100644 --- a/src/js/states/preload.js +++ b/src/js/states/preload.js @@ -285,21 +285,11 @@ export class PreloadState extends GameState {
- Failed to initialize application! -
-
- ${this.currentStatus} failed:
- ${text} -
- -
- Please send me an email with steps to reproduce and what you did before this happened: -
+ 应用初始化失败!
- - Build ${G_BUILD_VERSION} @ ${G_BUILD_COMMIT_HASH} + 建造。${G_BUILD_VERSION} @ ${G_BUILD_COMMIT_HASH}
`; @@ -307,9 +297,6 @@ export class PreloadState extends GameState { this.htmlElement.classList.add("failure"); this.htmlElement.appendChild(subElement); - const resetBtn = subElement.querySelector("button.resetApp"); - this.trackClicks(resetBtn, this.showResetConfirm); - this.hintsText.remove(); }