Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 6pack sprite layers not appearing #29862

Closed
wants to merge 1 commit into from

Conversation

themias
Copy link
Contributor

@themias themias commented Jul 9, 2024

About the PR

Fixes #28721

Technical details

The soda 6pack is unique in that it is the only item with ItemCounter sprite layers, but it doesn't have lid to open/close.
Things like cigarette packs and donut boxes hide or reveal the extra layers depending on if the UI is open, but with a 6pack, we want them to always be revealed.

Given this is a single special case, I just added a field to grant it an exception, and put the logic in ItemCounterSystem to avoid scrungling up anything with SharedStorageSystem, where the lid logic lives.

Media

  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

no cl for sprite changes/fixes

@ShadowCommander
Copy link
Member

There's a similar PR here: #29309

Going to give the same feedback. It should instead be a bool on StorageComponent that determines whether it calls SetData for StackVisuals.Hide.

@themias
Copy link
Contributor Author

themias commented Jul 10, 2024

Oops, I didn't realize there was another PR open for this issue. I'll close this for now and reopen if CroilBird doesn't come back to it.

@themias themias closed this Jul 10, 2024
@themias themias deleted the fix-6pack-sprite branch July 13, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Six packs dont visually work
2 participants