Skip to content

Conversation

@GODrums
Copy link
Collaborator

@GODrums GODrums commented Jul 18, 2025

Currently, the extension displays an empty pattern ID for highlight / souvenir charms as they are treated like regular charms.
image
image

This PR handles them explicitly as non-sellable on CSFloat and removes the pattern.

@GODrums GODrums requested a review from Step7750 July 18, 2025 15:08
@GODrums GODrums self-assigned this Jul 18, 2025
Copilot AI review requested due to automatic review settings July 18, 2025 15:08
@GODrums GODrums added the bug label Jul 18, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the handling of highlight/souvenir charms that were previously displaying empty pattern IDs. The changes exclude highlight charms from being sellable on CSFloat and prevent them from showing pattern information in the UI.

  • Introduces isHighlightCharm function to identify highlight charms by checking for 'highlight' tag
  • Updates CSFloat sellability logic to exclude highlight charms
  • Conditionally hides pattern display for highlight charms in the item info component

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/lib/utils/skin.ts Adds isHighlightCharm function and updates isSellableOnCSFloat to exclude highlight charms
src/lib/components/inventory/selected_item_info.ts Imports isHighlightCharm and conditionally renders pattern info for non-highlight charms only

@GODrums GODrums merged commit 0ae0ea8 into master Jul 22, 2025
2 checks passed
@GODrums GODrums deleted the fix/handle-highlight-charms branch July 22, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants