From ffe0cff7cd19ec37b493b84b32fb3540a3814d03 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Mon, 28 Sep 2015 16:27:49 -0400 Subject: [PATCH] fix(drops): Pick drop eggs from dropEggs --- common/script/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/script/index.coffee b/common/script/index.coffee index 7145bf083e..22be5f504c 100644 --- a/common/script/index.coffee +++ b/common/script/index.coffee @@ -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'