Skip to content

[PORT] Dunking handle_atom_del() in the trash bin. #10973

Open
TheColorCyan wants to merge 3 commits intoMonkestation:masterfrom
TheColorCyan:handleatomdel
Open

[PORT] Dunking handle_atom_del() in the trash bin. #10973
TheColorCyan wants to merge 3 commits intoMonkestation:masterfrom
TheColorCyan:handleatomdel

Conversation

@TheColorCyan
Copy link
Collaborator

@TheColorCyan TheColorCyan commented Mar 2, 2026

About The Pull Request

ports tgstation/tgstation#77339

Whatever you do, if it warrants the use of something like handle_atom_del, chances are Exited can do it better, as most of these cases involve movables that shouldn't be moved out of their loc (Destroy forcefully moves movables to nullspace) without calling specific procs, and for the remaining few, handle_atom_del doesn't even cover the eventuality of a movable being deleted outside the source atom, so it's quite garbage.

Beside, I feel confident in saying handle_atom_del() is older than the DCS, an echo on the workarounds done at the time.

Why It's Good For The Game

Code Improvement.

Testing

tested with ballistics and couple more items works fine

Changelog

no player facing changes

Pre-Merge Checklist

  • You tested this on a local server.
  • This code did not runtime during testing.
  • You documented all of your changes.

Whatever you do, if it warrants the use of something like
`handle_atom_del`, chances are `Exited` can do it better, as most of
these cases involve movables that shouldn't be moved out of their loc
(`Destroy` forcefully moves movables to nullspace) without calling
specific procs, and for the remaining few, `handle_atom_del` doesn't
even cover the eventuality of a movable being deleted outside the source
atom, so it's quite garbage.

Beside, I feel confident in saying `handle_atom_del()` is older than the
DCS, an echo on the workarounds done at the time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code: Improvement exactly what it says on the tin

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

2 participants