Added the ability to double all number of dice to roll using context

This commit is contained in:
Stefan Zermatten
2020-09-18 12:24:08 +02:00
parent 6570665c1e
commit c8ddf9d547
3 changed files with 9 additions and 8 deletions

View File

@@ -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);