m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-08-22 18:01:48 -0400
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-08-22 18:15:15 -0400
commit1426322eb4898cd49310c1dc30cdfc8ad8e73402 (patch)
treec22776bb6af5180d41b90d0ceb7c06c03c66dd9b /index.js
parent12a632d2772da84043d4335eeabbca505efd760f (diff)
Parse negative bonuses
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index 980c6b4..895656d 100644
--- a/index.js
+++ b/index.js
@@ -21,6 +21,8 @@ const interpret = tree => {
return D.negative(interpret(tree.value))
case 'bonusAdd':
return D.bonusAdd(interpret(tree.left), interpret(tree.right))
+ case 'bonusSubtract':
+ return D.bonusSubtract(interpret(tree.left), interpret(tree.right))
}
}