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

Don't allow toggling internals while asleep #29753

Merged

Conversation

themias
Copy link
Contributor

@themias themias commented Jul 5, 2024

About the PR

Fixes #29729

Why / Balance

The intended behavior is to not be able to interact with things while asleep.

Technical details

In the case of user == target, we will now call StartToggleInternalsDoAfter, which has a length of zero if the user is the target and the doafter will check for CanInteract.

We already have this logic for connecting internals, now it is consistent with disconnect.

Media

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

Changelog

fix: Internals can no longer be toggled while asleep

@themias themias requested a review from Jezithyr as a code owner July 5, 2024 22:37
@github-actions github-actions bot added the Status: Needs Review This PR requires new reviews before it can be merged. label Jul 5, 2024
@thebadman4662
Copy link

thebadman4662 commented Jul 5, 2024

Does it fix turning internals while dead/crit too?

@themias
Copy link
Contributor Author

themias commented Jul 6, 2024

Does it fix turning internals while dead/crit too?

Yes, it also prevents toggling while dead/crit/handcuffed/stunned.

@metalgearsloth metalgearsloth merged commit 7b99d1f into space-wizards:master Jul 6, 2024
13 checks passed
@themias themias deleted the fix-internals-toggle-asleep branch July 6, 2024 16:15
aspiringLich pushed a commit to aspiringLich/space-station-14 that referenced this pull request Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Review This PR requires new reviews before it can be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toggle internals off when eepy
3 participants