mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Add pets and egss as modules
This commit is contained in:
50
common/script/src/content/eggs/quest.js
Normal file
50
common/script/src/content/eggs/quest.js
Normal file
@@ -0,0 +1,50 @@
|
||||
import {each, defaults} from 'lodash';
|
||||
import t from '../helpers/translator';
|
||||
|
||||
const QUEST_EGGS = [
|
||||
'Gryphon',
|
||||
'Hedgehog',
|
||||
'Deer',
|
||||
'Egg',
|
||||
'Rat',
|
||||
'Octopus',
|
||||
'Seahorse',
|
||||
'Parrot',
|
||||
'Rooster',
|
||||
'Spider',
|
||||
'Owl',
|
||||
'Penguin',
|
||||
'TRex',
|
||||
'Rock',
|
||||
'Bunny',
|
||||
'Slime',
|
||||
'Sheep',
|
||||
'Cuttlefish',
|
||||
'Whale',
|
||||
'Cheetah',
|
||||
'Horse',
|
||||
];
|
||||
|
||||
let eggs = { };
|
||||
|
||||
each(QUEST_EGGS, (pet) => {
|
||||
eggs[pet] = {
|
||||
text: t(`questEgg${pet}Text`),
|
||||
mountText: t(`questEgg${pet}MountText`),
|
||||
adjective: t(`questEgg${pet}Adjective`),
|
||||
}
|
||||
});
|
||||
|
||||
each(eggs, (egg, key) => {
|
||||
return defaults(egg, {
|
||||
canBuy: false,
|
||||
value: 3,
|
||||
key: key,
|
||||
notes: t('eggNotes', {
|
||||
eggText: egg.text,
|
||||
eggAdjective: egg.adjective
|
||||
}),
|
||||
});
|
||||
});
|
||||
|
||||
export default eggs;
|
||||
Reference in New Issue
Block a user