mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 03:30:25 +00:00
remove nix-drop-limit from development
This commit is contained in:
parent
d92157cf13
commit
fdb2f2510c
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ randomDrop = (model, delta, priority, streak=0) ->
|
|||
date: +moment().subtract('d',1) # trick - set it to yesterday on first run, that way they can get drops today
|
||||
count: 0
|
||||
reachedDropLimit = (helpers.daysBetween(user.get('items.lastDrop.date'), +new Date) is 0) and user.get('items.lastDrop.count') >= 2
|
||||
return if reachedDropLimit and model.flags.nodeEnv != 'development'
|
||||
return if reachedDropLimit
|
||||
|
||||
# % chance of getting a pet or meat
|
||||
chanceMultiplier = Math.abs(delta)
|
||||
|
|
|
|||
Loading…
Reference in a new issue