diff --git a/src/app/content.coffee b/src/app/content.coffee index e001b82d8f..4f3c4d4253 100644 --- a/src/app/content.coffee +++ b/src/app/content.coffee @@ -137,7 +137,7 @@ module.exports = { {type: 'armor', index: 5, text: "Golden Armor", icon: 'item-goldenarmor', notes:'', value:500} ] potion: {type: 'potion', text: "Potion", notes: "Recover 15 HP", value: 100, icon: 'item-flask'} - reroll: {type: 'reroll', text: "Re-Roll", icon: 'favicon', notes: "Reset your task values to 0. Do this only if you're floundering.", value:0} + reroll: {type: 'reroll', text: "Re-Roll", icon: 'favicon', notes: "Reset your task values to 0. Do this only if you're floundering.", value:500} } } diff --git a/src/app/index.coffee b/src/app/index.coffee index 327fdc1bff..c1cb6323a0 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -321,7 +321,9 @@ ready (model) -> hp = 50 if hp > 50 user.set 'stats.hp', hp else if type == 'reroll' - console.log 'reroll' + for taskId of user.get('tasks') + task = model.at('_user.tasks.'+taskId) + task.set('value', 0) unless task.get('type')=='reward' exports.vote = (e, el, next) -> diff --git a/views/app/index.html b/views/app/index.html index e6b4d0c778..4c2f5d8090 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -112,7 +112,7 @@ {#with _items.armor as :item}{/} {#with _items.weapon as :item}{/} {#with _items.potion as :item}{/} - {#with _items.reroll as :item}{/} + {#with _items.reroll as :item}{/} {/}