Exemplo n.º 1
0
            public async Task <RuntimeResult> SetSpecialAsync(Special special, int amount)
            {
                var userInfo  = Context.User;
                var character = await _charService.GetCharacterAsync(userInfo.Id);

                if (character == null)
                {
                    return(CharacterResult.CharacterNotFound());
                }
                if (character.Level > 1 && _specService.IsSpecialSet(character))
                {
                    return(StatisticResult.SpecialAlreadySet());
                }

                return(await _specService.SetInitialSpecialAsync(character, special, amount));
            }