暴击 暴击伤害,效果命中,效果抵抗 属性赋值
This commit is contained in:
parent
75a5a0f29d
commit
57829a5ea0
@ -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), //效果抵抗
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user