Avalander / yuki

1 stars 0 forks source link

Enhancement/roll #36

Closed arturjzapater closed 4 years ago

arturjzapater commented 4 years ago

fixes #35

When creating the response, Yuki will check if any given list is greater than MAX_LIST_LENGTH (currently set to 40). If it is, it will not show the result list for that given expression. It evaluates each expression independently, so something like roll 4d6-1d4, 2d6+3 and 70d6 will produce a response similar to:

There you go:
12    (4,1,3,5),(1) [4d6-1d4]
9    (4,2) [2d6+3]
282    [70d6]

I have also rewritten the function roller to make it more readable. No functionality is changed, though.