Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 17, 2024
1 parent 1559800 commit 51f80f6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Fika.Core/Coop/Custom/FikaNewDynamicAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected void Awake()
FikaPlugin.DynamicAIRates.Medium => 300,
FikaPlugin.DynamicAIRates.High => 120,
_ => 300,
};
};

spawner = Singleton<IBotGame>.Instance.BotsController.BotSpawner;
if (spawner == null)
Expand Down Expand Up @@ -74,7 +74,7 @@ protected void Update()
}
}
}

public void AddHumans()
{
foreach (CoopPlayer player in coopHandler.Players.Values)
Expand Down
10 changes: 3 additions & 7 deletions Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@
using EFT.Counters;
using EFT.EnvironmentEffect;
using EFT.Game.Spawning;
using EFT.HealthSystem;
using EFT.InputSystem;
using EFT.Interactive;
using EFT.InventoryLogic;
using EFT.UI;
using EFT.UI.BattleTimer;
using EFT.UI.Screens;
using EFT.Weather;
using Fika.Core.Coop.BotClasses;
using Fika.Core.Coop.BTR;
using Fika.Core.Coop.Components;
using Fika.Core.Coop.Custom;
using Fika.Core.Coop.FreeCamera;
using Fika.Core.Coop.Matchmaker;
using Fika.Core.Coop.Players;
Expand All @@ -41,7 +38,6 @@
using System.Reflection;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UIElements;

namespace Fika.Core.Coop.GameMode
{
Expand Down Expand Up @@ -200,7 +196,7 @@ public async Task CreateCoopHandler()
{
await Task.Delay(100);
}
Logger.LogInfo("FikaServer has started!");
Logger.LogInfo("FikaServer has started!");
}
else if (MatchmakerAcceptPatches.IsClient)
{
Expand Down Expand Up @@ -431,10 +427,10 @@ private async Task<LocalPlayer> CreateBot(Profile profile, Vector3 position)
}
}


CoopBot coopBot = (CoopBot)localPlayer;
coopBot.NetId = netId;
coopHandler.Players.Add(coopBot.NetId, coopBot);
coopHandler.Players.Add(coopBot.NetId, coopBot);

return localPlayer;
}
Expand Down
2 changes: 0 additions & 2 deletions Fika.Core/Coop/Patches/Minefield/Minefield_method_2_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
using System.Linq;
using System.Reflection;
using UnityEngine;
using static UnityEngine.ParticleSystem;
using static UnityEngine.Tilemaps.Tile;

namespace Fika.Core.Coop.Patches
{
Expand Down
1 change: 0 additions & 1 deletion Fika.Core/Coop/Players/ObservedCoopPlayer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// © 2024 Lacyway All Rights Reserved

using Aki.SinglePlayer.Patches.MainMenu;
using Comfort.Common;
using EFT;
using EFT.Ballistics;
Expand Down

0 comments on commit 51f80f6

Please sign in to comment.