Compare commits

...

1 Commits

Author SHA1 Message Date
Phillip Thelen
c1971e76b7 fix most customizations not being pinnable 2025-12-18 12:43:18 +01:00
2 changed files with 11 additions and 6 deletions

View File

@@ -2,7 +2,12 @@ import get from 'lodash/get';
import content from '../content/index';
export default function getItemByPathAndType (type, path) {
let item = get(content, path);
let item;
if (type === 'appearance') {
item = get(content, `appearance.${path}`);
} else {
item = get(content, path);
}
if (type === 'timeTravelersStable') {
const [, animalType, key] = path.split('.');

View File

@@ -385,7 +385,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
notes: '',
path: `hair.color.${item.key}`,
purchaseType: 'customization',
pinType: 'timeTravelersStable',
pinType: 'appearance',
set: item.set,
text: item.text(language),
type: 'color',
@@ -401,7 +401,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
locked: false,
notes: '',
path: `hair.base.${item.key}`,
pinType: 'timeTravelersStable',
pinType: 'appearance',
purchaseType: 'customization',
set: item.set,
text: item.text(language),
@@ -418,7 +418,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
locked: false,
notes: '',
path: `hair.mustache.${item.key}`,
pinType: 'timeTravelersStable',
pinType: 'appearance',
purchaseType: 'customization',
set: item.set,
text: item.text(language),
@@ -452,7 +452,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
locked: false,
notes: '',
path: `shirt.${item.key}`,
pinType: 'timeTravelersStable',
pinType: 'appearance',
purchaseType: 'customization',
set: item.set,
text: item.text(language),
@@ -469,7 +469,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
locked: false,
path: `skin.${item.key}`,
notes: '',
pinType: 'timeTravelersStable',
pinType: 'appearance',
purchaseType: 'customization',
set: item.set,
text: item.text(language),