private void OnPostRoundEnd() { if (!this.UseGold() || this.RoundController.IsMatchEnding) { return; } foreach (NetworkCommunicator networkPeer in GameNetwork.NetworkPeers) { MissionPeer component = networkPeer.GetComponent <MissionPeer>(); if (component != null && this.RoundController.RoundCount > 0) { int num1 = 300; int num2 = this.GetCurrentGoldForPeer(component); if (num2 < 0) { num2 = 80; } else if (component.Team != null && component.Team.Side != BattleSideEnum.None && (this.RoundController.RoundWinner == component.Team.Side && component.GetComponent <FlagDominationMissionRepresentative>().CheckIfSurvivedLastRoundAndReset())) { num2 += 30; } int newAmount = num1 + MBMath.ClampInt(num2, 0, 80); if (newAmount > 300) { this.NotificationsComponent.GoldCarriedFromPreviousRound(newAmount - 300, component.GetNetworkPeer()); } this.ChangeCurrentGoldForPeer(component, newAmount); } } }