Explorar o código

fix: HUD 数值每帧刷新(跳关概率不再滞后)

LiuYuYang hai 1 semana
pai
achega
914abf19ed
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/ui.js
  2. BIN=BIN
      tests/shots/desktop-11-env-and-progress.png

+ 1 - 1
js/ui.js

@@ -174,7 +174,7 @@ export class App {
     const lf = this.s.layer;
     this.html('#hud-layer', `${fmt(Math.floor(lf), { int: true })}<small>层</small>`);
     this.setText('#hud-sub', `距下一层 ${fmtPct(Math.min(0.99, lf - Math.floor(lf)), 0)} · 本轮第 ${fmt(Math.floor(lf) - st.start + 1, { int: true })} 层`);
-    this.html('#hud-meta', `${fmt(st.prod)} 本源/秒 · 约 ${st.minutesPerLayer < 0.01 ? '<0.01' : st.minutesPerLayer.toFixed(2)} 分/层(含跳关) · 跳关 ${fmtPct(st.skipP, 0)}`);
+    this.setText('#hud-meta', `${fmt(st.prod)} 本源/秒 · 约 ${st.minutesPerLayer < 0.01 ? '<0.01' : st.minutesPerLayer.toFixed(2)} 分/层(含跳关) · 跳关 ${fmtPct(st.skipP, 0)}`);
   }
 
   refreshMainline(st) {

BIN=BIN
tests/shots/desktop-11-env-and-progress.png