From f63d5d4b7231216555875547d6f33dc630e424f0 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 15 Dec 2022 15:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=20=E8=A3=85=E5=A4=87?= =?UTF-8?q?=E7=A9=BF=E6=88=B4=E5=B1=9E=E6=80=A7=E8=AE=A1=E7=AE=97=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/model_hero.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index 0dbcc3727..ed103de59 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -311,10 +311,13 @@ func (this *ModelHero) setEquipProperty(hero *pb.DBHero, equip []*pb.DB_Equipmen switch k { case comm.AtkPro: addProperty[comm.Atk] += int32(math.Floor((float64(v) / 1000) * float64(hero.Property[comm.Atk]))) + addProperty[comm.AtkPro] = 0 case comm.DefPro: addProperty[comm.Def] += int32(math.Floor((float64(v) / 1000) * float64(hero.Property[comm.Def]))) + addProperty[comm.DefPro] = 0 case comm.HpPro: addProperty[comm.Hp] += int32(math.Floor((float64(v) / 1000) * float64(hero.Property[comm.Hp]))) + addProperty[comm.HpPro] = 0 } } if v.Adverbskill != nil {