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:
@@ -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
|
||||
}),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user