bug修复
This commit is contained in:
parent
dec81f8877
commit
2b427c7f23
@ -81,14 +81,16 @@ func (d *Decorate) GetDecorateCostItem(AreaId, DecorateId int) ([]*item.Item, in
|
||||
Id := decorateCfg.GetIdBySenceAndLv(AreaId, DecorateId)
|
||||
Items := []*item.Item{item.NewItem(item.ITEM_STAR_ID, Item)}
|
||||
PartItem := d.PartCost[Id]
|
||||
PartItemList := make([]*item.Item, 0)
|
||||
if PartItem != nil {
|
||||
Items = append(Items, PartItem.Items...)
|
||||
PartItemList = PartItem.Items
|
||||
delete(d.PartCost, Id)
|
||||
}
|
||||
if len(d.PartCost) == 0 {
|
||||
d.initPartCost(d.AreaId + 1)
|
||||
}
|
||||
return Items, PetExp, PartItem.Items
|
||||
return Items, PetExp, PartItemList
|
||||
}
|
||||
|
||||
func (d *Decorate) DecorateAll(Star int) ([]*item.Item, []*item.Item, int, []int, []interface{}, int) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user