mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-05 08:07:51 -05:00
unidentified items should use common record name for label (#670)
This commit is contained in:
parent
53bb919411
commit
50a070d7b0
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user