Files
habitica/common/script/src/content/food/base.js
2015-09-21 17:35:27 -05:00

59 lines
913 B
JavaScript

import {each, defaults} from 'lodash';
import {translator as t} from '../helpers';
const CAN_BUY = true;
const CAN_DROP = true;
let baseFood = {
Meat: {
target: 'Base',
article: '',
},
Milk: {
target: 'White',
article: '',
},
Potatoe: {
target: 'Desert',
article: 'a ',
},
Strawberry: {
target: 'Red',
article: 'a ',
},
Chocolate: {
target: 'Shade',
article: '',
},
Fish: {
target: 'Skeleton',
article: 'a ',
},
RottenMeat: {
target: 'Zombie',
article: '',
},
CottonCandyPink: {
target: 'CottonCandyPink',
article: '',
},
CottonCandyBlue: {
target: 'CottonCandyBlue',
article: '',
},
Honey: {
target: 'Golden',
article: '',
},
};
each(baseFood, (food, name) => {
defaults(food, {
canBuy: CAN_BUY,
canDrop: CAN_DROP,
text: t(`food${name}`),
});
});
export default baseFood;