上传基础属性扩展

This commit is contained in:
liwei1dao 2022-12-29 09:54:19 +08:00
parent e06ca2df71
commit a03004b0f2
3 changed files with 7 additions and 0 deletions

View File

@ -299,6 +299,8 @@ const (
CauseDam string = "causedam" //伤害提升%
TreAdd string = "treadd" //治疗加成%
BeTreAdd string = "betreadd" //受疗加成%
SuckBlood string = "suckblood" //吸血加成%
SpeedPro string = "speedpro" //速度加成%
)
const (

View File

@ -318,6 +318,9 @@ func (this *ModelHero) setEquipProperty(hero *pb.DBHero, equip []*pb.DB_Equipmen
case comm.HpPro:
addProperty[comm.Hp] += int32(math.Floor((float64(v) / 1000) * float64(hero.Property[comm.Hp])))
addProperty[comm.HpPro] = 0
case comm.SpeedPro:
addProperty[comm.Speed] += int32(math.Floor((float64(v) / 1000) * float64(hero.Property[comm.Speed])))
addProperty[comm.SpeedPro] = 0
}
}
if v.Adverbskill != nil {

View File

@ -135,6 +135,8 @@ func (this *modelHoroscope) compute(info *pb.DBHoroscope, hero *pb.DBHero) (err
hero.HoroscopeProperty[comm.Def] += int32(math.Floor((float64(v) / 1000) * float64(hero.HoroscopeProperty[comm.Def])))
case comm.HpPro:
hero.HoroscopeProperty[comm.Hp] += int32(math.Floor((float64(v) / 1000) * float64(hero.HoroscopeProperty[comm.Hp])))
case comm.SpeedPro:
hero.HoroscopeProperty[comm.Speed] += int32(math.Floor((float64(v) / 1000) * float64(hero.HoroscopeProperty[comm.Speed])))
}
}
return