This commit is contained in:
2026-04-28 22:50:54 +03:00
parent ef6946365c
commit 53f1176ef8
2 changed files with 7 additions and 6 deletions

View File

@@ -167,6 +167,7 @@ window.renderTownDetails = function() {
const mCap = resObj.market_capacity || 0; const mCap = resObj.market_capacity || 0;
const aCap = resObj.available_trade_capacity != null ? resObj.available_trade_capacity : mCap; const aCap = resObj.available_trade_capacity != null ? resObj.available_trade_capacity : mCap;
console.log("Town:", t.town_name, "MarketCap:", mCap, "AvailCap:", aCap, "ResObj:", resObj);
document.getElementById('td-market').innerHTML = mCap > 0 document.getElementById('td-market').innerHTML = mCap > 0
? `📦 Εμπορική Χωρητικότητα: <strong style="color:#6fcfcf">${window.fmt(aCap)}</strong> / <strong>${window.fmt(mCap)}</strong>` ? `📦 Εμπορική Χωρητικότητα: <strong style="color:#6fcfcf">${window.fmt(aCap)}</strong> / <strong>${window.fmt(mCap)}</strong>`

View File

@@ -258,11 +258,11 @@
<script> <script>
window.PLAYER_ID = "{{ player_id }}"; window.PLAYER_ID = "{{ player_id }}";
</script> </script>
<script src="/static/js/state.js"></script> <script src="/static/js/state.js?v=3"></script>
<script src="/static/js/components/townViewer.js"></script> <script src="/static/js/components/townViewer.js?v=3"></script>
<script src="/static/js/components/commandForm.js"></script> <script src="/static/js/components/commandForm.js?v=3"></script>
<script src="/static/js/components/commandLog.js"></script> <script src="/static/js/components/commandLog.js?v=3"></script>
<script src="/static/js/api.js"></script> <script src="/static/js/api.js?v=3"></script>
<script src="/static/js/app.js"></script> <script src="/static/js/app.js?v=3"></script>
</body> </body>
</html> </html>