diff --git a/src/server/game/mod/decorate/Decorate.go b/src/server/game/mod/decorate/Decorate.go index b1285430..a92d64cb 100644 --- a/src/server/game/mod/decorate/Decorate.go +++ b/src/server/game/mod/decorate/Decorate.go @@ -269,6 +269,25 @@ func (d *Decorate) initPartPool() { func (d *Decorate) initPartCost(AreaId int) { AllPartList := decorateCfg.GetPartNumByAreaId(AreaId) for k, v := range AllPartList { + // 初始零件消耗写死 + if k == 33 { + d.PartCost[k] = &PartCostInfo{ + Items: []*item.Item{item.NewItem(1515, 1)}, + } + continue + } + if k == 34 { + d.PartCost[k] = &PartCostInfo{ + Items: []*item.Item{item.NewItem(1505, 1)}, + } + continue + } + if k == 35 { + d.PartCost[k] = &PartCostInfo{ + Items: []*item.Item{item.NewItem(1505, 1), item.NewItem(1515, 1)}, + } + continue + } PartList := d.GetPart(v) Items := make([]*item.Item, 0) for k1, v1 := range PartList {