From 263ca7f09bf9c7410e0a546b50331b31b5ac203e Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Fri, 14 Jun 2024 18:39:45 +0200 Subject: [PATCH] Project cleanup --- Fika.Core/Coop/Players/CoopBot.cs | 2 +- Fika.Core/Coop/Players/CoopPlayer.cs | 9 ++++----- Fika.Core/Coop/Players/ObservedCoopPlayer.cs | 1 - 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Fika.Core/Coop/Players/CoopBot.cs b/Fika.Core/Coop/Players/CoopBot.cs index d22d02de..0bf334ba 100644 --- a/Fika.Core/Coop/Players/CoopBot.cs +++ b/Fika.Core/Coop/Players/CoopBot.cs @@ -131,7 +131,7 @@ public override GClass1688 ApplyShot(DamageInfo damageInfo, EBodyPart bodyPartTy if (list != null) { - QueueArmorDamagePackets([.. list]); + QueueArmorDamagePackets([.. list]); } return hitInfo; diff --git a/Fika.Core/Coop/Players/CoopPlayer.cs b/Fika.Core/Coop/Players/CoopPlayer.cs index 0961c437..c1a404e1 100644 --- a/Fika.Core/Coop/Players/CoopPlayer.cs +++ b/Fika.Core/Coop/Players/CoopPlayer.cs @@ -27,7 +27,6 @@ using System.Threading.Tasks; using UnityEngine; using static Fika.Core.Networking.FikaSerialization; -using static UnityEngine.SendMouseEvents; namespace Fika.Core.Coop.Players { @@ -886,7 +885,7 @@ protected virtual void Start() FikaPlugin.Instance.FikaLogger.LogWarning("CoopPlayer::Start: Error removing dog tag!"); } } - + string templateId = GetDogTagTemplateId(); if (!string.IsNullOrEmpty(templateId)) @@ -904,7 +903,7 @@ protected virtual void Start() else { FikaPlugin.Instance.FikaLogger.LogWarning("Unable to find DogTagComponent"); - } + } } } @@ -1335,7 +1334,7 @@ public void QueueArmorDamagePackets(ArmorComponent[] armorComponents) { ItemIds = ids, Durabilities = durabilities, - }); + }); } } @@ -1412,7 +1411,7 @@ public void HandleArmorDamagePacket(ref ArmorDamagePacket packet) itemComponent.Repairable.Durability = packet.Durabilities[i]; itemComponent.Buff.TryDisableComponent(itemComponent.Repairable.Durability); itemComponent.Item.RaiseRefreshEvent(false, false); - } + } } } diff --git a/Fika.Core/Coop/Players/ObservedCoopPlayer.cs b/Fika.Core/Coop/Players/ObservedCoopPlayer.cs index e27cc89b..091d251b 100644 --- a/Fika.Core/Coop/Players/ObservedCoopPlayer.cs +++ b/Fika.Core/Coop/Players/ObservedCoopPlayer.cs @@ -7,7 +7,6 @@ using EFT.HealthSystem; using EFT.Interactive; using EFT.InventoryLogic; -using EFT.UI; using EFT.Vaulting; using Fika.Core.Coop.Custom; using Fika.Core.Coop.Factories;