mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
bridge assistant and veteran advisor PDAs (inside backpack) are now imprinted automatically (#93850)
This commit is contained in:
@@ -413,18 +413,25 @@
|
||||
|
||||
equipped.update_ID_card()
|
||||
|
||||
if(!pda_slot) //This job outfit doesn't have a PDA.
|
||||
return
|
||||
|
||||
var/obj/item/modular_computer/pda/pda = equipped.get_item_by_slot(pda_slot)
|
||||
if(pda && !istype(pda)) //we found something but it isn't a PDA, check if it's inside it instead.
|
||||
pda = locate() in pda
|
||||
|
||||
if(istype(pda))
|
||||
pda.imprint_id(equipped.real_name, equipped_job.title)
|
||||
pda.update_ringtone(equipped_job.job_tone)
|
||||
pda.UpdateDisplay()
|
||||
if(!istype(pda)) //We couldn't find a PDA at all.
|
||||
stack_trace("pda_slot was set but we couldn't find a PDA!")
|
||||
return
|
||||
|
||||
var/client/equipped_client = GLOB.directory[ckey(equipped.mind?.key)]
|
||||
pda.imprint_id(equipped.real_name, equipped_job.title)
|
||||
pda.update_ringtone(equipped_job.job_tone)
|
||||
pda.UpdateDisplay()
|
||||
|
||||
if(equipped_client)
|
||||
pda.update_pda_prefs(equipped_client)
|
||||
var/client/equipped_client = GLOB.directory[ckey(equipped.mind?.key)]
|
||||
|
||||
if(equipped_client)
|
||||
pda.update_pda_prefs(equipped_client)
|
||||
|
||||
/datum/outfit/job/get_chameleon_disguise_info()
|
||||
var/list/types = ..()
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
ears = null
|
||||
shoes = /obj/item/clothing/shoes/sneakers/orange
|
||||
box = /obj/item/storage/box/survival/prisoner
|
||||
pda_slot = null
|
||||
|
||||
/datum/outfit/job/prisoner/pre_equip(mob/living/carbon/human/H)
|
||||
..()
|
||||
|
||||
@@ -80,3 +80,4 @@
|
||||
shoes = /obj/item/clothing/shoes/laceup
|
||||
l_pocket = /obj/item/gun/energy/e_gun/mini
|
||||
r_pocket = /obj/item/assembly/flash/handheld
|
||||
pda_slot = ITEM_SLOT_BACK
|
||||
|
||||
@@ -83,3 +83,4 @@
|
||||
r_hand = /obj/item/cane
|
||||
|
||||
implants = list(/obj/item/implant/mindshield)
|
||||
pda_slot = ITEM_SLOT_BACK
|
||||
|
||||
Reference in New Issue
Block a user