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