fix(quests): don't drop canBuy:false items
This commit is contained in:
+1
-1
@@ -982,7 +982,7 @@ api.wrap = (user, main=true) ->
|
||||
|
||||
# Eggs: 30% chance
|
||||
else if rarity > .3
|
||||
drop = user.fns.randomVal content.eggs
|
||||
drop = user.fns.randomVal _.where(content.eggs,{canBuy:true})
|
||||
user.items.eggs[drop.key] ?= 0
|
||||
user.items.eggs[drop.key]++
|
||||
drop.type = 'Egg'
|
||||
|
||||
Reference in New Issue
Block a user