Merge economics with current

This commit is contained in:
Peter 2022-11-23 22:08:41 -05:00
parent d3ea2df1a2
commit 7270c8c833
13 changed files with 2119 additions and 2 deletions

View file

@ -136,7 +136,12 @@ function showMapTooltip(point, e, i, g) {
tip(`${name} ${type} emblem. Click to edit. Hold Shift to show associated area or place`);
return;
}
if (group === 'goods') {
const id = +e.target.dataset.i;
const resource = pack.resources.find((resource) => resource.i === id);
tip('Resource: ' + resource.name);
return;
}
if (group === "rivers") {
const river = +e.target.id.slice(5);
const r = pack.rivers.find(r => r.i === river);