goods export system

This commit is contained in:
Azgaar 2021-08-08 20:47:00 +03:00 committed by Peter
parent 8e9c0c9f78
commit aaa93d5b93
3 changed files with 5 additions and 16 deletions

View file

@ -90,14 +90,10 @@ function editBurg(id) {
if (b.shanty) document.getElementById("burgShanty").classList.remove("inactive");
else document.getElementById("burgShanty").classList.add("inactive");
// economics block
document.getElementById("burgProduction").innerHTML = getProduction(b.produced);
document.getElementById('burgProduction').innerHTML = getProduction(b.produced);
const deals = pack.trade.deals;
document.getElementById("burgExport").innerHTML = getExport(deals.filter((deal) => deal.exporter === b.i));
document.getElementById("burgImport").innerHTML = '';
// economics block
document.getElementById('burgProduction').innerHTML = getProduction(b.production);
document.getElementById('burgExport').innerHTML = getProduction(b.export);
document.getElementById('burgExport').innerHTML = getExport(deals.filter((deal) => deal.exporter === b.i));
document.getElementById('burgImport').innerHTML = '';
//toggle lock
updateBurgLockIcon();