初始装饰零件写死
This commit is contained in:
parent
3d9e697c04
commit
66ca58f075
@ -269,6 +269,25 @@ func (d *Decorate) initPartPool() {
|
|||||||
func (d *Decorate) initPartCost(AreaId int) {
|
func (d *Decorate) initPartCost(AreaId int) {
|
||||||
AllPartList := decorateCfg.GetPartNumByAreaId(AreaId)
|
AllPartList := decorateCfg.GetPartNumByAreaId(AreaId)
|
||||||
for k, v := range AllPartList {
|
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)
|
PartList := d.GetPart(v)
|
||||||
Items := make([]*item.Item, 0)
|
Items := make([]*item.Item, 0)
|
||||||
for k1, v1 := range PartList {
|
for k1, v1 := range PartList {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user