Add pets and egss as modules

This commit is contained in:
Blade Barringer
2015-09-21 08:57:35 -05:00
parent 1d4159ebf3
commit 9b8e6534d0
8 changed files with 159 additions and 82 deletions

View File

@@ -1,4 +1,4 @@
import {each} from 'lodash';
import {each, defaults} from 'lodash';
import t from '../helpers/translator';
const DROP_EGGS = [
@@ -23,4 +23,16 @@ each(DROP_EGGS, (pet) => {
}
});
each(eggs, (egg, key) => {
return defaults(egg, {
canBuy: true,
value: 3,
key: key,
notes: t('eggNotes', {
eggText: egg.text,
eggAdjective: egg.adjective
}),
});
});
export default eggs;