Working... in progress

This commit is contained in:
Daniel Saewitz 2013-03-08 12:55:04 -05:00
parent 510bcda47c
commit f71e2fbade
4 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,6 @@ module.exports.app = (appExports, model) ->
user = model.at '_user'
user.on 'set', 'flags.dropsEnabled', (captures, args) ->
console.log 'hi!'
return unless captures == true
# do drops enabled stuff
$('#dropsEnabled-modal').show()

View file

@ -159,7 +159,7 @@ updateStats = (model, newStats, batch) ->
obj.stats.exp = newStats.exp
#if silent
#console.log("pushing silent :" + obj.stats.exp)
#user.pass(true).set('stats.exp', obj.stats.exp)
#user.pass(true).set('stats.exp', obj.stats.exp)
# Set flags when they unlock features
if !obj.flags.customizationsNotification and (obj.stats.exp > 10 or obj.stats.lvl > 1)

View file

@ -3,6 +3,7 @@
<app:avatar:modals />
<app:settings:modals />
<app:party:modals />
<app:pets:modals />
<!-- Game Over Modal -->
<div style="{#unless equal(_user.stats.lvl,0)}display:none;{/}">

View file

@ -1,4 +1,4 @@
<modal:>
<modals:>
<app:modals:modal modalId='dropsEnabled-modal' header="Drops Enabled!">
<app:userTokens/>
<p>Highly discouraged because red tasks provide good incentive to improve (<a target="_blank" href="https://github.com/lefnire/habitrpg#all-my-tasks-are-red-im-dying-too-fast">read more</a>). However, this becomes necessary after long bouts of bad habits.</p>