habitrpg-shared: put drops back in

This commit is contained in:
Tyler Renelle 2013-05-23 16:53:13 +01:00
parent 73fe8ebfdd
commit 69e1f991b7

View file

@ -32,6 +32,10 @@ module.exports.app = (appExports, model) ->
paths = {}
algos.score(uObj, tObj, direction, {paths:paths})
_.each paths, (v,k) -> user.set(k,helpers.dotGet(k, uObj)); true
if uObj._tmp?.drop and $?
debugger
model.set '_drop', uObj._tmp.drop
$('#item-dropped-modal').modal 'show'
appExports.addTask = (e, el) ->
type = $(el).attr('data-task-type')