Skip to content

Commit d7c70af

Browse files
committed
Add more maps to random UMS AI team detection
1 parent c52cea3 commit d7c70af

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

cmd/screp/screp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424

2525
const (
2626
appName = "screp"
27-
appVersion = "v1.12.3"
27+
appVersion = "v1.12.4"
2828
appAuthor = "Andras Belicza"
2929
appHome = "https://github.com/icza/screp"
3030
)

rep/replay.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,10 @@ func (r *Replay) Compute() {
158158
mapName = strings.ToLower(stringsx.Clean(mapName))
159159
// "[ai]" maps are special, we can do better than in general:
160160
switch {
161-
case mapName == " hunters kespa soulclan ai" || mapName == ":da hunters ai" ||
162-
mapName == "(xb2) big game hunters" || strings.HasPrefix(mapName, "王牌猎人") ||
161+
case mapName == " hunters kespa soulclan ai" || mapName == ":da hunters ai" || mapName == "(xb2) big game hunters" ||
162+
mapName == "big game hunters" || // Multiple BGH versions have random team assignment, always try if UMS
163+
strings.HasPrefix(mapName, "王牌猎人") || strings.HasPrefix(mapName, "j_big game hunters") ||
164+
strings.Contains(mapName, "随机分组") || // "random grouping"
163165
strings.Contains(mapName, "[ai]") || strings.Contains(mapName, "ai hunters") || strings.Contains(mapName, "bgh random teams"):
164166
r.detectObservers(pidBuilds, obsProfileUMSAI)
165167
r.computeUMSTeamsAI()

repparser/repparser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import (
6060

6161
const (
6262
// Version is a Semver2 compatible version of the parser.
63-
Version = "v1.12.3"
63+
Version = "v1.12.4"
6464
)
6565

6666
var (

0 commit comments

Comments
 (0)