[MIRROR] Fixes standard RPEDs not working on machines #2839
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.
Mirrored on Nova: NovaSector/NovaSector#1919
Original PR: tgstation/tgstation#82528
About The Pull Request
Previously,
exchange_parts(...)
would cancel if both theNO_DECONSTRUCTION
flag was set and you couldn't use your part replacer from a distance.https://github.com/tgstation/tgstation/blob/1583cf0cc968cd9f5da2398035feb8d70d58bcf2/code/game/machinery/_machinery.dm#L958-L959
Our recent removal of
NO_DECONSTRUCTION
, however, has left this to only be the latter.https://github.com/tgstation/tgstation/blob/f0ed4ba4ce6b114509c10ee2f36ab0af6d7c81d2/code/game/machinery/_machinery.dm#L956-L957
Buuuuut this makes it unconditionally cancel for normal RPEDs, instead of only blocking them if
NO_DECONSTRUCTION
was set.As
NO_DECONSTRUCTION
is very much no longer relevant for this purpose, we simply remove the ranged RPED check altogether.This fixes our issue.
Why It's Good For The Game
Fixes #82525.
Changelog
🆑 00-Steven
fix: Standard RPEDs work on machines again.
/:cl: