Пример #1
0
        public async Task Skills(SocketReaction reaction, IUserMessage msg)
        {
            if (player.skillPoints > 0)
            {
                bool changes = true;
                switch (reaction.Emote.ToString())
                {
                case "🇪":
                    player.stats.endurance++;
                    player.skillPoints--;
                    break;

                case "🇮":
                    player.stats.intelligence++;
                    player.skillPoints--;
                    break;

                case "🇸":
                    player.stats.strength++;
                    player.skillPoints--;
                    break;

                case "🇨":
                    player.stats.charisma++;
                    player.skillPoints--;
                    break;

                case "🇩":
                    player.stats.dexterity++;
                    player.skillPoints--;
                    break;

                case "🇵":
                    player.stats.perception++;
                    player.skillPoints--;
                    break;

                default:
                    changes = false;
                    break;
                }
                if (changes)
                {
                    player.SaveFileMongo();
                    await TryMSGDel(msg);

                    if (player.skillPoints == 0)
                    {
                        await GameCommands.ViewXP(player, reaction.Channel);
                    }
                    else
                    {
                        await GameCommands.SkillUpgradePage(player, reaction.Channel);
                    }
                }
            }
        }
Пример #2
0
        public async Task XP(SocketReaction reaction, IUserMessage msg)
        {
            switch (reaction.Emote.ToString())
            {
            case skills:
                await GameCommands.SkillUpgradePage(player, reaction.Channel);

                break;

            case pickSpec:
                await Specialization.Specialization.SpecializationChoice(player, reaction.Channel);

                break;
            }
        }