Fixes Newscaster Treatment of Wallets (#27121)

* move GetNameAndAssignmentFromId to cards_ids file

* simplyfiy and fix newscaster's get_scanned_user

Use human/get_id_card proc instead of custom solution.

* rename M to human_user

* Update code/modules/newscaster/obj/newscaster.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Signed-off-by:  Sean <12197162+S34NW@users.noreply.github.com>

---------

Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com>
Co-authored-by: Sean <12197162+S34NW@users.noreply.github.com>
Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
Kenionatus
2024-10-22 09:47:12 +00:00
committed by GitHub
co-authored by Henri215 Sean
parent a8d322939c
commit b4d1bd1411
3 changed files with 7 additions and 16 deletions
@@ -1191,3 +1191,7 @@
return "Thunderdome Green"
else
return capitalize(skin)
/proc/GetNameAndAssignmentFromId(obj/item/card/id/I)
// Format currently matches that of newscaster feeds: Registered Name (Assigned Rank)
return I.assignment ? "[I.registered_name] ([I.assignment])" : I.registered_name