fix(dashboard): coins, universe score, imagination, reputation and life from the locale

Pages label the game's currencies and stats with the client's words
(UI_COINS, UI_UNIVERSE_SCORE, UI_IMAGINATION, UI_REPUTATION, UI_HEALTH)
through game.terms and GameText.term instead of writing them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-29 22:06:37 -05:00
parent ade116c985
commit 597269b4c5
12 changed files with 41 additions and 41 deletions

View File

@@ -27,9 +27,9 @@
}).join('');
var r = m.rewards, rewards = [];
if (r) {
if (r.coins) rewards.push(nf.format(r.coins) + ' coins');
if (r.uscore) rewards.push(nf.format(r.uscore) + ' U-score');
if (r.reputation) rewards.push(nf.format(r.reputation) + ' reputation');
if (r.coins) rewards.push(nf.format(r.coins) + ' ' + GameText.term('coins'));
if (r.uscore) rewards.push(nf.format(r.uscore) + ' ' + GameText.term('uscore'));
if (r.reputation) rewards.push(nf.format(r.reputation) + ' ' + GameText.term('reputation'));
r.items.forEach(function (i) { rewards.push(nf.format(i.count) + 'x ' + (i.name || 'LOT ' + i.lot)); });
}
return (tasks ? '<ul class="small mb-1">' + tasks + '</ul>' : '') +