mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Move hatching potions to separate module
This commit is contained in:
48
common/script/src/content/hatcing-potions.js
Normal file
48
common/script/src/content/hatcing-potions.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import {each, defaults} from 'lodash';
|
||||
import t from '../helpers/translator';
|
||||
|
||||
let hatchingPotions = {
|
||||
Base: {
|
||||
value: 2,
|
||||
},
|
||||
White: {
|
||||
value: 2,
|
||||
},
|
||||
Desert: {
|
||||
value: 2,
|
||||
},
|
||||
Red: {
|
||||
value: 3,
|
||||
},
|
||||
Shade: {
|
||||
value: 3,
|
||||
},
|
||||
Skeleton: {
|
||||
value: 3,
|
||||
},
|
||||
Zombie: {
|
||||
value: 4,
|
||||
},
|
||||
CottonCandyPink: {
|
||||
value: 4,
|
||||
},
|
||||
CottonCandyBlue: {
|
||||
value: 4,
|
||||
},
|
||||
Golden: {
|
||||
value: 5,
|
||||
}
|
||||
};
|
||||
|
||||
each(hatchingPotions, function(potion, key) {
|
||||
defaults(potion, {
|
||||
key: key,
|
||||
value: 2,
|
||||
text: t(`hatchingPotion${key}`),
|
||||
notes: t('hatchingPotionNotes', {
|
||||
potText: potion.text
|
||||
}),
|
||||
});
|
||||
});
|
||||
|
||||
export default hatchingPotions;
|
||||
Reference in New Issue
Block a user