private void onTournamentUpgradeGained(Player player, string id, bool epicVersion, int numMilestonesCompleted) { if (player.Tournaments.hasTournamentSelected()) { int num; string bucketId; string str3; string selectedTournamentId = player.Tournaments.SelectedTournamentId; TournamentView tournamentView = Service.Binder.TournamentSystem.GetTournamentView(selectedTournamentId); if (tournamentView != null) { num = tournamentView.getLeaderboardRanking(tournamentView.PlayerEntry); bucketId = tournamentView.BucketId; } else { num = -1; bucketId = string.Empty; } if (epicVersion) { str3 = id + "_Epic"; } else { str3 = id + "_Normal"; } this.sendBossHuntEvent(player, selectedTournamentId, bucketId, num, "get_card", -1, str3); } }
private void onTournamentCardsReceived(string tournamentId) { int num; string bucketId; Player player = GameLogic.Binder.GameState.Player; TournamentView tournamentView = Service.Binder.TournamentSystem.GetTournamentView(tournamentId); if (tournamentView != null) { num = tournamentView.getLeaderboardRanking(tournamentView.PlayerEntry); bucketId = tournamentView.BucketId; } else { num = -1; bucketId = string.Empty; } this.sendBossHuntEvent(player, tournamentId, bucketId, num, "receive_donation", -1, string.Empty); }