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

Makes worn_id a private var #6505

Closed
wants to merge 2 commits into from

Conversation

Zonespace27
Copy link
Contributor

@Zonespace27 Zonespace27 commented Jun 18, 2024

About the pull request

Title

Explain why it's good for the game

Stops #6411 from happening again

@github-actions github-actions bot added the Missing Changelog Maintainers always document their changes. label Jun 18, 2024
@@ -369,6 +369,7 @@

//gets ID card object from special clothes slot or null.
/mob/living/carbon/human/proc/get_idcard()
RETURN_TYPE(/obj/item)
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't this be more correct as /obj/item/card/id

Copy link
Contributor

@Drulikar Drulikar Jun 18, 2024

Choose a reason for hiding this comment

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

It is not correct that the changes here are returning the ID card. It just makes it so if say you have your ID in a wallet, the wallet will disappear because somereason you're having it directly search for the ID card:
id

Think of wear_id merely as the inventory SLOT. It was just merely incorrect before that things would assume the only thing that could be slotted was an ID card.

@Drulikar Drulikar marked this pull request as draft June 18, 2024 18:35
@Drulikar
Copy link
Contributor

In general I just really don't think this is worth doing. There's nothing special about why this inventory slot needs to be treated differently than any other inventory slot. It was just an incorrect assumption that code made before that the only thing that could be slotted was of the type /obj/item/card/id and the definition being typed to that is what furthered that wrong assumption.

Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Jun 26, 2024
@github-actions github-actions bot closed this Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing Changelog Maintainers always document their changes. Stale beg a maintainer to review your PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants