mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-17 05:50:56 +01:00
Update dice_roll.pl to accept +n modifier
This commit is contained in:
parent
0f8187b72a
commit
11c6ebc9c3
@ -18,7 +18,7 @@ if($rolls =~ s/\s*-show\s*//) {
|
|||||||
$show = 1;
|
$show = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($rolls =~ m/^\s*(\d+)d\d+\s*$/) {
|
if($rolls =~ m/^\s*(\d+)d\d+(?:\+\d+)?\s*$/) {
|
||||||
if($1 > 100) {
|
if($1 > 100) {
|
||||||
print "Sorry, maximum of 100 rolls.\n";
|
print "Sorry, maximum of 100 rolls.\n";
|
||||||
die;
|
die;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user