move tnl to a view function instead of model function, beging adding
party stats visuals (hp & exp presently)
This commit is contained in:
@@ -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 = ->
|
||||
|
||||
Reference in New Issue
Block a user