update item name funtion
This commit is contained in:
@@ -132,6 +132,14 @@ type Drop struct {
|
||||
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 {
|
||||
return item.Desc[i.ID]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user