From 298a8f80ffa7d7063465cadebbe942efca041339 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 22 Nov 2022 11:18:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=89=E9=86=92=E9=98=B2=E5=BE=A1=E7=99=BE?= =?UTF-8?q?=E5=88=86=E6=AF=94=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index 714544571..f1645577d 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -264,7 +264,7 @@ func (this *ModelHero) setJuexingProperty(hero *pb.DBHero, key string, value int case comm.ResonanceAtkPro: hero.JuexProperty[comm.Atk] += int32(math.Floor((float64(value) / 1000) * float64(hero.Property[comm.Atk]))) case comm.ResonanceDefPro: - hero.JuexProperty[comm.Def] += int32(math.Floor((float64(value) / 1000)) * float64(hero.Property[comm.Def])) + hero.JuexProperty[comm.Def] += int32(math.Floor((float64(value) / 1000) * float64(hero.Property[comm.Def]))) } }