From 20598fbb7be6a73364661a4fd8e92ad6d242234f Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 8 Sep 2024 20:35:45 -0700 Subject: fix: losing streak bonus amount no saving post frontline game --- Malmstone/Addons/PvPMatchAddon.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Malmstone/Addons/PvPMatchAddon.cs') diff --git a/Malmstone/Addons/PvPMatchAddon.cs b/Malmstone/Addons/PvPMatchAddon.cs index 896001a..41501e3 100644 --- a/Malmstone/Addons/PvPMatchAddon.cs +++ b/Malmstone/Addons/PvPMatchAddon.cs @@ -55,6 +55,7 @@ namespace Malmstone.Addons Plugin.AddonLifeCycle.RegisterListener(AddonEvent.PostSetup, "FrontlineRecord", OnFrontlineRecordTrigger); Plugin.PvPService.CurrentFrontlineLosingBonus = Plugin.Configuration.SavedFrontlineRewardBonus; Plugin.Configuration.OutdatedFrontlineRewardBonus = true; + Plugin.Configuration.Save(); FrontlineRecordPostSetupEnabled = true; } @@ -140,6 +141,7 @@ namespace Malmstone.Addons Plugin.Logger.Debug("Series EXP Earned: " + SeriesExpEarned.ToString()); Plugin.Configuration.SavedFrontlineRewardBonus = CurrentLossBonus; Plugin.Configuration.OutdatedFrontlineRewardBonus = false; + Plugin.Configuration.Save(); } else { -- cgit v1.2.3