Effects targeting calculations by tag now work in the engine and actions

This commit is contained in:
Stefan Zermatten
2022-02-15 15:59:41 +02:00
parent e0f621cc44
commit 378da71f5d
19 changed files with 454 additions and 98 deletions

View File

@@ -16,7 +16,7 @@ const rollArray = {
};
},
toString(node){
return `[${node.values.join(', ')}]`;
return `${node.diceNum || ''}d${node.diceSize} [${node.values.join(', ')}]`;
},
reduce(node, scope, context){
const total = node.values.reduce((a, b) => a + b, 0);