mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
39 lines
635 B
JavaScript
39 lines
635 B
JavaScript
import {each, defaults} from 'lodash';
|
|
import {translator as t} from '../helpers';
|
|
|
|
const DROP_EGGS = [
|
|
'Wolf',
|
|
'TigerCub',
|
|
'PandaCub',
|
|
'LionCub',
|
|
'Fox',
|
|
'FlyingPig',
|
|
'Dragon',
|
|
'Cactus',
|
|
'BearCub',
|
|
];
|
|
|
|
let eggs = { };
|
|
|
|
each(DROP_EGGS, (pet) => {
|
|
eggs[pet] = {
|
|
text: t(`dropEgg${pet}Text`),
|
|
mountText: t(`dropEgg${pet}MountText`),
|
|
adjective: t(`dropEgg${pet}Adjective`),
|
|
}
|
|
});
|
|
|
|
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;
|