Exemple #1
0
        internal void AddExplode(ExplodeNode explode)
        {
            if (Explode != null && (Explode.ExplodeType != explode.ExplodeType || Explode.Compound != explode.Compound))
            {
                throw new DiceException(DiceErrorCode.MixedExplodeType);
            }

            if (Explode == null)
            {
                Explode = explode;
            }
            else
            {
                Explode.AddComparison(explode.Comparison);
            }
        }