Added the ability to double all number of dice to roll using context
This commit is contained in:
@@ -8,9 +8,10 @@ export default function parser(){
|
||||
}
|
||||
|
||||
export class CompilationContext {
|
||||
constructor(){
|
||||
constructor({doubleRolls}){
|
||||
this.errors = [];
|
||||
this.rolls = [];
|
||||
this.doubleRolls = doubleRolls;
|
||||
}
|
||||
storeError(e){
|
||||
this.errors.push(e);
|
||||
|
||||
Reference in New Issue
Block a user