Skip to content

Commit 208eb02

Browse files
authored
Merge pull request #89 from RLBot/mutators-defaults
Update mutator default names
2 parents 3564b08 + cb51007 commit 208eb02

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

RLBotCS/Conversion/FlatToCommand.cs

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private static string MapMatchLength(MatchLengthMutator matchLength) =>
3535
private static string MapMaxScore(MaxScoreMutator maxScore) =>
3636
maxScore switch
3737
{
38-
MaxScoreMutator.Default => "",
38+
MaxScoreMutator.Unlimited => "",
3939
MaxScoreMutator.OneGoal => "Max1",
4040
MaxScoreMutator.ThreeGoals => "Max3",
4141
MaxScoreMutator.FiveGoals => "Max5",
@@ -50,7 +50,6 @@ private static string MapMaxScore(MaxScoreMutator maxScore) =>
5050
MaxScoreMutator.EightyGoals => "Max80",
5151
MaxScoreMutator.NinetyGoals => "Max90",
5252
MaxScoreMutator.HundredGoals => "Max100",
53-
MaxScoreMutator.Unlimited => "UnlimitedScore",
5453
_ => throw new ArgumentOutOfRangeException(nameof(maxScore), maxScore, null),
5554
};
5655

@@ -170,7 +169,7 @@ private static string MapBoostAmount(BoostAmountMutator option) =>
170169
private static string MapRumble(RumbleMutator option) =>
171170
option switch
172171
{
173-
RumbleMutator.NoRumble => "",
172+
RumbleMutator.Off => "",
174173
RumbleMutator.DefaultRumble => "ItemsMode",
175174
RumbleMutator.Slow => "ItemsModeSlow",
176175
RumbleMutator.Civilized => "ItemsModeBallManipulators",
@@ -234,7 +233,7 @@ private static string MapRespawnTime(RespawnTimeMutator option) =>
234233
private static string MapMaxTime(MaxTimeMutator option) =>
235234
option switch
236235
{
237-
MaxTimeMutator.Default => "",
236+
MaxTimeMutator.Unlimited => "",
238237
MaxTimeMutator.ElevenMinutes => "MaxTime11Minutes",
239238
_ => throw new ArgumentOutOfRangeException(nameof(option), option, null),
240239
};
@@ -269,15 +268,15 @@ private static string MapBallGravity(BallGravityMutator option) =>
269268
private static string MapTerritory(TerritoryMutator option) =>
270269
option switch
271270
{
272-
TerritoryMutator.Default => "",
271+
TerritoryMutator.Off => "",
273272
TerritoryMutator.Territory => "Territory",
274273
_ => throw new ArgumentOutOfRangeException(nameof(option), option, null),
275274
};
276275

277276
private static string MapStaleBall(StaleBallMutator option) =>
278277
option switch
279278
{
280-
StaleBallMutator.Default => "",
279+
StaleBallMutator.Unlimited => "",
281280
StaleBallMutator.ThirtySeconds => "ThirtySeconds",
282281
_ => throw new ArgumentOutOfRangeException(nameof(option), option, null),
283282
};
@@ -298,7 +297,7 @@ private static string MapJump(JumpMutator option) =>
298297
private static string MapDodgeTimer(DodgeTimerMutator option) =>
299298
option switch
300299
{
301-
DodgeTimerMutator.Default => "",
300+
DodgeTimerMutator.OnePointTwentyFiveSeconds => "",
302301
DodgeTimerMutator.TwoSeconds => "DodgeTwoSeconds",
303302
DodgeTimerMutator.ThreeSeconds => "DodgeThreeSeconds",
304303
DodgeTimerMutator.Unlimited => "DodgeUnlimitedSeconds",
@@ -308,7 +307,7 @@ private static string MapDodgeTimer(DodgeTimerMutator option) =>
308307
private static string MapPossessionScore(PossessionScoreMutator option) =>
309308
option switch
310309
{
311-
PossessionScoreMutator.Default => "",
310+
PossessionScoreMutator.Off => "",
312311
PossessionScoreMutator.OneSecond => "Possession1Second",
313312
PossessionScoreMutator.TwoSeconds => "Possession2Seconds",
314313
PossessionScoreMutator.ThreeSeconds => "Possession3Seconds",
@@ -318,7 +317,7 @@ private static string MapPossessionScore(PossessionScoreMutator option) =>
318317
private static string MapDemolishScore(DemolishScoreMutator option) =>
319318
option switch
320319
{
321-
DemolishScoreMutator.Default => "",
320+
DemolishScoreMutator.Zero => "",
322321
DemolishScoreMutator.One => "DemolishScore1",
323322
DemolishScoreMutator.Two => "DemolishScore2",
324323
DemolishScoreMutator.Three => "DemolishScore3",
@@ -328,7 +327,7 @@ private static string MapDemolishScore(DemolishScoreMutator option) =>
328327
private static string MapNormalGoalScore(NormalGoalScoreMutator option) =>
329328
option switch
330329
{
331-
NormalGoalScoreMutator.Default => "",
330+
NormalGoalScoreMutator.One => "",
332331
NormalGoalScoreMutator.Zero => "GoalScore0",
333332
NormalGoalScoreMutator.Two => "GoalScore2",
334333
NormalGoalScoreMutator.Three => "GoalScore3",
@@ -340,7 +339,7 @@ private static string MapNormalGoalScore(NormalGoalScoreMutator option) =>
340339
private static string MapAerialGoalScore(AerialGoalScoreMutator option) =>
341340
option switch
342341
{
343-
AerialGoalScoreMutator.Default => "",
342+
AerialGoalScoreMutator.One => "",
344343
AerialGoalScoreMutator.Zero => "AerialGoalScore0",
345344
AerialGoalScoreMutator.Two => "AerialGoalScore2",
346345
AerialGoalScoreMutator.Three => "AerialGoalScore3",
@@ -352,7 +351,7 @@ private static string MapAerialGoalScore(AerialGoalScoreMutator option) =>
352351
private static string MapAssistGoalScore(AssistGoalScoreMutator option) =>
353352
option switch
354353
{
355-
AssistGoalScoreMutator.Default => "",
354+
AssistGoalScoreMutator.Zero => "",
356355
AssistGoalScoreMutator.One => "AssistScore1",
357356
AssistGoalScoreMutator.Two => "AssistScore2",
358357
AssistGoalScoreMutator.Three => "AssistScore3",

RLBotCS/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
if (args.Length > 0 && args[0] == "--version")
1010
{
11-
Console.WriteLine("RLBotServer v5.beta.4.10");
11+
Console.WriteLine("RLBotServer v5.beta.5.0");
1212
Environment.Exit(0);
1313
}
1414

RLBotCS/ManagerTools/ConfigParser.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ private MutatorSettingsT GetMutatorSettings(TomlTable mutatorTable) =>
477477
Fields.MutatorsMatchLength,
478478
MatchLengthMutator.FiveMinutes
479479
),
480-
MaxScore = GetEnum(mutatorTable, Fields.MutatorsMaxScore, MaxScoreMutator.Default),
480+
MaxScore = GetEnum(mutatorTable, Fields.MutatorsMaxScore, MaxScoreMutator.Unlimited),
481481
MultiBall = GetEnum(mutatorTable, Fields.MutatorsMultiBall, MultiBallMutator.One),
482482
Overtime = GetEnum(
483483
mutatorTable,
@@ -511,7 +511,7 @@ private MutatorSettingsT GetMutatorSettings(TomlTable mutatorTable) =>
511511
Fields.MutatorsBoostAmount,
512512
BoostAmountMutator.NormalBoost
513513
),
514-
Rumble = GetEnum(mutatorTable, Fields.MutatorsRumble, RumbleMutator.NoRumble),
514+
Rumble = GetEnum(mutatorTable, Fields.MutatorsRumble, RumbleMutator.Off),
515515
BoostStrength = GetEnum(
516516
mutatorTable,
517517
Fields.MutatorsBoostStrength,
@@ -524,7 +524,7 @@ private MutatorSettingsT GetMutatorSettings(TomlTable mutatorTable) =>
524524
Fields.MutatorsRespawnTime,
525525
RespawnTimeMutator.ThreeSeconds
526526
),
527-
MaxTime = GetEnum(mutatorTable, Fields.MutatorsMaxTime, MaxTimeMutator.Default),
527+
MaxTime = GetEnum(mutatorTable, Fields.MutatorsMaxTime, MaxTimeMutator.Unlimited),
528528
GameEvent = GetEnum(
529529
mutatorTable,
530530
Fields.MutatorsGameEvent,
@@ -539,43 +539,43 @@ private MutatorSettingsT GetMutatorSettings(TomlTable mutatorTable) =>
539539
Territory = GetEnum(
540540
mutatorTable,
541541
Fields.MutatorsTerritory,
542-
TerritoryMutator.Default
542+
TerritoryMutator.Off
543543
),
544544
StaleBall = GetEnum(
545545
mutatorTable,
546546
Fields.MutatorsStaleBall,
547-
StaleBallMutator.Default
547+
StaleBallMutator.Unlimited
548548
),
549549
Jump = GetEnum(mutatorTable, Fields.MutatorsJump, JumpMutator.Default),
550550
DodgeTimer = GetEnum(
551551
mutatorTable,
552552
Fields.MutatorsDodgeTimer,
553-
DodgeTimerMutator.Default
553+
DodgeTimerMutator.OnePointTwentyFiveSeconds
554554
),
555555
PossessionScore = GetEnum(
556556
mutatorTable,
557557
Fields.MutatorsPossessionScore,
558-
PossessionScoreMutator.Default
558+
PossessionScoreMutator.Off
559559
),
560560
DemolishScore = GetEnum(
561561
mutatorTable,
562562
Fields.MutatorsDemolishScore,
563-
DemolishScoreMutator.Default
563+
DemolishScoreMutator.Zero
564564
),
565565
NormalGoalScore = GetEnum(
566566
mutatorTable,
567567
Fields.MutatorsNormalGoalScore,
568-
NormalGoalScoreMutator.Default
568+
NormalGoalScoreMutator.One
569569
),
570570
AerialGoalScore = GetEnum(
571571
mutatorTable,
572572
Fields.MutatorsAerialGoalScore,
573-
AerialGoalScoreMutator.Default
573+
AerialGoalScoreMutator.One
574574
),
575575
AssistGoalScore = GetEnum(
576576
mutatorTable,
577577
Fields.MutatorsAssistGoalScore,
578-
AssistGoalScoreMutator.Default
578+
AssistGoalScoreMutator.Zero
579579
),
580580
InputRestriction = GetEnum(
581581
mutatorTable,

flatbuffers-schema

0 commit comments

Comments
 (0)