move tnl to a view function instead of model function, beging adding

party stats visuals (hp & exp presently)
This commit is contained in:
Tyler Renelle
2013-03-15 12:00:47 -04:00
parent 3fa6aaceed
commit 7f93b525c0
5 changed files with 23 additions and 20 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
moment = require 'moment'
algos = require './algos'
module.exports.app = (appExports, model) ->
user = model.at('_user')
@@ -14,7 +15,7 @@ module.exports.app = (appExports, model) ->
window.location.reload()
appExports.cheat = ->
user.incr 'stats.exp', model.get '_tnl'
user.incr 'stats.exp', algos.tnl(user.get('stats.lvl'))
user.incr 'stats.gp', 1000
appExports.reset = ->