mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Move hatching potion tranform to helpers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user