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

@@ -1,5 +1,4 @@
import {each, defaults} from 'lodash';
import {translator as t} from './helpers';
import {setHatchingPotionDefaults} from './helpers';
let hatchingPotions = {
Base: {
@@ -34,15 +33,6 @@ let hatchingPotions = {
}
};
each(hatchingPotions, function(potion, key) {
defaults(potion, {
key: key,
value: 2,
text: t(`hatchingPotion${key}`),
notes: t('hatchingPotionNotes', {
potText: potion.text
}),
});
});
setHatchingPotionDefaults(hatchingPotions);
export default hatchingPotions;