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

Fixes Newscaster Treatment of Wallets #27121

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Kenionatus
Copy link
Contributor

What Does This PR Do

Fixes #26357 (Newscaster does not recognize IDs inside wallets)
Simplyfies newscaster/proc/get_scanned_user
Moves proc/GetNameAndAssignmentFromId from a comms console related file to the ID card file

Why It's Good For The Game

One less bug
Makes a proc that's universally useful more discoverable

Images of changes

Testing

Created news channel with empty wallet in ID slot. Manage channel was available.
Put on ID directly. Manage channel was greyed out.
Put on ID in wallet. Manage channel was greyed out.
Created news channel with ID in wallet. Manage channel was available.
IIRC put on ID directly and manage channel was available. (I should have written this while I was testing.)
Removed ID. Manage channel was greyed out.

Logged into comms console with debugger ID. Made announcement. Job was shown correctly.
Same with ID in wallet.
Tried logging in with librarian ID. Unable.
Tried loggin in with empty wallet. Unable


Declaration

  • I confirm that I either do not require pre-approval for this PR, or I have obtained such approval and have included a screenshot to demonstrate this below.

Changelog

🆑
fix: Newscaster now correctly handle wallets.
/:cl:

@ParadiseSS13-Bot ParadiseSS13-Bot added the -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally label Oct 16, 2024
@silverplatedelta silverplatedelta added the Fix This PR will fix an issue in the game label Oct 18, 2024
@@ -645,18 +645,10 @@ GLOBAL_LIST_EMPTY(allNewscasters)
/obj/machinery/newscaster/proc/get_scanned_user(mob/user)
. = list(name = "Unknown", security = user.can_admin_interact())
if(ishuman(user))
var/mob/living/carbon/human/M = user
var/mob/living/carbon/human/human_user = user
// No ID, no luck
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// No ID, no luck

Related to the if(!M.wear_id) that is no longer here

@ParadiseSS13-Bot ParadiseSS13-Bot added -Status: Awaiting merge This PR is ready for merge and removed -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-Status: Awaiting merge This PR is ready for merge Fix This PR will fix an issue in the game
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Newscaster does not recognize IDs inside wallets
4 participants