消耗品订单优化

This commit is contained in:
hahwu 2025-10-15 18:54:24 +08:00
parent e038ca4ad4
commit f04b58b091

View File

@ -1496,7 +1496,10 @@ func (p *Player) FormatPetOrderItem(Items []*item.Item) []*item.Item {
continue
}
RandList := make([]int, 0)
for _, v1 := range OrderItem {
for k, v1 := range OrderItem {
if k == 1 || k == 2 {
continue
}
RandList = append(RandList, v1...)
}
NewItems = append(NewItems, item.NewItem(GoUtil.RandSlice(RandList), 1))