mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
econonics - restore from feb
This commit is contained in:
parent
886ea38b44
commit
7ff154dd0a
4 changed files with 187 additions and 0 deletions
|
|
@ -116,6 +116,13 @@ function showMapTooltip(point, e, i, g) {
|
|||
return;
|
||||
}
|
||||
|
||||
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