Add comment to pets and mounts file

This commit is contained in:
Blade Barringer
2015-10-01 12:30:36 -05:00
parent 6c9fab254d
commit 5f4aa427fc
3 changed files with 19 additions and 6 deletions

View File

@@ -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;
}));
});

View File

@@ -1,5 +1,3 @@
// special mounts are {key:i18n}
let specialMounts = {
'BearCub-Polar': 'polarBear',
'LionCub-Ethereal': 'etherealLion',

View File

@@ -1,5 +1,3 @@
// special mounts are {key:i18n}
let specialPets = {
'Wolf-Veteran': 'veteranWolf',
'Wolf-Cerberus': 'cerberusPup',