Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Bugfixes "Coffee spawning issues"
Purpose of change
So #84518 added packaging for a lot of different things, but I noticed during gameplay that it caused multiple different kinds of coffee to be spawning in the same container. This... does fix that...
Describe the solution
I fell down a rabbit hole of learning how itemgroups work, since I was trying to figure out how to make all of the coffee in a given container spawn as the same kind of coffee. I am really quite sure that the solution that I came up with is more than a little overcomplicated, hence why I'm posting this as a draft. This does work as a solution, it genuinely does solve the problem and it could be merged, but I really do feel like there must be some simpler way that I'm missing.
Describe alternatives you've considered
I read the doc file on itemgroups until my brain hurt, and this is the best I could come up with. Very open to other suggestions.
Testing
Game loads and itemgroups spawn as desired. This does remove the raw_coffee itemgroup, but I couldn't find anywhere else in the code that it's mentioned, and I don't think itemgroups need migration, but if so, please do tell me.
Additional context
This does also notably increase the actual spawn numbers of coffee, but I presumed that would make sense as it would be strange to get a sealed can of coffee grounds that only had less than half its contents?