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

Mirror: Fix Recycled Containers Deleting Items Inside Them #267

Conversation

SimpleStation14
Copy link
Member

Mirror of PR #26045: Fix recycled containers deleting items inside them from space-wizards space-wizards/space-station-14

d7484ae9f57477a5ec5c575e3077aa94c0564db6

PR opened by SlamBamActionman at 2024-03-12 16:16:42 UTC


PR changed 2 files with 19 additions and 1 deletions.

The PR had the following labels:

  • Status: Awaiting Changes

Original Body

About the PR

Right now you can delete any item that fits in a survival box by placing it inside of one and then recycling the box in a Recycler/Material Reclaimer. This PR fixes this by dumping out any item inside containers.

  • For Reclaimers, any recyclable items inside the container get placed on top of the Reclaimer.
  • For Recyclers, any recyclable items inside the container get recursively recycled as well.

Why / Balance

I doubt it's intended behavior to be able to effectively delete any item that fits in a box. Also ensures a recycled box provides the correct amount of material as its contents also get recycled.

Technical details

When trying to recycle, once all checks are passed it iterates through the object's containers if it has any and dumps out any items onto the machine doing the recycling.

Media

image
The result of recycling a survival box in a Recycler/Reclaimer.

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

Breaking changes

Changelog

🆑

  • fix: Recyclers no longer delete items stored inside of recycled entities.

@SimpleStation14 SimpleStation14 added the Pull Request Mirror Mirrors a PR from another Repo. Automatically applied by mirror bot label Apr 22, 2024
Copy link
Contributor

@DangerRevolution DangerRevolution left a comment

Choose a reason for hiding this comment

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

think this messed with Nyano code, this should also be tested to NOT recycle Felinids

@SimpleStation14 SimpleStation14 marked this pull request as draft May 4, 2024 21:12
@VMSolidus VMSolidus marked this pull request as ready for review May 12, 2024 04:13
Copy link
Member

@VMSolidus VMSolidus left a comment

Choose a reason for hiding this comment

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

Felinids shoved into either machine via duffel bag just get spat out by the machine.

@github-actions github-actions bot added the Changes: C# Changes any cs files label Jul 9, 2024
@SimpleStation14 SimpleStation14 changed the title Mirror: Fix recycled containers deleting items inside them Mirror: Fix Recycled Containers Deleting Items Inside Them Jul 9, 2024
@DEATHB4DEFEAT DEATHB4DEFEAT merged commit dfeb3b9 into Simple-Station:master Jul 12, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files Pull Request Mirror Mirrors a PR from another Repo. Automatically applied by mirror bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants