From 248a326bb5cc8fb68085c2534a10a1c7e3935d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <1@72wo.cn> Date: Mon, 27 Oct 2025 01:23:42 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(BattlePetEntity):=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E8=B0=83=E8=AF=95=E6=89=93=E5=8D=B0=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了战斗宠物实体创建过程中用于调试的 fmt.Printf 语句, 这些语句在生产环境中没有必要且会影响性能。 ``` --- logic/service/fight/info/BattlePetEntity.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/logic/service/fight/info/BattlePetEntity.go b/logic/service/fight/info/BattlePetEntity.go index 8f2e2e95..b7474a23 100644 --- a/logic/service/fight/info/BattlePetEntity.go +++ b/logic/service/fight/info/BattlePetEntity.go @@ -3,7 +3,6 @@ package info import ( element "blazing/common/data/Element" "blazing/common/data/xmlres" - "fmt" "blazing/modules/blazing/model" "math/rand" @@ -43,9 +42,9 @@ func CreateBattlePetEntity(info *model.PetInfo, rand *rand.Rand) *BattlePetEntit ret.Info = info for i := 0; i < len(info.SkillList); i++ { //todo 技能信息应该每回合进行深拷贝,保证每次的技能效果都是不一样的 - fmt.Printf("技能1 %p\n", &info.SkillList[i]) + ret.Skills[i] = CreateSkill(&info.SkillList[i], rand, ret) - fmt.Printf("技能3 %p\n", ret.Skills[i].Info) + } return ret