Beispiel #1
0
        public async Task OldParty()
        {
            ContextIds idList = new ContextIds(Context);
            var        user   = UserHandler.GetUser(idList.UserId);

            //Tests each case to make sure all circumstances for the execution of this command are valid (character exists, in correct location)
            try
            {
                await UserHandler.CharacterExists(idList);

                await UserHandler.ValidCharacterLocation(idList);
            }
            catch (InvalidCharacterStateException)
            {
                return;
            }

            var count = 6;

            foreach (BasicMon mon in user.Char.Party)
            {
                await MessageHandler.SendEmbedMessage(idList, "", MonEmbedBuilder.FieldMon(mon));

                count--;
            }

            await MessageHandler.SendEmbedMessage(idList, "", MonEmbedBuilder.EmptyPartySpot(count));
        }
 public static async Task TakesDamage(ContextIds context, BasicMon mon, string addon)
 {
     await MessageHandler.SendEmbedMessage(context, $"{mon.Nickname} takes damage!" + addon, MonEmbedBuilder.FieldMon(mon));
 }
 public static async Task UseMoveNew(ContextIds context, BasicMon target, string addon)
 {
     await MessageHandler.SendEmbedMessage(context, addon, MonEmbedBuilder.FieldMon(target));
 }
 public static async Task UseMove(ContextIds context, BasicMon mon, BasicMon target, string move, string addon)
 {
     await MessageHandler.SendEmbedMessage(context, $"**{mon.Nickname}** used **{move}**!" + addon, MonEmbedBuilder.FieldMon(target));
 }