mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Add comment to pets and mounts file
This commit is contained in:
@@ -1,4 +1,21 @@
|
||||
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 dropEggs from '../eggs/drops';
|
||||
import questEggs from '../eggs/quest';
|
||||
@@ -12,8 +29,8 @@ let dropMounts = generateAnimalSet(dropEggs);
|
||||
let questMounts = generateAnimalSet(questEggs);
|
||||
|
||||
function generateAnimalSet(set) {
|
||||
return transform(set, function(m, egg) {
|
||||
defaults(m, transform(hatchingPotions, function(m2, pot) {
|
||||
return transform(set, (m, egg) => {
|
||||
defaults(m, transform(hatchingPotions, (m2, pot) => {
|
||||
return m2[egg.key + "-" + pot.key] = true;
|
||||
}));
|
||||
});
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// special mounts are {key:i18n}
|
||||
|
||||
let specialMounts = {
|
||||
'BearCub-Polar': 'polarBear',
|
||||
'LionCub-Ethereal': 'etherealLion',
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// special mounts are {key:i18n}
|
||||
|
||||
let specialPets = {
|
||||
'Wolf-Veteran': 'veteranWolf',
|
||||
'Wolf-Cerberus': 'cerberusPup',
|
||||
|
||||
Reference in New Issue
Block a user