Skip to content

Commit

Permalink
Merge pull request #10833 from DestinyItemManager/no-tag-catalysts
Browse files Browse the repository at this point in the history
Don't allow catalysts to be tagged
  • Loading branch information
bhollis authored Dec 8, 2024
2 parents a98fb94 + f911b84 commit b33b39a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/app/inventory/store/d2-item-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import enhancedIntrinsics from 'data/d2/crafting-enhanced-intrinsics';
import extendedBreaker from 'data/d2/extended-breaker.json';
import extendedFoundry from 'data/d2/extended-foundry.json';
import extendedICH from 'data/d2/extended-ich.json';
import { BucketHashes, ItemCategoryHashes, StatHashes } from 'data/d2/generated-enums';
import { BucketHashes, ItemCategoryHashes, StatHashes, TraitHashes } from 'data/d2/generated-enums';
import { keyBy, memoize } from 'es-toolkit';
import { Draft } from 'immer';
import memoizeOne from 'memoize-one';
Expand Down Expand Up @@ -536,8 +536,12 @@ export function makeItem(
createdItem.taggable = Boolean(
createdItem.lockable ||
createdItem.classified ||
// Shaders can be tagged from collections
itemDef.itemSubType === DestinyItemSubType.Shader ||
createdItem.itemCategoryHashes.includes(ItemCategoryHashes.Mods_Mod),
// Mods can be tagged from collections...
(createdItem.itemCategoryHashes.includes(ItemCategoryHashes.Mods_Mod) &&
// ... but not catalysts
!itemDef.traitHashes?.includes(TraitHashes.ItemExoticCatalyst)),
);
createdItem.comparable = Boolean(
createdItem.equipment &&
Expand Down
1 change: 1 addition & 0 deletions src/app/item-popup/ItemDetails.m.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
}

.fullImage {
max-width: 100%;
aspect-ratio: auto 16/9;

&.milestoneImage {
Expand Down
1 change: 0 additions & 1 deletion src/app/item-popup/ItemDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export default function ItemDetails({
item.secondaryIcon && (
<BungieImage
src={item.secondaryIcon}
width="100%"
className={clsx(styles.fullImage, {
[styles.milestoneImage]: item.bucket.hash === BucketHashes.Quests,
})}
Expand Down

0 comments on commit b33b39a

Please sign in to comment.