Skip to content

Fix trash cleanup deleting bottles, vials, medipens, etc. that still contain reagents.#883

Open
BramvanZijp wants to merge 2 commits intoProjectOmu:masterfrom
BramvanZijp:TrashChemFix
Open

Fix trash cleanup deleting bottles, vials, medipens, etc. that still contain reagents.#883
BramvanZijp wants to merge 2 commits intoProjectOmu:masterfrom
BramvanZijp:TrashChemFix

Conversation

@BramvanZijp
Copy link
Copy Markdown
Contributor

@BramvanZijp BramvanZijp commented Apr 22, 2026

About the PR

Title. The SpaceGarbage component is now added/removed in the same situations where the Trash tag is added/removed, meaning only the empty ones will be marked as trash, adding and removing the component as the container is emptied and refilled.

Why / Balance

BSOs, Paramedics, Doctors, etc. etc. all use vials/bottles to carry a small amount of chems. However, if a trash cleanup happens, all of those are gone, which should not be the case. Trash cleanup should not have a major impact on players, such as by deleting their chems. This is especially relevant to the BSO chemical kit, as that loses them chems that are very hard to replace.

Technical details

The TrashOnSolutionEmpty Component already exists to add and remove the trash TAG, I have simply modified that system to also add and remove the garbage COMPONENT.

Media

Small fixes/refactors are exempt, though I have tested it ingame.

Requirements

Changelog
🆑 BramvanZijp

  • fix: An admin using a command to cleanup trash will no longer delete filled containers or medipens.

@github-actions github-actions Bot added the S: Untriaged Has not been set a status; currently not labeled. label Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S: Untriaged Has not been set a status; currently not labeled. size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants