mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-06-11 18:20:42 +00: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