adjustement

This commit is contained in:
guiyomu-dev
2026-02-14 21:10:31 +01:00
parent 285129e47e
commit 48aa3aee66
6 changed files with 39 additions and 24 deletions

View File

@@ -121,11 +121,17 @@ type Drop struct {
}
func (i Item) Desc() item.Description {
id := i.ID
if item.ExpChar >= 3 && id >= item.ExpCharItemIDThreshold {
id += item.ExpCharItemIDOffset
if descID, ok := item.DescIDByName(string(i.Name)); ok {
if desc, found := item.Desc[descID]; found {
return desc
}
}
return item.Desc[id]
if desc, found := item.Desc[i.ID]; found {
return desc
}
return item.Description{}
}
func (i Item) Type() item.Type {