From 730a1db4873a92f389a22d29ecc96cdf5116bdfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:35:44 +0800 Subject: [PATCH] =?UTF-8?q?```=20refactor(pet=5Ffusion):=20=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E5=AE=A0=E7=89=A9=E8=9E=8D=E5=90=88=E9=99=8D=E7=BA=A7?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将直接修改等级属性的方式改为调用Downgrade方法, 以确保降级操作通过统一的方法处理,提高代码的可维护性 ``` --- logic/controller/pet_fusion.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logic/controller/pet_fusion.go b/logic/controller/pet_fusion.go index 25a931ea..3b54f0ee 100644 --- a/logic/controller/pet_fusion.go +++ b/logic/controller/pet_fusion.go @@ -81,10 +81,10 @@ func (h Controller) PetFusion(data *pet.C2S_PetFusion, c *player.Player) (result } else { if Auxpetinfo.Level > 5 { - Auxpetinfo.Level = Auxpetinfo.Level - 5 - + // Auxpetinfo.Level = Auxpetinfo.Level - 5 + Auxpetinfo.Downgrade(Auxpetinfo.Level - 5) } else { - Auxpetinfo.Level = 1 + Auxpetinfo.Downgrade(1) } }