mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 10:12:21 +00:00
Move drop eggs into separate module
This commit is contained in:
parent
c64fd6e321
commit
df5a434d71
2 changed files with 47 additions and 42 deletions
46
common/script/content/eggs/drops.js
Normal file
46
common/script/content/eggs/drops.js
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
let t = require('../helpers/translator');
|
||||
|
||||
let eggs = {
|
||||
Wolf: {
|
||||
text: t('dropEggWolfText'),
|
||||
adjective: t('dropEggWolfAdjective')
|
||||
},
|
||||
TigerCub: {
|
||||
text: t('dropEggTigerCubText'),
|
||||
mountText: t('dropEggTigerCubMountText'),
|
||||
adjective: t('dropEggTigerCubAdjective')
|
||||
},
|
||||
PandaCub: {
|
||||
text: t('dropEggPandaCubText'),
|
||||
mountText: t('dropEggPandaCubMountText'),
|
||||
adjective: t('dropEggPandaCubAdjective')
|
||||
},
|
||||
LionCub: {
|
||||
text: t('dropEggLionCubText'),
|
||||
mountText: t('dropEggLionCubMountText'),
|
||||
adjective: t('dropEggLionCubAdjective')
|
||||
},
|
||||
Fox: {
|
||||
text: t('dropEggFoxText'),
|
||||
adjective: t('dropEggFoxAdjective')
|
||||
},
|
||||
FlyingPig: {
|
||||
text: t('dropEggFlyingPigText'),
|
||||
adjective: t('dropEggFlyingPigAdjective')
|
||||
},
|
||||
Dragon: {
|
||||
text: t('dropEggDragonText'),
|
||||
adjective: t('dropEggDragonAdjective')
|
||||
},
|
||||
Cactus: {
|
||||
text: t('dropEggCactusText'),
|
||||
adjective: t('dropEggCactusAdjective')
|
||||
},
|
||||
BearCub: {
|
||||
text: t('dropEggBearCubText'),
|
||||
mountText: t('dropEggBearCubMountText'),
|
||||
adjective: t('dropEggBearCubAdjective')
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = eggs;
|
||||
|
|
@ -3,48 +3,7 @@ let each = require('lodash').each;
|
|||
let defaults = require('lodash').defaults;
|
||||
let t = require('../helpers/translator');
|
||||
|
||||
let dropEggs = {
|
||||
Wolf: {
|
||||
text: t('dropEggWolfText'),
|
||||
adjective: t('dropEggWolfAdjective')
|
||||
},
|
||||
TigerCub: {
|
||||
text: t('dropEggTigerCubText'),
|
||||
mountText: t('dropEggTigerCubMountText'),
|
||||
adjective: t('dropEggTigerCubAdjective')
|
||||
},
|
||||
PandaCub: {
|
||||
text: t('dropEggPandaCubText'),
|
||||
mountText: t('dropEggPandaCubMountText'),
|
||||
adjective: t('dropEggPandaCubAdjective')
|
||||
},
|
||||
LionCub: {
|
||||
text: t('dropEggLionCubText'),
|
||||
mountText: t('dropEggLionCubMountText'),
|
||||
adjective: t('dropEggLionCubAdjective')
|
||||
},
|
||||
Fox: {
|
||||
text: t('dropEggFoxText'),
|
||||
adjective: t('dropEggFoxAdjective')
|
||||
},
|
||||
FlyingPig: {
|
||||
text: t('dropEggFlyingPigText'),
|
||||
adjective: t('dropEggFlyingPigAdjective')
|
||||
},
|
||||
Dragon: {
|
||||
text: t('dropEggDragonText'),
|
||||
adjective: t('dropEggDragonAdjective')
|
||||
},
|
||||
Cactus: {
|
||||
text: t('dropEggCactusText'),
|
||||
adjective: t('dropEggCactusAdjective')
|
||||
},
|
||||
BearCub: {
|
||||
text: t('dropEggBearCubText'),
|
||||
mountText: t('dropEggBearCubMountText'),
|
||||
adjective: t('dropEggBearCubAdjective')
|
||||
}
|
||||
};
|
||||
let dropEggs = require('./drops');
|
||||
|
||||
each(dropEggs, (egg, key) => {
|
||||
return defaults(egg, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue