mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Add babel task and move to src directory
This commit is contained in:
23
common/script/src/content/eggs/index.js
Normal file
23
common/script/src/content/eggs/index.js
Normal file
@@ -0,0 +1,23 @@
|
||||
// value & other defaults set below
|
||||
let each = require('lodash').each;
|
||||
let defaults = require('lodash').defaults;
|
||||
let t = require('../helpers/translator');
|
||||
|
||||
let dropEggs = require('./drops');
|
||||
|
||||
each(dropEggs, (egg, key) => {
|
||||
return defaults(egg, {
|
||||
canBuy: true,
|
||||
value: 3,
|
||||
key: key,
|
||||
notes: t('eggNotes', {
|
||||
eggText: egg.text,
|
||||
eggAdjective: egg.adjective
|
||||
}),
|
||||
mountText: egg.text
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
dropEggs: dropEggs
|
||||
}
|
||||
Reference in New Issue
Block a user