diff --git a/src/dice.rs b/src/dice.rs index 11c267d..9c1b21e 100644 --- a/src/dice.rs +++ b/src/dice.rs @@ -122,9 +122,6 @@ impl Expression { // Exploding dice are early, they add rolls if let Some(fragments) = x { write!(w, "x")?; - if size < 2 { - bail!("Infinite explosion.") - } let mut comparers = Vec::with_capacity(fragments.len()); for fragment in fragments { comparers.push(fragment.comparer(rng, w)?); @@ -301,7 +298,7 @@ impl Expression { } else { 1 }; - if count > 1_000_000 { + if count > DICE_POOL_LIMIT { bail!("Too many dice.") }; let size = size.avg()? as i64;