Esempio n. 1
0
        public async Task <int> RollInitiativeAsync() //TODO: Probably going to need a strategy pattern here based on "class". Autofac Keyed.
        {
            _rollableDice.Clear();
            _rollableDice.Add(20, AbilityScores.Dexterity.Modifier, false);
            var initiative = await _rollableDice.RollAndTakeHighestAsync(1);

            _rollableDice.Clear();

            return(initiative);
        }