Add support for adventage, disadventage and emphasis rolls.
This commit is contained in:
parent
95122d2c99
commit
8884d047a6
3 changed files with 71 additions and 14 deletions
|
|
@ -18,7 +18,14 @@ sealed class Instruction(
|
|||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "${sign.sign}${quantity}d${faces}"
|
||||
return "${sign.sign}${
|
||||
when (modifier) {
|
||||
Modifier.ADVANTAGE -> "a"
|
||||
Modifier.DISADVANTAGE -> "d"
|
||||
Modifier.EMPHASIS -> "e"
|
||||
null -> ""
|
||||
}
|
||||
}${quantity}d${faces}"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue