From 57829a5ea08d20dfbd170db8ff941320ff2fd961 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 26 Sep 2022 13:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=B4=E5=87=BB=20=E6=9A=B4=E5=87=BB?= =?UTF-8?q?=E4=BC=A4=E5=AE=B3=EF=BC=8C=E6=95=88=E6=9E=9C=E5=91=BD=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E6=95=88=E6=9E=9C=E6=8A=B5=E6=8A=97=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/model_hero.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index fb652da41..172ad6712 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -452,10 +452,14 @@ func (this *ModelHero) PropertyCompute(hero *pb.DBHero) { lvGrow.Speed, 0, 0, 0, stargrowCfg.StarupSpeed) speed, _ := mengine.ParseAndExec(exprSpeed) hero.Property = map[string]int32{ - comm.Hp: int32(math.Floor(hp)), - comm.Atk: int32(math.Floor(atk)), - comm.Def: int32(math.Floor(def)), - comm.Speed: int32(math.Floor(speed)), + comm.Hp: int32(math.Floor(hp)), + comm.Atk: int32(math.Floor(atk)), + comm.Def: int32(math.Floor(def)), + comm.Speed: int32(math.Floor(speed)), + comm.Cri: int32(lvGrow.Cri), //暴击 + comm.Effhit: int32(lvGrow.Effhit), //效果命中 + comm.Cridam: int32(lvGrow.Cridam), //暴击伤害 + comm.Effre: int32(lvGrow.Effre), //效果抵抗 } }