This commit is contained in:
aozhiwei 2024-06-21 13:58:31 +08:00
parent 305b92dd25
commit ca9cabd3d3

View File

@ -19,10 +19,6 @@ type ItemTable struct {
itemIdHash *q5.ConcurrentMap[int64, *Item]
}
func (this *Item) Init1() {
this.lowerName = strings.ToLower(this.GetName())
}
func (this *ItemTable) PostInit1() {
this.itemIdHash = new(q5.ConcurrentMap[int64, *Item])
items := []struct {
@ -41,6 +37,9 @@ func (this *ItemTable) PostInit1() {
p.Name = langMeta.GetEn()
p.Type = ele.GetType()
p.SubType = ele.GetSubType()
ele.lowerName = strings.ToLower(langMeta.GetEn())
this.itemIdHash.Store(q5.ToInt64(ele.GetId()), ele)
}
return true
})