mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
new resources
This commit is contained in:
parent
da634041cf
commit
05171fc881
3 changed files with 120 additions and 71 deletions
|
|
@ -117,7 +117,7 @@ function showMapTooltip(point, e, i, g) {
|
|||
}
|
||||
|
||||
if (group === "goods") {
|
||||
const id = +e.target.getAttribute("href").slice(10);
|
||||
const id = +e.target.dataset.i;
|
||||
const resource = pack.resources.find(resource => resource.i === id);
|
||||
tip("Resource: " + resource.name);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue