mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Add mount names for all drop pets and make creation more programmic
This commit is contained in:
parent
df5a434d71
commit
993b568ad8
2 changed files with 27 additions and 42 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
"armoireNotesEmpty": "The Armoire will have new Equipment in the first week of every month. Until then, keep clicking for Experience and Food!",
|
"armoireNotesEmpty": "The Armoire will have new Equipment in the first week of every month. Until then, keep clicking for Experience and Food!",
|
||||||
|
|
||||||
"dropEggWolfText": "Wolf",
|
"dropEggWolfText": "Wolf",
|
||||||
|
"dropEggWolfMountText": "Wolf",
|
||||||
"dropEggWolfAdjective": "loyal",
|
"dropEggWolfAdjective": "loyal",
|
||||||
|
|
||||||
"dropEggTigerCubText": "Tiger Cub",
|
"dropEggTigerCubText": "Tiger Cub",
|
||||||
|
|
@ -23,15 +24,19 @@
|
||||||
"dropEggLionCubAdjective": "regal",
|
"dropEggLionCubAdjective": "regal",
|
||||||
|
|
||||||
"dropEggFoxText": "Fox",
|
"dropEggFoxText": "Fox",
|
||||||
|
"dropEggFoxMountText": "Fox",
|
||||||
"dropEggFoxAdjective": "wily",
|
"dropEggFoxAdjective": "wily",
|
||||||
|
|
||||||
"dropEggFlyingPigText": "Flying Pig",
|
"dropEggFlyingPigText": "Flying Pig",
|
||||||
|
"dropEggFlyingPigMountText": "Flying Pig",
|
||||||
"dropEggFlyingPigAdjective": "whimsical",
|
"dropEggFlyingPigAdjective": "whimsical",
|
||||||
|
|
||||||
"dropEggDragonText": "Dragon",
|
"dropEggDragonText": "Dragon",
|
||||||
|
"dropEggDragonMountText": "Dragon",
|
||||||
"dropEggDragonAdjective": "mighty",
|
"dropEggDragonAdjective": "mighty",
|
||||||
|
|
||||||
"dropEggCactusText": "Cactus",
|
"dropEggCactusText": "Cactus",
|
||||||
|
"dropEggCactusMountText": "Cactus",
|
||||||
"dropEggCactusAdjective": "prickly",
|
"dropEggCactusAdjective": "prickly",
|
||||||
|
|
||||||
"dropEggBearCubText": "Bear Cub",
|
"dropEggBearCubText": "Bear Cub",
|
||||||
|
|
|
||||||
|
|
@ -1,46 +1,26 @@
|
||||||
|
let each = require('lodash').each;
|
||||||
let t = require('../helpers/translator');
|
let t = require('../helpers/translator');
|
||||||
|
|
||||||
let eggs = {
|
const DROP_EGGS = [
|
||||||
Wolf: {
|
'Wolf',
|
||||||
text: t('dropEggWolfText'),
|
'TigerCub',
|
||||||
adjective: t('dropEggWolfAdjective')
|
'PandaCub',
|
||||||
},
|
'LionCub',
|
||||||
TigerCub: {
|
'Fox',
|
||||||
text: t('dropEggTigerCubText'),
|
'FlyingPig',
|
||||||
mountText: t('dropEggTigerCubMountText'),
|
'Dragon',
|
||||||
adjective: t('dropEggTigerCubAdjective')
|
'Cactus',
|
||||||
},
|
'BearCub',
|
||||||
PandaCub: {
|
];
|
||||||
text: t('dropEggPandaCubText'),
|
|
||||||
mountText: t('dropEggPandaCubMountText'),
|
let eggs = { };
|
||||||
adjective: t('dropEggPandaCubAdjective')
|
|
||||||
},
|
each(DROP_EGGS, (pet) => {
|
||||||
LionCub: {
|
eggs[pet] = {
|
||||||
text: t('dropEggLionCubText'),
|
text: t(`dropEgg${pet}Text`),
|
||||||
mountText: t('dropEggLionCubMountText'),
|
mountText: t(`dropEgg${pet}MountText`),
|
||||||
adjective: t('dropEggLionCubAdjective')
|
adjective: t(`dropEgg${pet}Adjective`),
|
||||||
},
|
}
|
||||||
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;
|
module.exports = eggs;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue