New Algorithms + fixes

This commit is contained in:
Philip How
2013-03-06 17:02:08 +00:00
parent b6564828ce
commit 0dbf2257d7
7 changed files with 78 additions and 50 deletions
+6 -1
View File
@@ -8,8 +8,13 @@ module.exports.app = (appExports, model) ->
user.set 'lastCron', yesterday
window.location.reload()
appExports.emulateTenDays = ->
yesterday = +moment().subtract('days', 10).toDate()
user.set 'lastCron', yesterday
window.location.reload()
appExports.cheat = ->
user.incr 'stats.exp', 20
user.incr 'stats.exp', model.get '_tnl'
user.incr 'stats.gp', 1000
appExports.reset = ->