public static void NumDice(MacroContext context) { long dice = 0; foreach (var roll in context.Data.InternalContext.RollExpressions) { dice += (long)roll.NumDice.Value; } context.Value = dice; context.ValueType = ResultType.Total; }
public static void NumDice(MacroContext context) { context.Value = context.Data.InternalContext.AllRolls.Count; context.ValueType = ResultType.Total; }