mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
multiple fixes sep 24 (#9073)
* pin purchase-gems + orb of rebirth * show questInfo in items inventory and reward column * un-equip gear using the star / clicking on the drawer
This commit is contained in:
@@ -269,6 +269,36 @@ module.exports = function getItemInfo (user, type, item, officialPinnedItems, la
|
||||
};
|
||||
break;
|
||||
}
|
||||
case 'gem': {
|
||||
itemInfo = {
|
||||
key: 'gem',
|
||||
purchaseType: 'gems',
|
||||
class: 'gem',
|
||||
text: i18n.t('subGemName'),
|
||||
notes: i18n.t('subGemPop'),
|
||||
value: 20,
|
||||
currency: 'gold',
|
||||
path: 'special.gems',
|
||||
pinType: 'gem',
|
||||
locked: !user.purchased.plan.customerId,
|
||||
};
|
||||
break;
|
||||
}
|
||||
case 'rebirth_orb': {
|
||||
itemInfo = {
|
||||
key: 'rebirth_orb',
|
||||
purchaseType: 'rebirth_orb',
|
||||
class: 'rebirth_orb',
|
||||
text: i18n.t('rebirthName'),
|
||||
notes: i18n.t('rebirthPop'),
|
||||
value: user.stats.lvl < 100 ? 6 : 0,
|
||||
currency: 'gems',
|
||||
path: 'special.rebirth_orb',
|
||||
pinType: 'rebirth_orb',
|
||||
locked: !user.flags.rebirthEnabled,
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (itemInfo) {
|
||||
|
||||
Reference in New Issue
Block a user