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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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