Beispiel #1
0
        private RuntimeResult RollNpcAsync(Statistic statToRoll, string npcName, bool useEffects = false)
        {
            var npc = _npcService.FindNpc(npcName);

            if (npc == null)
            {
                return(CharacterResult.NpcNotFound());
            }

            _npcService.ResetNpcTimer(npc);

            return(_rollService.RollStatistic(npc, statToRoll, useEffects));
        }
Beispiel #2
0
        public async Task <RuntimeResult> ShowCharacterEffectsAsync(string name)
        {
            var userInfo  = Context.User;
            var character = _npcService.FindNpc(name);

            if (character == null)
            {
                return(CharacterResult.NpcNotFound());
            }

            string info = _effectsService.GetCharacterEffects(character);

            await ReplyAsync(userInfo.Mention, embed : EmbedHelper.BuildBasicEmbed($"{character.Name}'s Effects:", info));

            return(GenericResult.FromSilentSuccess());
        }