Made createResourceTooltip show the resource name

This commit is contained in:
thepaperpilot 2022-04-23 21:35:43 -05:00
parent ba2bb3a5fd
commit 1e276adce5

View file

@ -297,7 +297,7 @@ export function createResourceTooltip(
const req = convertComputable(requirement);
return computed(() => {
if (requiredResource == null || Decimal.gte(resource.value, unref(req))) {
return displayResource(resource);
return displayResource(resource) + " " + resource.displayName;
}
return `Reach ${
Decimal.eq(requiredResource.precision, 0)