Skip to content

Commit

Permalink
Extend UMS AI team detection to new maps, increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
icza committed Oct 11, 2024
1 parent 53bdf09 commit daf9dd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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.0"
appVersion = "v1.12.1"
appAuthor = "Andras Belicza"
appHome = "https://github.com/icza/screp"
)
Expand Down
4 changes: 4 additions & 0 deletions rep/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ 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":
fallthrough
case strings.Contains(mapName, "[ai]") || strings.Contains(mapName, "ai hunters") || strings.Contains(mapName, "bgh random teams"):
r.detectObservers(pidBuilds, obsProfileUMSAI)
r.computeUMSTeamsAI()

default:
r.computeUMSTeams()
}
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.0"
Version = "v1.12.1"
)

var (
Expand Down

0 comments on commit daf9dd9

Please sign in to comment.