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

Fix clock cult armor #11957

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

Tsar-Salat
Copy link
Contributor

About The Pull Request

I put in a new check in #11749 that makes it so UI dummies could correctly wear the cult armor without it processing and shocking.

Something fucked up, so I have reinforced the check and the clockcult check is now a OR operator.

closes #11954

Why It's Good For The Game

Testing Photographs and Procedure

Screenshots&Videos

Clockcult can wear

Screenshot 2024-11-29 095516

Regular crew cannot

dreamseeker_8VoVoOhcwb.mp4

Changelog

🆑
fix: inverted clockcult armor checks. Cultists can wear armor again, normals cannot
/:cl:

@@ -18,10 +18,10 @@

/obj/item/clothing/suit/clockwork/equipped(mob/living/user, slot)
. = ..()
if(istype(user, /mob/living/carbon/human/consistent) || istype(user, /mob/living/carbon/human/dummy))
if((istype(user, /mob/living/carbon/human/consistent) && !user.client) || (istype(user, /mob/living/carbon/human/dummy) && !user.client))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

One would expect dummies and consistent to only exist in unit tests, but something is screwing me and I don't know what, so I think this is the clearest option.

Copy link
Member

@PowerfulBacon PowerfulBacon Nov 29, 2024

Choose a reason for hiding this comment

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

Dummies exist for mob previews, what exactly goes wrong without the client check?

Copy link
Contributor Author

@Tsar-Salat Tsar-Salat Nov 29, 2024

Choose a reason for hiding this comment

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

Regular crew are being accepted as types of consistent or dummy humans, which makes it early return and not shock them.

Copy link
Member

Choose a reason for hiding this comment

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

That makes no sense, that should never happen

Copy link
Member

Choose a reason for hiding this comment

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

I really don't like this, something is definitely going wrong if this is needed and its hiding some other erronous behaviour

Copy link
Member

@PowerfulBacon PowerfulBacon left a comment

Choose a reason for hiding this comment

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

oh whatever that line has no effect on gameplay

@PowerfulBacon PowerfulBacon added this pull request to the merge queue Feb 10, 2025
Merged via the queue into BeeStation:master with commit 4ab5986 Feb 10, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: clock cultists can't wear armour robes + more clock cult related stuff
2 participants