Correct food

This commit is contained in:
Blade Barringer
2015-09-21 12:27:59 -05:00
parent 1610a62b82
commit cbc31cbce1

View File

@@ -1,4 +1,6 @@
import {each, defaults} from 'lodash';
import capitalize from 'lodash.capitalize';
import camelCase from 'lodash.camelcase';
import t from '../helpers/translator';
const CAN_BUY = false;
@@ -48,10 +50,13 @@ let cake = {
};
each(cake, (food, name) => {
let camelName = camelCase(name);
let capitalizedName = capitalize(camelName);
defaults(food, {
canBuy: CAN_BUY,
canDrop: CAN_DROP,
text: t(`food${name}`),
text: t(`food${capitalizedName}`),
});
});