This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create a new roll for 4d6 and roll it | |
let roll = new Roll('4d6').roll(); | |
//Convert to json | |
let rjson = roll.toJSON(); | |
//Manually set properties | |
rjson.formula = "4d6r<=2dl1"; | |
rjson.dice[0].formula = rjson.formula; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am damccull on github. | |
* I am damccull (https://keybase.io/damccull) on keybase. | |
* I have a public key ASBN5PH0xGCMnv-ejc4GGqQtYxWarYu3kj22uar5XL9hjQo | |
To claim this, I am signing this object: |