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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents Fallen jobs from talking over radios, adds a fallen job helper #16242

Closed
wants to merge 1 commit into from

Conversation

Wisemonster
Copy link
Contributor

@Wisemonster Wisemonster commented Jul 3, 2024

About The Pull Request

Prevents fallen jobs from talking on radios at all, and adds an isfallenjob helper.

Why It's Good For The Game

Issues with fallen getting access to coms keeps popping up, so this should solve any current and future issues with this once and for all.

Changelog

馃啈
fix: Fallen can no longer use the radio
code: Added a isfallenjob helper
/:cl:

@tgstation-server tgstation-server added Code Improvement Changes for adhering to code standards and codebase maintainability. Fix Fixes an issue with the game. labels Jul 3, 2024
@ivanmixo
Copy link
Contributor

ivanmixo commented Jul 3, 2024

very bandaid and assuming the talker will be human

Comment on lines +256 to +258
var/mob/living/carbon/human/talker = talking_movable
if(isfallenjob(talker.job)) // prevents any of the valhalla jobs from talking to the living
return
Copy link
Contributor

Choose a reason for hiding this comment

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

yeah this is omega snowflake, don't do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would it be better to make it var/mob/living/talker, or var/mob/living/carbon/talker? Unless you're specifically talking about the isfallenjob helper.

Copy link
Contributor

Choose a reason for hiding this comment

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

If you don't want people in valhalla talking on radio, don't give them radios.

@Wisemonster
Copy link
Contributor Author

Alright, I created a much better fix in #16244

@Wisemonster Wisemonster closed this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Changes for adhering to code standards and codebase maintainability. Fix Fixes an issue with the game.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants