NTOS PDA Messenger update username based on ID (#15560)

* namechange on id

* Update ntpda_msg.dm

* make wider and set on spawn and apply to phones

* extend max name len
This commit is contained in:
ynot01
2022-10-08 08:30:14 -05:00
committed by GitHub
parent 648fbcdb65
commit 7f928a2019
5 changed files with 45 additions and 6 deletions

View File

@@ -537,13 +537,13 @@ SUBSYSTEM_DEF(job)
job.give_donor_stuff(living_mob, M) // yogs - Donor Features
job.give_cape(living_mob, M)
job.give_map_flare(living_mob, M)
var/obj/item/modular_computer/RPDA = locate(/obj/item/modular_computer/tablet/pda) in living_mob.GetAllContents()
var/obj/item/modular_computer/RPDA = locate(/obj/item/modular_computer/tablet) in living_mob.GetAllContents()
if(istype(RPDA))
RPDA.device_theme = GLOB.pda_themes[M.client.prefs.pda_theme]
var/obj/item/computer_hardware/hard_drive/hard_drive = RPDA.all_components[MC_HDD]
var/datum/computer_file/program/pdamessager/msgr = locate(/datum/computer_file/program/pdamessager) in hard_drive.stored_files
if(msgr)
msgr.username = living_mob.real_name
msgr.username = "[living_mob.real_name] ([alt_title ? alt_title : rank])"
msgr.receiving = TRUE
if(SSevents.holidays && SSevents.holidays["St. Patrick's Day"])
irish_override() // Assuming direct control.