From 2e078f8311b95429dc6d84b3cd18983a6e686a47 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:41:36 +0100 Subject: [PATCH] Fix statistic for bosses --- Fika.Core/Coop/Players/CoopBot.cs | 2 +- Fika.Core/Coop/Players/ObservedCoopPlayer.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Fika.Core/Coop/Players/CoopBot.cs b/Fika.Core/Coop/Players/CoopBot.cs index 536c45f2..2f38635b 100644 --- a/Fika.Core/Coop/Players/CoopBot.cs +++ b/Fika.Core/Coop/Players/CoopBot.cs @@ -170,7 +170,7 @@ public override void OnBeenKilledByAggressor(IPlayer aggressor, DamageInfoStruct FikaPlugin.Instance.FikaLogger.LogInfo($"Received shared boss XP of {toReceive} from {aggressor.Profile.Nickname}"); #endif mainPlayer.Profile.EftStats.SessionCounters.AddLong(1L, SessionCounterTypesAbstractClass.Kills); - mainPlayer.Profile.EftStats.SessionCounters.AddInt(toReceive, SessionCounterTypesAbstractClass.KilledBoss); + mainPlayer.Profile.EftStats.SessionCounters.AddInt(toReceive, SessionCounterTypesAbstractClass.ExpKillBase); } if (FikaPlugin.Instance.SharedQuestProgression && FikaPlugin.EasyKillConditions.Value) diff --git a/Fika.Core/Coop/Players/ObservedCoopPlayer.cs b/Fika.Core/Coop/Players/ObservedCoopPlayer.cs index 81c114c0..cc9f05c2 100644 --- a/Fika.Core/Coop/Players/ObservedCoopPlayer.cs +++ b/Fika.Core/Coop/Players/ObservedCoopPlayer.cs @@ -946,10 +946,10 @@ public override void OnBeenKilledByAggressor(IPlayer aggressor, DamageInfoStruct { int toReceive = experience / 2; #if DEBUG - FikaPlugin.Instance.FikaLogger.LogInfo($"Received shared boss XP of {toReceive} from {aggressor.Profile.Nickname}"); + FikaPlugin.Instance.FikaLogger.LogInfo($"Received shared boss XP of {toReceive} from {aggressor.Profile.Nickname}"); #endif mainPlayer.Profile.EftStats.SessionCounters.AddLong(1L, SessionCounterTypesAbstractClass.Kills); - mainPlayer.Profile.EftStats.SessionCounters.AddInt(toReceive, SessionCounterTypesAbstractClass.KilledBoss); + mainPlayer.Profile.EftStats.SessionCounters.AddInt(toReceive, SessionCounterTypesAbstractClass.ExpKillBase); } if (FikaPlugin.Instance.SharedQuestProgression && FikaPlugin.EasyKillConditions.Value)