diff --git a/comm/const.go b/comm/const.go index cb9c88eea..21d7fd26d 100644 --- a/comm/const.go +++ b/comm/const.go @@ -699,6 +699,7 @@ const ( Rtype188 TaskType = 188 //玩家创建1个工会 Rtype189 TaskType = 189 //铁匠铺进行一次定制 Rtype199 TaskType = 199 //回想多少次 + Rtype200 TaskType = 200 //在狩猎内战斗X次 ) const ( diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index 73255b351..7cd98aecb 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -935,13 +935,13 @@ func (this *ModelHero) SetHeroFetterProperty(hero *pb.DBHero, attr []*cfg.Gameat value := key.N switch key.A { case comm.Hp: - hero.Fetters[comm.Hp] += int32(value) + hero.Fetters[comm.Hp] += value case comm.Def: - hero.Fetters[comm.Def] += int32(value) + hero.Fetters[comm.Def] += value case comm.Atk: - hero.Fetters[comm.Atk] += int32(value) + hero.Fetters[comm.Atk] += value case comm.Speed: - hero.Fetters[comm.Speed] += int32(value) + hero.Fetters[comm.Speed] += value case comm.HpPro: hero.Fetters[comm.Hp] += int32(math.Floor((float64(value) / 1000) * float64(hero.Property[comm.Hp]))) case comm.AtkPro: diff --git a/modules/hunting/api_challengeover.go b/modules/hunting/api_challengeover.go index caed99e78..11b0849d5 100644 --- a/modules/hunting/api_challengeover.go +++ b/modules/hunting/api_challengeover.go @@ -168,6 +168,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha tasks = append(tasks, comm.GetBuriedParam(comm.Rtype172, 1)) } tasks = append(tasks, comm.GetBuriedParam(comm.Rtype83, 1, req.BossType, req.Difficulty)) + tasks = append(tasks, comm.GetBuriedParam(comm.Rtype200, 1)) go this.module.ModuleBuried.TriggerBuried(session.GetUserId(), tasks...) return }