lib/games_dice/dice.rb in games_dice-0.2.3 vs lib/games_dice/dice.rb in games_dice-0.2.4

- old
+ new

@@ -100,10 +100,10 @@ # open-ended re-roll rules, there are some arbitrary limits imposed to prevent large amounts of # recursion. # @return [GamesDice::Probabilities] Probability distribution of dice. def probabilities return @probabilities if @probabilities - probs = @bunch_multipliers.zip(@bunches).inject( GamesDice::Probabilities.new( { @offset => 1.0 } ) ) do |probs, mb| + probs = @bunch_multipliers.zip(@bunches).inject( GamesDice::Probabilities.new( [1.0], @offset ) ) do |probs, mb| m,b = mb GamesDice::Probabilities.add_distributions_mult( 1, probs, m, b.probabilities ) end end