Made createResourceTooltip show the resource name
This commit is contained in:
parent
17cec3b3bc
commit
9f79b186bd
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ export function createResourceTooltip(
|
||||||
const req = convertComputable(requirement);
|
const req = convertComputable(requirement);
|
||||||
return computed(() => {
|
return computed(() => {
|
||||||
if (requiredResource == null || Decimal.gte(resource.value, unref(req))) {
|
if (requiredResource == null || Decimal.gte(resource.value, unref(req))) {
|
||||||
return displayResource(resource);
|
return displayResource(resource) + " " + resource.displayName;
|
||||||
}
|
}
|
||||||
return `Reach ${
|
return `Reach ${
|
||||||
Decimal.eq(requiredResource.precision, 0)
|
Decimal.eq(requiredResource.precision, 0)
|
||||||
|
|
Loading…
Reference in a new issue