Skip to content

Commit

Permalink
Cleanup repeated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Dec 5, 2024
1 parent 4d445b6 commit d2026fd
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public override void SetMatchmakerStatus(string status, float? progress = null)
InvokeMatchingStatusChanged(status, progress);
}

#region Bot
#region Bots
/// <summary>
/// Returns all human players
/// </summary>
Expand Down Expand Up @@ -453,9 +453,6 @@ private async Task<LocalPlayer> CreateBot(GameWorld gameWorld, Profile profile,
bool isSpecial = false;
if (role is not WildSpawnType.pmcUSEC and not WildSpawnType.pmcBEAR and not WildSpawnType.assault)
{
#if DEBUG
Logger.LogWarning($"Bot {profile.Info.Settings.Role} is a special bot.");
#endif
isSpecial = true;
}

Expand Down Expand Up @@ -514,9 +511,6 @@ private async Task<LocalPlayer> CreateBot(GameWorld gameWorld, Profile profile,
FikaGlobals.GetOtherPlayerSensitivity, GClass1599.Default, mongoId, nextOperationId);

coopBot.Location = Location_0.Id;
#if DEBUG
Logger.LogInfo($"Bot {profile.Info.Settings.Role} created at {position} SUCCESSFULLY!");
#endif
Bots.Add(coopBot.ProfileId, coopBot);

if (profile.Info.Side is not EPlayerSide.Savage)
Expand Down Expand Up @@ -1646,10 +1640,6 @@ public override async Task vmethod_1(BotControllerSettings controllerSettings, I
WeatherController.Instance.method_0(WeatherClasses);
}
}
else
{
Logger.LogError("WeatherController was null!");
}

gameWorld.TriggersModule = gameObject.AddComponent<LocalClientTriggersModule>();
gameWorld.FillLampControllers();
Expand Down

0 comments on commit d2026fd

Please sign in to comment.