mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
reset balance when user clicks reset
This commit is contained in:
parent
b85c227488
commit
4e9c0def68
1 changed files with 1 additions and 0 deletions
|
|
@ -284,6 +284,7 @@ ready (model) ->
|
||||||
model.set('_user.stats.money', 0)
|
model.set('_user.stats.money', 0)
|
||||||
model.set('_user.stats.exp', 0)
|
model.set('_user.stats.exp', 0)
|
||||||
model.set('_user.stats.lvl', 1)
|
model.set('_user.stats.lvl', 1)
|
||||||
|
model.set('_user.balance', 2) if model.get('_user.balance') < 2 #only if they haven't manually bought tokens
|
||||||
|
|
||||||
|
|
||||||
# ========== CRON ==========
|
# ========== CRON ==========
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue