You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ You don't have to use composer to include EZDice in your project, but you can:
44
44
45
45
### roll($diceStr)
46
46
47
-
Parse **$diceStr** as dice notation then roll those dice. Returns *(int)* total of all rolls, or *false* if no dice are found.
47
+
Parse **$diceStr** as dice notation then roll those dice. Returns *(int)* total of all rolls and modifiers, or *false* if none were found.
48
48
49
49
The parser is very forgiving, ignoring whitespace and anything else it doesn't recognise. It is also case-insensitive. Dice notation is briefly documented below.
50
50
@@ -62,7 +62,7 @@ Returns an *(array)* of dice that describes the state of the dice after the last
62
62
63
63
### getModifier()
64
64
65
-
Returns a *(string)* representing the total of all modifiers in the last roll. If there were no modifiers, or they cancelled out, a empty string is returned. You can cast this to an *(int)* if needed.
65
+
Returns a *(string)* representing the total of all modifiers in the last roll. If there were no modifiers, or they cancelled out, an empty string is returned. You can cast this to an *(int)* if needed.
66
66
67
67
e.g. if you rolled `1d8+10+1d4-2` this method would return `+8`.
0 commit comments