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), //效果抵抗 } }