mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-23 22:43:08 +00:00
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:
@@ -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>' : '') +
|
||||
|
||||
Reference in New Issue
Block a user