mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 04:38:55 +00:00
fix(drops): Pick drop eggs from dropEggs
This commit is contained in:
parent
feff6fadfa
commit
ffe0cff7cd
1 changed files with 1 additions and 1 deletions
|
|
@ -1531,7 +1531,7 @@ api.wrap = (user, main=true) ->
|
|||
|
||||
# Eggs: 30% chance
|
||||
else if rarity > .3
|
||||
drop = user.fns.randomVal _.where(content.eggs,{canBuy:true})
|
||||
drop = user.fns.randomVal content.dropEggs
|
||||
user.items.eggs[drop.key] ?= 0
|
||||
user.items.eggs[drop.key]++
|
||||
drop.type = 'Egg'
|
||||
|
|
|
|||
Loading…
Reference in a new issue