Rolisteam / DiceParser

Powerful dice Roller is used as discord bot, irc bot, cli tool and inside Rolisteam : 1d20+4, 1L[head,arm,leg,belly,chest], 1d6+1d8, 8+5*3
http://www.rolisteam.org/
GNU General Public License v3.0
125 stars 31 forks source link

List weight doesn't seem to work #158

Open ZeldaZone opened 1 year ago

ZeldaZone commented 1 year ago

Either the documentation for Weights in lists is wrong, or they simply don't work. Testing using the discord bot

To test try making an extremely biased weight and a large number of outputs like the below:

/r command:20L[fail[99],pass[1]]

Despite one having 99 weight and one 1, the output will be an even mix of pass and fail. The readme is also very vague about this, I assume a higher number is a higher chance to happen, though since it doesn't work I can't really tell.

Workaround: Just repeat the item entirely and it's picked as an independent item, increasing its weight. But that's what I was trying to stop doing by using this feature.