版署觉醒属性
This commit is contained in:
parent
cf74362c94
commit
27227952a6
@ -209,24 +209,8 @@ func (this *ModelHero) resetJuexingProperty(hero *pb.DBHero) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
value, _ := strconv.Atoi(awakenData.Phasebonus[1])
|
value, _ := strconv.Atoi(awakenData.Phasebonus[1])
|
||||||
switch key {
|
hero.JuexProperty[key] += int32(value)
|
||||||
case comm.Hp:
|
|
||||||
hero.JuexProperty[comm.Hp] += int32(value)
|
|
||||||
case comm.Def:
|
|
||||||
hero.JuexProperty[comm.Def] += int32(value)
|
|
||||||
case comm.Atk:
|
|
||||||
hero.JuexProperty[comm.Atk] += int32(value)
|
|
||||||
case comm.Speed:
|
|
||||||
hero.JuexProperty[comm.Speed] += int32(value)
|
|
||||||
case comm.ResonanceHpPro:
|
|
||||||
hero.JuexProperty[comm.Hp] += int32(math.Floor((float64(value) / 1000) * float64(hero.Property[comm.Hp])))
|
|
||||||
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])))
|
|
||||||
default:
|
|
||||||
this.module.Errorf("unkonw Resonance property:%s", key)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user