From 50a070d7b0976922b3da8d17528ec8b62bea586f Mon Sep 17 00:00:00 2001 From: lord Date: Sun, 2 Aug 2020 20:01:06 -0700 Subject: [PATCH] unidentified items should use common record name for label (#670) --- d2core/d2item/diablo2item/item.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/d2core/d2item/diablo2item/item.go b/d2core/d2item/diablo2item/item.go index d4b45f3d..39742563 100644 --- a/d2core/d2item/diablo2item/item.go +++ b/d2core/d2item/diablo2item/item.go @@ -112,6 +112,10 @@ type minMaxEnhanceable struct { func (i *Item) Label() string { str := i.name + if !i.attributes.identitified { + str = d2common.TranslateString(i.CommonRecord().NameString) + } + if i.attributes.crafted { return d2ui.ColorTokenize(str, d2ui.ColorTokenCraftedItem) }