mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Merge economics with current
This commit is contained in:
parent
d3ea2df1a2
commit
7270c8c833
13 changed files with 2119 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue