diff --git a/project/SPT.SinglePlayer/Patches/Progression/ScavExperienceGainPatch.cs b/project/SPT.SinglePlayer/Patches/Progression/FixPostScavRaidXpShowingZeroPatch.cs
similarity index 82%
rename from project/SPT.SinglePlayer/Patches/Progression/ScavExperienceGainPatch.cs
rename to project/SPT.SinglePlayer/Patches/Progression/FixPostScavRaidXpShowingZeroPatch.cs
index c6bb562..b4c096b 100644
--- a/project/SPT.SinglePlayer/Patches/Progression/ScavExperienceGainPatch.cs
+++ b/project/SPT.SinglePlayer/Patches/Progression/FixPostScavRaidXpShowingZeroPatch.cs
@@ -11,7 +11,7 @@ namespace SPT.SinglePlayer.Patches.Progression
///
/// Fix XP gained value being 0 after a scav raid
///
- public class ScavExperienceGainPatch : ModulePatch
+ public class FixPostScavRaidXpShowingZeroPatch : ModulePatch
{
///
/// Looking for SessionResultExitStatus Show() (private)
@@ -22,7 +22,8 @@ namespace SPT.SinglePlayer.Patches.Progression
return AccessTools.Method(
typeof(SessionResultExitStatus),
nameof(SessionResultExitStatus.Show),
- new []{ typeof(Profile), typeof(PlayerVisualRepresentation), typeof(ESideType), typeof(ExitStatus), typeof(TimeSpan), typeof(ISession), typeof(bool) });
+ [typeof(Profile), typeof(PlayerVisualRepresentation), typeof(ESideType), typeof(ExitStatus), typeof(TimeSpan), typeof(ISession), typeof(bool)
+ ]);
}
// Unused, but left here in case patch breaks and finding the intended method is difficult
@@ -38,16 +39,16 @@ namespace SPT.SinglePlayer.Patches.Progression
}
[PatchPrefix]
- public static bool PatchPrefix(ref Profile activeProfile,ref EPlayerSide side)
+ public static bool PatchPrefix(ref Profile activeProfile, ref EPlayerSide side)
{
if (activeProfile.Side == EPlayerSide.Savage)
{
- side = EPlayerSide.Savage; // Also set side to correct value (defaults to usec/bear when playing as scav)
+ side = EPlayerSide.Savage; // Also set side to correct value (defaults to USEC/BEAR when playing as scav)
int xpGainedInSession = activeProfile.Stats.Eft.SessionCounters.GetAllInt(new object[] { CounterTag.Exp });
activeProfile.Stats.Eft.TotalSessionExperience = (int)(xpGainedInSession * activeProfile.Stats.Eft.SessionExperienceMult * activeProfile.Stats.Eft.ExperienceBonusMult);
}
- return true; // Always do original method
+ return true; // Do original method
}
}
}
\ No newline at end of file
diff --git a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs
index f98f134..ec7269a 100644
--- a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs
+++ b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs
@@ -29,7 +29,7 @@ namespace SPT.SinglePlayer
//new FixQuestAchieveControllersPatch().Enable(); // Likely not needed, if cheevos don't appear, revisit patch
// Still need
- new ScavExperienceGainPatch().Enable();
+ new FixPostScavRaidXpShowingZeroPatch().Enable();
new DisablePMCExtractsForScavsPatch().Enable();
new ScavExfilPatch().Enable();
new ScavProfileLoadPatch().Enable();