mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-31 19:20:25 +00:00
Working... in progress
This commit is contained in:
parent
510bcda47c
commit
f71e2fbade
4 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,6 @@ module.exports.app = (appExports, model) ->
|
||||||
user = model.at '_user'
|
user = model.at '_user'
|
||||||
|
|
||||||
user.on 'set', 'flags.dropsEnabled', (captures, args) ->
|
user.on 'set', 'flags.dropsEnabled', (captures, args) ->
|
||||||
console.log 'hi!'
|
|
||||||
return unless captures == true
|
return unless captures == true
|
||||||
# do drops enabled stuff
|
# do drops enabled stuff
|
||||||
$('#dropsEnabled-modal').show()
|
$('#dropsEnabled-modal').show()
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,7 @@ updateStats = (model, newStats, batch) ->
|
||||||
obj.stats.exp = newStats.exp
|
obj.stats.exp = newStats.exp
|
||||||
#if silent
|
#if silent
|
||||||
#console.log("pushing silent :" + obj.stats.exp)
|
#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
|
# Set flags when they unlock features
|
||||||
if !obj.flags.customizationsNotification and (obj.stats.exp > 10 or obj.stats.lvl > 1)
|
if !obj.flags.customizationsNotification and (obj.stats.exp > 10 or obj.stats.lvl > 1)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
<app:avatar:modals />
|
<app:avatar:modals />
|
||||||
<app:settings:modals />
|
<app:settings:modals />
|
||||||
<app:party:modals />
|
<app:party:modals />
|
||||||
|
<app:pets:modals />
|
||||||
|
|
||||||
<!-- Game Over Modal -->
|
<!-- Game Over Modal -->
|
||||||
<div style="{#unless equal(_user.stats.lvl,0)}display:none;{/}">
|
<div style="{#unless equal(_user.stats.lvl,0)}display:none;{/}">
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<modal:>
|
<modals:>
|
||||||
<app:modals:modal modalId='dropsEnabled-modal' header="Drops Enabled!">
|
<app:modals:modal modalId='dropsEnabled-modal' header="Drops Enabled!">
|
||||||
<app:userTokens/>
|
<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>
|
<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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue