1
1
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:
lord 2020-08-02 20:01:06 -07:00 committed by GitHub
parent 53bb919411
commit 50a070d7b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}