Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Dec 12, 2024
1 parent 92439a1 commit e33c9cc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected override MethodBase GetTargetMethod()

[PatchPostfix]
public static void Postfix(Task __result)
{
{
if (!HasBeenSet)
{
FikaPlugin.Instance.StartCoroutine(FikaPlugin.Instance.WaitForLocales(__result));
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Coop/Players/CoopBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public override void OnBeenKilledByAggressor(IPlayer aggressor, DamageInfoStruct
(CoopPlayer)aggressor);
}
}
}
}

public override ShotInfoClass ApplyShot(DamageInfoStruct damageInfo, EBodyPart bodyPartType, EBodyPartColliderType colliderType, EArmorPlateCollider armorPlateCollider, ShotIdStruct shotId)
{
Expand Down
6 changes: 3 additions & 3 deletions Fika.Core/Coop/Players/CoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public override void DropCurrentController(Action callback, bool fastDrop, Item
}

public override void OnBeenKilledByAggressor(IPlayer aggressor, DamageInfoStruct damageInfo, EBodyPart bodyPart, EDamageType lethalDamageType)
{
{
base.OnBeenKilledByAggressor(aggressor, damageInfo, bodyPart, lethalDamageType);

// Handle 'Help Scav' rep gains
Expand All @@ -436,7 +436,7 @@ public override void OnBeenKilledByAggressor(IPlayer aggressor, DamageInfoStruct
protected void FindKillerWeapon()
{
#if DEBUG
FikaPlugin.Instance.FikaLogger.LogWarning($"Finding weapon '{lastWeaponId}'!");
FikaPlugin.Instance.FikaLogger.LogWarning($"Finding weapon '{lastWeaponId}'!");
#endif
GStruct448<Item> itemResult = FindItemById(lastWeaponId, false, false);
if (!itemResult.Succeeded)
Expand Down Expand Up @@ -466,7 +466,7 @@ public void HandleTeammateKill(ref DamageInfoStruct damage, EBodyPart bodyPart,
}

#if DEBUG
FikaPlugin.Instance.FikaLogger.LogWarning($"HandleTeammateKill: Weapon {(damage.Weapon != null ? damage.Weapon.Name.Localized() : "None")}");
FikaPlugin.Instance.FikaLogger.LogWarning($"HandleTeammateKill: Weapon {(damage.Weapon != null ? damage.Weapon.Name.Localized() : "None")}");
#endif

if (role != WildSpawnType.pmcBEAR)
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Coop/Players/ObservedCoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ public void SetAggressorData(string killerId, EBodyPart bodyPart, string weaponI
{
FindKillerWeapon();
}
}
}

private class RemoveHandsControllerHandler(ObservedCoopPlayer coopPlayer, Callback callback)
{
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Networking/FikaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private void OnLoadingProfilePacketReceived(LoadingProfilePacket packet)
if (packet.Profiles != null)
{
#if DEBUG
logger.LogWarning($"OnLoadingProfilePacketReceived: Received {packet.Profiles.Count} profiles");
logger.LogWarning($"OnLoadingProfilePacketReceived: Received {packet.Profiles.Count} profiles");
#endif
FikaBackendUtils.AddPartyMembers(packet.Profiles);
return;
Expand Down

0 comments on commit e33c9cc

Please sign in to comment.