mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
new resources
This commit is contained in:
parent
1d751a3d5a
commit
9b1ae25129
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,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