From 66ca58f075dc2ef450e01f5c02963a1a9476b1fc Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Mon, 8 Sep 2025 14:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E8=A3=85=E9=A5=B0=E9=9B=B6?= =?UTF-8?q?=E4=BB=B6=E5=86=99=E6=AD=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/mod/decorate/Decorate.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 {