From 82fabb17cce882078326b7b806594d4693074e1c Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 24 Oct 2012 20:51:57 -0400 Subject: [PATCH] Revert "add reset button" This reverts commit 023f7ab28ad5a216f752e9f93d99ba876e17dfc0. Conflicts: lib/app/index.js --- lib/app/index.js | 11 ----------- src/app/index.coffee | 13 +------------ views/app/index.html | 12 ++---------- 3 files changed, 3 insertions(+), 33 deletions(-) diff --git a/lib/app/index.js b/lib/app/index.js index 6874e39e53..4dfa26a98c 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -312,17 +312,6 @@ ready(function(model) { model.set('_items.weapon', content.items.weapon[1]); return model.set('_user.balance', model.get('_user.balance') - 0.50); }; - exports.reset = function(e, el) { - model.set('_user.tasks', {}); - _.each(['habit', 'daily', 'todo', 'completed', 'reward'], function(type) { - model.set("_user." + type + "Ids", []); - return model.refList("_" + type + "List", "_user.tasks", "_user." + type + "Ids"); - }); - model.set('_user.stats.hp', 50); - model.set('_user.stats.money', 0); - model.set('_user.stats.exp', 0); - return model.set('_user.stats.lvl', 1); - }; setTimeout(scoring.cron, 1); return setInterval(scoring.cron, 3600000); }); diff --git a/src/app/index.coffee b/src/app/index.coffee index 26eb0db71c..c87680d30c 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -262,18 +262,7 @@ ready (model) -> model.set '_items.armor', content.items.armor[1] model.set '_items.weapon', content.items.weapon[1] model.set '_user.balance', (model.get('_user.balance') - 0.50) - - exports.reset = (e, el) -> - model.set '_user.tasks', {} - _.each ['habit', 'daily', 'todo', 'completed', 'reward'], (type) -> - model.set "_user.#{type}Ids", [] - model.refList "_#{type}List", "_user.tasks", "_user.#{type}Ids" - model.set('_user.stats.hp', 50) - model.set('_user.stats.money', 0) - model.set('_user.stats.exp', 0) - model.set('_user.stats.lvl', 1) - - + # ========== CRON ========== # FIXME seems can't call scoring.cron() instantly, have to call after some time (2s here) diff --git a/views/app/index.html b/views/app/index.html index db350ce1e2..2ee2a39dd3 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -22,23 +22,15 @@ - User ID
Copy this ID for use in third party applications.
{_user.id}

- - -

This resets your entire account - your tasks will be deleted and your character will start over.

-

This is highly discouraged because you'll lose historical data, which is useful for graphing your progress over time. However, some people find it useful in the beginning after playing with the app for a while.

- -
- {/}