Esempio n. 1
0
        private void TryCreateHighbornTournament()
        {
            if (!ModState.IsLotteryWinner(TournamentType.Highborn))
            {
                return;
            }

            var result = TournamentBuilder.TryCreateHighbornTournament();

            if (result.Succeeded)
            {
                MBInformationManagerFacade.DisplayAsQuickBanner($"{result.Payor.Name} invites you to a Highborn tournament at {result.HostSettlement.Name}");
            }
        }
Esempio n. 2
0
        private void TryCreateInvitationTournament()
        {
            if (!ModState.IsLotteryWinner(TournamentType.Invitation) &&
                MBHero.MainHero.Clan.Renown >= Settings.MaxRenownForInvitationTournaments)
            {
                return;
            }
            var result = TournamentBuilder.TryCreateInvitationTournament();

            if (result.Succeeded)
            {
                MBInformationManagerFacade.DisplayAsQuickBanner("A local lord is looking for tournament contestants at " + result.HostSettlement.Name);
            }
        }
Esempio n. 3
0
        private void TryCreateProsperityTournament()
        {
            if (!ModState.IsLotteryWinner(TournamentType.Prosperity))
            {
                return;
            }

            var result = TournamentBuilder.TryCreateProsperityTournament();

            if (result.Succeeded)
            {
                MBInformationManagerFacade.DisplayAsLogEntry($"Local nobles at {result.HostSettlement.Name} have called a tournament due to high prosperity");
            }
        }