update item name funtion

This commit is contained in:
vietdungdev
2026-04-25 22:47:43 +07:00
parent fea62bbe31
commit 3c36d2d1ad

View File

@@ -132,6 +132,14 @@ type Drop struct {
DropLocation string DropLocation string
} }
func (i Item) GetItemName() item.Name {
if i.IsRuneword {
return item.Name(string(i.RunewordName) + " " + string(i.Name))
}
return item.Name(string(i.IdentifiedName) + " " + string(i.Name))
}
func (i Item) Desc() item.Description { func (i Item) Desc() item.Description {
return item.Desc[i.ID] return item.Desc[i.ID]
} }