Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RLBotCS/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
if (args.Length > 0 && args[0] == "--version")
{
Console.WriteLine(
"RLBotServer v5.0.0\n"
"RLBotServer v5.0.1\n"
+ $"Bridge {BridgeVersion.Version}\n"
+ "@ https://www.rlbot.org & https://github.com/RLBot/core"
);
Expand Down
6 changes: 6 additions & 0 deletions RLBotCS/ManagerTools/ConfigParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static class Fields
public const string MutatorsMaxScore = "max_score";
public const string MutatorsMultiBall = "multi_ball";
public const string MutatorsOvertime = "overtime";
public const string MutatorsSeriesLength = "series_length";
public const string MutatorsGameSpeed = "game_speed";
public const string MutatorsBallMaxSpeed = "ball_max_speed";
public const string MutatorsBallType = "ball_type";
Expand Down Expand Up @@ -699,6 +700,11 @@ private MutatorSettingsT GetMutatorSettings(TomlTable mutatorTable) =>
Fields.MutatorsOvertime,
OvertimeMutator.Unlimited
),
SeriesLength = GetEnum(
mutatorTable,
Fields.MutatorsSeriesLength,
SeriesLengthMutator.Unlimited
),
GameSpeed = GetEnum(
mutatorTable,
Fields.MutatorsGameSpeed,
Expand Down
1 change: 1 addition & 0 deletions RLBotCSTests/ConfigParserTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public void EdgeCases()
Assert.AreEqual("something invalid", edgeMC.LauncherArg);

Assert.AreEqual(MatchLengthMutator.TenMinutes, edgeMC.Mutators.MatchLength);
Assert.AreEqual(SeriesLengthMutator.FiveGames, edgeMC.Mutators.SeriesLength);
Assert.AreEqual(GravityMutator.Reverse, edgeMC.Mutators.Gravity);

Assert.AreEqual(PlayerClass.PsyonixBot, edgeMC.PlayerConfigurations[0].Variety.Type);
Expand Down
1 change: 1 addition & 0 deletions RLBotCSTests/TestTomls/edge.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ enable_rendering = false

[mutators]
match_length = "TenMinutes"
series_length = "FiveGames"
gravity = "rEvErsE"

[[cars]]
Expand Down
Loading