new resources

This commit is contained in:
Azgaar 2021-04-26 12:23:28 +03:00
parent da634041cf
commit 05171fc881
3 changed files with 120 additions and 71 deletions

View file

@ -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;