mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
market fixes 28th nov (#9593)
* list special gear by the `specialClass` - fixes #9485 * only disable the currencly label + value not the amount input - fixes #9492 * disable transformations on equipment previews - fixes #9497 * show boss strength - fixes #9522 * pin time travelers animals - closes #9382 * clean up + package-lock ? * fix quest info
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import content from '../content/index';
|
||||
import get from 'lodash/get';
|
||||
import getItemInfo from './getItemInfo';
|
||||
import shops from './shops';
|
||||
import getOfficialPinnedItems from './getOfficialPinnedItems';
|
||||
|
||||
import getItemByPathAndType from './getItemByPathAndType';
|
||||
|
||||
module.exports = function getPinnedItems (user) {
|
||||
let officialPinnedItems = getOfficialPinnedItems(user);
|
||||
@@ -16,7 +15,9 @@ module.exports = function getPinnedItems (user) {
|
||||
const pinnedItems = officialPinnedItemsNotUnpinned.concat(user.pinnedItems);
|
||||
|
||||
let items = pinnedItems.map(({type, path}) => {
|
||||
return getItemInfo(user, type, get(content, path), officialPinnedItems);
|
||||
let item = getItemByPathAndType(type, path);
|
||||
|
||||
return getItemInfo(user, type, item, officialPinnedItems);
|
||||
});
|
||||
|
||||
shops.checkMarketGearLocked(user, items);
|
||||
|
||||
Reference in New Issue
Block a user