Beispiel #1
0
        public async Task ArenaFights(SocketReaction reaction, IUserMessage msg)
        {
            string e    = reaction.Emote.ToString();
            var    data = await ArenaGlobalData.Load(player.AreaInfo.path);

            //is not a number, is paying
            switch (e)
            {
            case EUI.ok:
                await data.StartFight(int.Parse(this.data), player, reaction.Channel);

                break;

            case EUI.uturn:
                await data.DiscordUI(player, reaction.Channel);

                break;

            default:
                int i = EUI.GetNum(e) - 1;
                if (i < 0)
                {
                    return;
                }
                await data.DiscordUI(i, player, reaction.Channel);

                break;
            }
        }
Beispiel #2
0
        public async Task ArenaService(SocketReaction reaction, IUserMessage msg)
        {
            switch (reaction.Emote.ToString())
            {
            case EUI.sideQuest:
                var data = await ArenaGlobalData.Load(player.AreaInfo.path);

                await data.DiscordUI(player, reaction.Channel);

                break;

            case EUI.bounties:
                await Arena.SelectMode(player, 0, reaction.Channel, true);

                break;
            }
        }