Skip to content

Commit 83af744

Browse files
committed
Do not automatically request robot substitution
This in combination with the new rules to punish robot substitution does not work well. See: RoboCup-SSL/ssl-rules#78
1 parent e2e34aa commit 83af744

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

internal/app/statemachine/change_gameevent.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,20 +122,6 @@ func (s *StateMachine) processChangeAddGameEvent(newState *state.State, change *
122122
changes = append(changes, createCommandChange(state.NewCommandNeutral(state.Command_HALT)))
123123
}
124124

125-
// too many robots
126-
if *gameEvent.Type == state.GameEvent_TOO_MANY_ROBOTS {
127-
byTeam := *gameEvent.GetTooManyRobots().ByTeam
128-
if byTeam.Known() {
129-
log.Printf("Team %s has too many robots. Requesting robot substition for them", byTeam)
130-
newState.TeamInfo(byTeam).RequestsBotSubstitutionSince = timestamppb.New(s.timeProvider())
131-
} else {
132-
log.Printf("Too many robots, but no information on team. Requesting for both")
133-
for _, team := range state.BothTeams() {
134-
newState.TeamInfo(team).RequestsBotSubstitutionSince = timestamppb.New(s.timeProvider())
135-
}
136-
}
137-
}
138-
139125
// challenge flag
140126
if *gameEvent.Type == state.GameEvent_CHALLENGE_FLAG {
141127
*newState.TeamInfo(byTeam).ChallengeFlags--

0 commit comments

Comments
 (0)