Beispiel #1
0
 public GiveGameCommand(UserCurrencyViewModel currency)
     : base("Give", new List <string>() { "give" }, new RequirementViewModel(role: new RoleRequirementViewModel(MixerRoleEnum.User),
                                                                             cooldown: new CooldownRequirementViewModel(CooldownTypeEnum.Global, 15),
                                                                             currency: new CurrencyRequirementViewModel(currency, CurrencyRequirementTypeEnum.MinimumOnly, 1)), giveToRandomUser: false)
 {
     this.UserParticipatedCommand = PreMadeGameCommandHelper.CreateCustomChatCommand("@$gamestarterusername just gave $gamepayout $gamecurrencyname to @$username!");
 }
Beispiel #2
0
        public HeistGameCommand(UserCurrencyViewModel currency)
            : base("Heist", new List <string>() { "heist" }, new RequirementViewModel(role: new RoleRequirementViewModel(MixerRoleEnum.User),
                                                                                      cooldown: new CooldownRequirementViewModel(CooldownTypeEnum.Global, 60), currency: new CurrencyRequirementViewModel(currency, CurrencyRequirementTypeEnum.MinimumOnly, 10)),
                   new List <GameOutcome>(), new List <GameOutcomeGroup>(), null, gameLength: 30, minimumParticipants: 2)
        {
            this.GameStartedCommand    = PreMadeGameCommandHelper.CreateCustomChatCommand("@$username is starting a heist! Type \"!heist <BET>\" in chat to join in!");
            this.GameEndedCommand      = PreMadeGameCommandHelper.CreateCustomChatCommand("The cops have shown up! Everyone from the heist scatters with whatever they were able to get...");
            this.UserJoinedCommand     = PreMadeGameCommandHelper.CreateCustomWhisperChatCommand("You've hopped into the heist van! Let's see if you can pull it off...");
            this.NotEnoughUsersCommand = PreMadeGameCommandHelper.CreateCustomChatCommand("Apparently not enough people wanted to join @$username...");

            this.Outcomes.Add(new GameOutcome("Win", PreMadeGameCommandHelper.CreateCustomWhisperChatCommand("You made out successfully with $gamepayout!")));
            this.Outcomes.Add(new GameOutcome("Super Win", PreMadeGameCommandHelper.CreateCustomWhisperChatCommand("You made out like a SUPER BANDIT with $gamepayout!")));

            GameOutcomeGroup userGroup = new GameOutcomeGroup(MixerRoleEnum.User);

            userGroup.Probabilities.Add(new GameOutcomeProbability(40, 25, "Win"));
            userGroup.Probabilities.Add(new GameOutcomeProbability(10, 75, "Super Win"));
            this.Groups.Add(userGroup);

            GameOutcomeGroup subscriberGroup = new GameOutcomeGroup(MixerRoleEnum.Subscriber);

            subscriberGroup.Probabilities.Add(new GameOutcomeProbability(40, 25, "Win"));
            subscriberGroup.Probabilities.Add(new GameOutcomeProbability(10, 75, "Super Win"));
            this.Groups.Add(subscriberGroup);

            GameOutcomeGroup modGroup = new GameOutcomeGroup(MixerRoleEnum.Mod);

            modGroup.Probabilities.Add(new GameOutcomeProbability(40, 25, "Win"));
            modGroup.Probabilities.Add(new GameOutcomeProbability(10, 75, "Super Win"));
            this.Groups.Add(modGroup);

            this.LoseLeftoverCommand = PreMadeGameCommandHelper.CreateCustomWhisperChatCommand("Tough luck, the cops caught you before you could get anything good!");
        }
Beispiel #3
0
 public RussianRouletteGameCommand(UserCurrencyViewModel currency)
     : base("Russian Roulette", new List <string>() { "rr", "russian" }, UserRole.User, 60, new UserCurrencyRequirementViewModel(currency, 10), gameLength: 30, minimumParticipants: 2)
 {
     this.GameStartedCommand    = PreMadeGameCommandHelper.CreateCustomChatCommand("@$username is starting a game of Russian Roulette! Type \"!rr\" in chat to join in and win the whole pot!");
     this.GameEndedCommand      = PreMadeGameCommandHelper.CreateCustomChatCommand("Russian Roulette has ended...and @$username emerged victorious with $gamepayout $gamecurrencyname!");
     this.UserJoinedCommand     = PreMadeGameCommandHelper.CreateCustomWhisperChatCommand("You've taken your seat at the circle, let's wait and see what happens!");
     this.NotEnoughUsersCommand = PreMadeGameCommandHelper.CreateCustomChatCommand("Apparently not enough people wanted to join @$username...");
 }
Beispiel #4
0
        public SpinWheelGameCommand(UserCurrencyViewModel currency)
            : base("Spin Wheel", new List <string>() { "spin" }, UserRole.User, 15, new UserCurrencyRequirementViewModel(currency, 1, 100),
                   CurrencyRequirementTypeEnum.MinimumAndMaximum, new List <GameOutcome>(), new List <GameOutcomeGroup>(), null)
        {
            this.Outcomes.Add(new GameOutcome("Win", PreMadeGameCommandHelper.CreateCustomChatCommand("@$username won $gamepayout $gamecurrencyname!")));

            GameOutcomeGroup userGroup = new GameOutcomeGroup(UserRole.User);

            userGroup.Probabilities.Add(new GameOutcomeProbability(50, 25, "Win"));
            this.Groups.Add(userGroup);

            GameOutcomeGroup subscriberGroup = new GameOutcomeGroup(UserRole.Subscriber);

            subscriberGroup.Probabilities.Add(new GameOutcomeProbability(50, 25, "Win"));
            this.Groups.Add(subscriberGroup);

            GameOutcomeGroup modGroup = new GameOutcomeGroup(UserRole.Mod);

            modGroup.Probabilities.Add(new GameOutcomeProbability(50, 25, "Win"));
            this.Groups.Add(modGroup);

            this.LoseLeftoverCommand = PreMadeGameCommandHelper.CreateCustomChatCommand("Sorry @$username, you lost the spin!");
        }
Beispiel #5
0
        public SpinWheelGameCommand(UserCurrencyViewModel currency)
            : base("Spin Wheel", new List <string>() { "spin" }, new RequirementViewModel(role: new RoleRequirementViewModel(MixerRoleEnum.User),
                                                                                          cooldown: new CooldownRequirementViewModel(CooldownTypeEnum.Global, 15), currency: new CurrencyRequirementViewModel(currency, 1, 100)),
                   new List <GameOutcome>(), new List <GameOutcomeGroup>(), null)
        {
            this.Outcomes.Add(new GameOutcome("Win", PreMadeGameCommandHelper.CreateCustomChatCommand("@$username won $gamepayout $gamecurrencyname!")));

            GameOutcomeGroup userGroup = new GameOutcomeGroup(MixerRoleEnum.User);

            userGroup.Probabilities.Add(new GameOutcomeProbability(50, 25, "Win"));
            this.Groups.Add(userGroup);

            GameOutcomeGroup subscriberGroup = new GameOutcomeGroup(MixerRoleEnum.Subscriber);

            subscriberGroup.Probabilities.Add(new GameOutcomeProbability(50, 25, "Win"));
            this.Groups.Add(subscriberGroup);

            GameOutcomeGroup modGroup = new GameOutcomeGroup(MixerRoleEnum.Mod);

            modGroup.Probabilities.Add(new GameOutcomeProbability(50, 25, "Win"));
            this.Groups.Add(modGroup);

            this.LoseLeftoverCommand = PreMadeGameCommandHelper.CreateCustomChatCommand("Sorry @$username, you lost the spin!");
        }
Beispiel #6
0
 public GiveGameCommand(UserCurrencyViewModel currency)
     : base("Give", new List <string>() { "give" }, UserRole.User, 15, new UserCurrencyRequirementViewModel(currency, 1), CurrencyRequirementTypeEnum.MinimumOnly, giveToRandomUser: false)
 {
     this.UserParticipatedCommand = PreMadeGameCommandHelper.CreateCustomChatCommand("@$gamestarterusername just gave $gamepayout $gamecurrencyname to @$username!");
 }
Beispiel #7
0
 public CharityGameCommand(UserCurrencyViewModel currency)
     : base("Charity", new List <string>() { "charity" }, UserRole.User, 15, new UserCurrencyRequirementViewModel(currency, 1), CurrencyRequirementTypeEnum.MinimumOnly, giveToRandomUser: true)
 {
     this.UserParticipatedCommand = PreMadeGameCommandHelper.CreateCustomChatCommand("@$username just received $gamepayout $gamecurrencyname randomly from @$gamestarterusername!");
 }