new resources

This commit is contained in:
Azgaar 2021-04-26 12:23:28 +03:00 committed by Peter
parent 1d751a3d5a
commit 9b1ae25129

View file

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