public static void Postfix(SPScoreboardVM __instance) { StatExplainer renownExplainer = null; StatExplainer influencExplainer = null; StatExplainer moraleExplainer = null; float renownChange = 0; float influenceChange = 0; float moraleChange = 0; float goldChange = 0; float playerEarnedLootPercentage = 0; if (PlayerEncounter.IsActive) { PlayerEncounter.GetBattleRewards(out renownChange, out influenceChange, out moraleChange, out goldChange, out playerEarnedLootPercentage, ref renownExplainer, ref influencExplainer, ref moraleExplainer); } Campaign.Current.GetCampaignBehavior <SpousesStatsBehavior>().GetSpouseStatsBusiness() .EndCountHeroBattleData(__instance.BattleResultIndex, renownChange, influenceChange, moraleChange, goldChange, playerEarnedLootPercentage); }