mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
goods export system
This commit is contained in:
parent
8e9c0c9f78
commit
aaa93d5b93
3 changed files with 5 additions and 16 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue