装饰优化
This commit is contained in:
parent
50c42e705d
commit
c0858e20f0
@ -99,6 +99,12 @@ func (d *Decorate) GetDecorateCostItem(AreaId, DecorateId int, DecorateOffIsExis
|
|||||||
PartItemList = PartItem.Items
|
PartItemList = PartItem.Items
|
||||||
delete(d.PartCost, Id)
|
delete(d.PartCost, Id)
|
||||||
}
|
}
|
||||||
|
for k := range d.PartCost {
|
||||||
|
AreaId := decorateCfg.GetAreaId(k)
|
||||||
|
if AreaId != d.AreaId {
|
||||||
|
delete(d.PartCost, k)
|
||||||
|
}
|
||||||
|
}
|
||||||
if len(d.PartCost) == 0 {
|
if len(d.PartCost) == 0 {
|
||||||
d.initPartCost(d.AreaId + 1)
|
d.initPartCost(d.AreaId + 1)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user