public CreateTournamentResult TryCreateProsperityTournament() { var findSettlementResult = SettlementFinder.FindForProsperityTournament(); if (findSettlementResult.Failed) { return(CreateTournamentResult.Failure); } var options = new CreateTournamentOptions() { Settlement = findSettlementResult.AllQualifiedCandidates.Shuffle().First(), Type = TournamentType.Prosperity }; return(CreateTournament(options)); }
public CreateTournamentResult TryCreateHighbornTournament() { var findSettlementResult = SettlementFinder.FindForHighbornTournament(); if (findSettlementResult.Failed) { return(CreateTournamentResult.Failure); } var createTournamentOptions = new CreateTournamentOptions() { InitiatingHero = findSettlementResult.InitiatingHero, Settlement = findSettlementResult.Nominee, Type = TournamentType.Peace }; return(CreateTournament(createTournamentOptions)); }
public CreateTournamentResult TryCreateWeddingTournament(MBHero firstWeddedHero, MBHero secondWeddedHero) { var findSettlementResult = SettlementFinder.FindForWeddingTournament(firstWeddedHero, secondWeddedHero); if (findSettlementResult.Failed) { return(CreateTournamentResult.Failure); } var options = new CreateTournamentOptions() { Settlement = findSettlementResult.Nominee, Type = TournamentType.Wedding }; return(CreateTournament(options)); }
public CreateTournamentResult TryMakeBirthTournament(MBHero mother) { var findSettlementResult = SettlementFinder.FindForBirthTournament(mother); if (findSettlementResult.Failed) { return(CreateTournamentResult.Failure); } var createTournamentOptions = new CreateTournamentOptions() { InitiatingHero = findSettlementResult.InitiatingHero, Settlement = findSettlementResult.Nominee, Type = TournamentType.Peace }; return(CreateTournament(createTournamentOptions)); }