mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Add babel task and move to src directory
This commit is contained in:
26
common/script/src/content/eggs/drops.js
Normal file
26
common/script/src/content/eggs/drops.js
Normal file
@@ -0,0 +1,26 @@
|
||||
let each = require('lodash').each;
|
||||
let t = require('../helpers/translator');
|
||||
|
||||
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`),
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = eggs;
|
||||
Reference in New Issue
Block a user