Move hatching potion tranform to helpers

This commit is contained in:
Blade Barringer
2015-09-25 17:53:43 -05:00
parent 68cd51fbb0
commit bd8d9415e0
2 changed files with 20 additions and 12 deletions

View File

@@ -171,3 +171,21 @@ export function generateEggs(set, options={}) {
return eggs;
}
//----------------------------------------
// Hatching Potion Helpers
//----------------------------------------
export function setHatchingPotionDefaults(hatchingPotions) {
each(hatchingPotions, (potion, key) => {
let text = translator(`hatchingPotion${key}`);
defaults(potion, {
key: key,
value: 2,
text: text,
notes: translator('hatchingPotionNotes', {
potText: text
}),
});
});
}