Condensed logs to a single card per action

This commit is contained in:
Stefan Zermatten
2021-02-11 15:48:23 +02:00
parent d7083cf242
commit 439eadf079
16 changed files with 281 additions and 135 deletions

View File

@@ -30,14 +30,12 @@ export default class RollNode extends ParseNode {
return new ErrorNode({
node: this,
error: 'Number of dice is not an integer',
previousNodes: [this, left, right],
});
}
if (!right.isInteger){
return new ErrorNode({
node: this,
error: 'Dice size is not an integer',
previousNodes: [this, left, right],
});
}
let number = left.value;