Skip to content

Commit

Permalink
Add more maps to random UMS AI team detection
Browse files Browse the repository at this point in the history
  • Loading branch information
icza committed Nov 6, 2024
1 parent c52cea3 commit d7c70af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/screp/screp.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

const (
appName = "screp"
appVersion = "v1.12.3"
appVersion = "v1.12.4"
appAuthor = "Andras Belicza"
appHome = "https://github.com/icza/screp"
)
Expand Down
6 changes: 4 additions & 2 deletions rep/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ func (r *Replay) Compute() {
mapName = strings.ToLower(stringsx.Clean(mapName))
// "[ai]" maps are special, we can do better than in general:
switch {
case mapName == " hunters kespa soulclan ai" || mapName == ":da hunters ai" ||
mapName == "(xb2) big game hunters" || strings.HasPrefix(mapName, "王牌猎人") ||
case mapName == " hunters kespa soulclan ai" || mapName == ":da hunters ai" || mapName == "(xb2) big game hunters" ||
mapName == "big game hunters" || // Multiple BGH versions have random team assignment, always try if UMS
strings.HasPrefix(mapName, "王牌猎人") || strings.HasPrefix(mapName, "j_big game hunters") ||
strings.Contains(mapName, "随机分组") || // "random grouping"
strings.Contains(mapName, "[ai]") || strings.Contains(mapName, "ai hunters") || strings.Contains(mapName, "bgh random teams"):
r.detectObservers(pidBuilds, obsProfileUMSAI)
r.computeUMSTeamsAI()
Expand Down
2 changes: 1 addition & 1 deletion repparser/repparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import (

const (
// Version is a Semver2 compatible version of the parser.
Version = "v1.12.3"
Version = "v1.12.4"
)

var (
Expand Down

0 comments on commit d7c70af

Please sign in to comment.