fix..
This commit is contained in:
@@ -13,9 +13,11 @@ window.renderLog = function(cmds) {
|
||||
const p = typeof cmd.payload === 'string' ? JSON.parse(cmd.payload) : cmd.payload;
|
||||
let desc = '';
|
||||
if (cmd.type === 'build') {
|
||||
desc = `Build: ${p.building_id}`;
|
||||
const nameGr = window.BUILDING_NAMES_GR?.[p.building_id] || p.building_id;
|
||||
desc = `Build: ${nameGr}`;
|
||||
} else if (cmd.type === 'recruit') {
|
||||
desc = `Recruit: ${p.amount}x ${p.unit_id}`;
|
||||
const nameGr = window.UNIT_NAMES_GR?.[p.unit_id] || p.unit_id;
|
||||
desc = `Recruit: ${p.amount}x ${nameGr}`;
|
||||
} else if (cmd.type === 'market_offer') {
|
||||
desc = `Market: ${p.offer} ${p.offer_type} ➞ ${p.demand} ${p.demand_type}`;
|
||||
}
|
||||
|
||||
@@ -162,9 +162,9 @@ window.renderTownDetails = function() {
|
||||
`;
|
||||
|
||||
const mCap = resObj.market_capacity || 0;
|
||||
document.getElementById('td-market').innerHTML = `
|
||||
📦 Εμπορική Χωρητικότητα: <strong>${window.fmt(mCap)}</strong>
|
||||
`;
|
||||
document.getElementById('td-market').innerHTML = mCap > 0
|
||||
? `📦 Εμπορική Χωρητικότητα: <strong>${window.fmt(mCap)}</strong>`
|
||||
: '';
|
||||
|
||||
const godName = t.god ? t.god.charAt(0).toUpperCase() + t.god.slice(1) : 'Κανένας';
|
||||
const seaStr = t.sea != null ? `Θ${t.sea}` : '—';
|
||||
|
||||
Reference in New Issue
Block a user