Ejemplo n.º 1
0
                public async Task addAbility([Remainder, Summary("Ability")] string ability)
                {
                    if (characters == null)
                    {
                        characters = new List <CharacterNode>();
                    }
                    CharacterNode old = findCharacter(Context.User);

                    if (old == null)
                    {
                        await Context.User.SendMessageAsync("You do not have an active character.");

                        return;
                    }
                    bool s = old.removeAbilityProficiency(ability);

                    if (s)
                    {
                        await Context.User.SendMessageAsync("I added the proficiency for you.");
                    }
                    else
                    {
                        await Context.User.SendMessageAsync("That is not a valid proficiency.");
                    }
                }