paulofmandown / rotLove

Roguelike Toolkit in Love. A Love2D/lua port of rot.js
http://paulofmandown.github.io/rotLove/
Other
258 stars 25 forks source link

Dice function results in identical rolls if given identical parameters #19

Closed Zireael07 closed 7 years ago

Zireael07 commented 7 years ago

for i=1,6 do self.rolled[i] = ROT.Dice.roll('3d6') end

results in six identical rolls (e.g. six tens or six eights) instead of six different 3d6 rolls (e.g. 8, 9, 10, 12, 8, 13)

timothymtorres commented 7 years ago

I'll take a look at this later tonight. It may be that the ROT.Dice.roll isn't properly creating a new dice instance when utilized a certain way.