mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
econonics - restore from feb
This commit is contained in:
parent
c4710de7db
commit
b9db7edf43
2 changed files with 7 additions and 4 deletions
|
|
@ -136,12 +136,14 @@ 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);
|
||||
|
||||
if (group === "goods") {
|
||||
const id = +e.target.getAttribute("href").slice(10);
|
||||
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