mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Add pets and egss as modules
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user