mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Add comment to pets and mounts file
This commit is contained in:
@@ -1,4 +1,21 @@
|
|||||||
import {transform, defaults} from 'lodash';
|
import {transform, defaults} from 'lodash';
|
||||||
|
|
||||||
|
//--------------------------------------------------
|
||||||
|
// Pets and Mounts are generated by eggs * potions
|
||||||
|
//
|
||||||
|
// { <egg_key>-<potion_key>: true }
|
||||||
|
//
|
||||||
|
// <egg_key> - the key of the egg the animal hatched from
|
||||||
|
// <potion_key> - the potion that hatched the animal
|
||||||
|
//
|
||||||
|
//--------------------------------------------------
|
||||||
|
// Special Pets and Mounts
|
||||||
|
// { <animal_type>-<fake_potion>: <transifex_key> }
|
||||||
|
//
|
||||||
|
// <animal_type> - could be existing animal or a totally new animal
|
||||||
|
// <fake_potion> - if a unique animal, potion is Base, if it's a special version of an existing animal, the fake potion is a different from a normal hatching potion
|
||||||
|
//--------------------------------------------------
|
||||||
|
|
||||||
import hatchingPotions from '../hatching-potions';
|
import hatchingPotions from '../hatching-potions';
|
||||||
import dropEggs from '../eggs/drops';
|
import dropEggs from '../eggs/drops';
|
||||||
import questEggs from '../eggs/quest';
|
import questEggs from '../eggs/quest';
|
||||||
@@ -12,8 +29,8 @@ let dropMounts = generateAnimalSet(dropEggs);
|
|||||||
let questMounts = generateAnimalSet(questEggs);
|
let questMounts = generateAnimalSet(questEggs);
|
||||||
|
|
||||||
function generateAnimalSet(set) {
|
function generateAnimalSet(set) {
|
||||||
return transform(set, function(m, egg) {
|
return transform(set, (m, egg) => {
|
||||||
defaults(m, transform(hatchingPotions, function(m2, pot) {
|
defaults(m, transform(hatchingPotions, (m2, pot) => {
|
||||||
return m2[egg.key + "-" + pot.key] = true;
|
return m2[egg.key + "-" + pot.key] = true;
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// special mounts are {key:i18n}
|
|
||||||
|
|
||||||
let specialMounts = {
|
let specialMounts = {
|
||||||
'BearCub-Polar': 'polarBear',
|
'BearCub-Polar': 'polarBear',
|
||||||
'LionCub-Ethereal': 'etherealLion',
|
'LionCub-Ethereal': 'etherealLion',
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// special mounts are {key:i18n}
|
|
||||||
|
|
||||||
let specialPets = {
|
let specialPets = {
|
||||||
'Wolf-Veteran': 'veteranWolf',
|
'Wolf-Veteran': 'veteranWolf',
|
||||||
'Wolf-Cerberus': 'cerberusPup',
|
'Wolf-Cerberus': 'cerberusPup',
|
||||||
|
|||||||
Reference in New Issue
Block a user