Skip to content

Commit

Permalink
Merge pull request #10542 from DestinyItemManager/max-stack
Browse files Browse the repository at this point in the history
Add max stack size to item popup
  • Loading branch information
bhollis authored Jun 14, 2024
2 parents 4e5a920 + f3af14e commit 1bb84ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/item-popup/ItemPopupHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { ItemTierName } from 'app/search/d2-known-values';
import { LookupTable } from 'app/utils/util-types';
import { DestinyAmmunitionType, DestinyClass } from 'bungie-api-ts/destiny2';
import clsx from 'clsx';
import { BucketHashes } from 'data/d2/generated-enums';
import { BucketHashes, ItemCategoryHashes } from 'data/d2/generated-enums';
import heavy from 'destiny-icons/general/ammo-heavy.svg';
import primary from 'destiny-icons/general/ammo-primary.svg';
import special from 'destiny-icons/general/ammo-special.svg';
Expand Down Expand Up @@ -76,6 +76,12 @@ export default function ItemPopupHeader({
<div className={styles.details}>
{showElementIcon && <ElementIcon element={item.element} className={styles.elementIcon} />}
<div className={styles.power}>{item.primaryStat?.value}</div>
{item.maxStackSize > 1 &&
!item.itemCategoryHashes.includes(ItemCategoryHashes.Mods_Ornament) && (
<div className={styles.itemType}>
{item.amount.toLocaleString()} / {item.maxStackSize.toLocaleString()}
</div>
)}
{Boolean(item.powerCap) && <div className={styles.powerCap}>| {item.powerCap} </div>}
{item.pursuit?.questLine && (
<div className={styles.itemType}>
Expand Down

0 comments on commit 1bb84ce

Please sign in to comment.