Beispiel #1
0
        public async Task ConfirmMarriageSlot()
        {
            var userPf        = UserProfiles.GetAccount(Context.User); // You
            var marriageCount = UserProfiles.GetMarriageCount(Context.User);
            var currency      = UserProfiles.GetCurrency(Context.User);

            if (userPf.IsBuyingSlot)
            {
                if (marriageCount == 5)
                {
                    if (currency >= 1000)
                    {
                        UserProfiles.BuyMarriageSlot(Context.User, 1000);
                        await ReplyAsync($"You purchased one slot!");
                    }
                    else
                    {
                        await ReplyAsync($"You do not have enough Nico Nii's to buy a slot.");
                    }
                }
                if (marriageCount == 6)
                {
                    if (currency >= 1500)
                    {
                        UserProfiles.BuyMarriageSlot(Context.User, 1500);
                        await ReplyAsync($"You purchased one slot!");
                    }
                    else
                    {
                        await ReplyAsync($"You do not have enough Nico Nii's to buy a slot.");
                    }
                }
                if (marriageCount == 7)
                {
                    if (currency >= 2000)
                    {
                        UserProfiles.BuyMarriageSlot(Context.User, 2000);
                        await ReplyAsync($"You purchased one slot!");
                    }
                    else
                    {
                        await ReplyAsync($"You do not have enough Nico Nii's to buy a slot.");
                    }
                }
                if (marriageCount == 8)
                {
                    if (currency >= 2500)
                    {
                        UserProfiles.BuyMarriageSlot(Context.User, 2500);
                        await ReplyAsync($"You purchased one slot!");
                    }
                    else
                    {
                        await ReplyAsync($"You do not have enough Nico Nii's to buy a slot.");
                    }
                }
                if (marriageCount == 9)
                {
                    if (currency >= 3000)
                    {
                        UserProfiles.BuyMarriageSlot(Context.User, 3000);
                        await ReplyAsync($"You purchased one slot!");
                    }
                    else
                    {
                        await ReplyAsync($"You do not have enough Nico Nii's to buy a slot.");
                    }
                }
                if (marriageCount == 10)
                {
                    if (currency >= 3500)
                    {
                        UserProfiles.BuyMarriageSlot(Context.User, 3500);
                        await ReplyAsync($"You purchased one slot!");
                    }
                    else
                    {
                        await ReplyAsync($"You do not have enough Nico Nii's to buy a slot.");
                    }
                }
                UserProfiles.SaveProfiles();
            }
        }