let ent = getEntitlementConfig(logObj.name) if (ent != null && "cost" in logObj) ent["goldCost"] <- logObj.cost local costText = ent != null ? getEntitlementPrice(ent) : "" if (costText != "") costText = $" ({costText})" let productName = ent != null ? getEntitlementName(ent) : logObj.name res.name = "".concat(format(loc($"userlog/{logName}"), productName), costText)