From 8523f686723d0c730c16aa2c3f63b4f102d29249 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Thu, 2 Jan 2014 16:30:14 -0700 Subject: [PATCH] expose api.pets --- script/content.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/content.coffee b/script/content.coffee index efd7ccb048..86c023728e 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -468,6 +468,10 @@ api.hatchingPotions = _.each api.hatchingPotions, (pot,key) -> _.defaults pot, {key, value: 2, notes: "Pour this on an egg, and it will hatch as a #{pot.text} pet."} +api.pets = _.transform api.eggs, (m, egg) -> + _.defaults m, _.transform api.hatchingPotions, (m2, pot) -> + m2[egg.key + "-" + pot.key] = true + api.food = Meat: text: 'Meat', target: 'Base', article: '' Milk: text: 'Milk', target: 'White', article: ''