habitrpg-shared: add streakBonus back in

This commit is contained in:
Tyler Renelle 2013-05-23 17:00:54 +01:00
parent 69e1f991b7
commit fee39a8b7e

View file

@ -32,8 +32,8 @@ 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
model.set('_streakBonus', uObj._tmp.streakBonus) if uObj._tmp?.streakBonus
if uObj._tmp?.drop and $?
debugger
model.set '_drop', uObj._tmp.drop
$('#item-dropped-modal').modal 'show'