diff --git a/bin/json/game_buriedcondi.json b/bin/json/game_buriedcondi.json index 11d88785a..dd67ca9d5 100644 --- a/bin/json/game_buriedcondi.json +++ b/bin/json/game_buriedcondi.json @@ -32468,7 +32468,7 @@ }, "value": 1, "filter": [ - 1101012 + 1101014 ], "filter2": [] }, diff --git a/modules/parkour/ai.go b/modules/parkour/ai.go index c4899e1fb..7237882f4 100644 --- a/modules/parkour/ai.go +++ b/modules/parkour/ai.go @@ -146,17 +146,23 @@ func (this *aiComp) ExceAi(_ai *AI) { func (this *aiComp) ExceAiHandle_Avoid(_ai *AI, handle *AIHandle) { var ( weights []int32 = make([]int32, 0) - conf *cfg.GameBuzkashiGradeData indexhandle int32 ) - weights = append(weights, _ai.Conf.BumpFailWeight) - weights = append(weights, _ai.Conf.BumpSuccessWeight...) - indexhandle = comm.GetRandW(weights) - if indexhandle == 0 { //失败 + if _ai.ContNum >= _ai.Conf.GoldComboMax { + _ai.ContNum = 0 go this.module.avoid(_ai.Bid, _ai.Uid, 0, 0, nil) } else { - conf = this.avoidConf[indexhandle-1] - go this.module.avoid(_ai.Bid, _ai.Uid, conf.Distance, 0, conf) + weights = append(weights, _ai.Conf.BumpFailWeight+_ai.ContNum*_ai.Conf.GoldWeight) + weights = append(weights, _ai.Conf.BumpDodgeWeight) + weights = append(weights, _ai.Conf.GoldEmptyWeight) + indexhandle = comm.GetRandW(weights) + if indexhandle == 0 { //装上 + _ai.ContNum = 0 + go this.module.avoid(_ai.Bid, _ai.Uid, 0, 0, nil) + } else if indexhandle == 1 { //吃金币 + _ai.ContNum++ + go this.module.eat(_ai.Bid, _ai.Uid) + } } handle.cd = _ai.Conf.BumpCD } diff --git a/modules/parkour/core.go b/modules/parkour/core.go index c2712e8bf..776251237 100644 --- a/modules/parkour/core.go +++ b/modules/parkour/core.go @@ -87,4 +87,5 @@ type AI struct { Conf *cfg.GameBukashiAiData //配置 Handles []*AIHandle //操作列表 CD int32 //CD + ContNum int32 //连击数 }