diff --git a/comm/const.go b/comm/const.go index bc180e3a9..fd718de85 100644 --- a/comm/const.go +++ b/comm/const.go @@ -299,6 +299,8 @@ const ( CauseDam string = "causedam" //伤害提升% TreAdd string = "treadd" //治疗加成% BeTreAdd string = "betreadd" //受疗加成% + SuckBlood string = "suckblood" //吸血加成% + SpeedPro string = "speedpro" //速度加成% ) const ( diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index 3cdd7ba7c..13c3fd192 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -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 { diff --git a/modules/horoscope/modelhoroscope.go b/modules/horoscope/modelhoroscope.go index ce6875567..cf98d2a9a 100644 --- a/modules/horoscope/modelhoroscope.go +++ b/modules/horoscope/modelhoroscope.go @@ -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