Spawns a pen-uplink if you don't have one /w pen pref. (#34827)

* Update mind.dm

* ok togopal i guess you could call that a webedit

* AHHHHHH

* xhuis

* I only had 1 cup of coffee today ok

* dost thou hast storage?

* cb

* we did it... we finally did it.
This commit is contained in:
ExcessiveUseOfCobblestone
2018-01-24 19:44:57 -05:00
committed by CitadelStationBot
parent 9652fc4127
commit 596aea6bbb

View File

@@ -261,7 +261,7 @@
var/mob/living/carbon/human/traitor_mob = current
if (!istype(traitor_mob))
return
. = 1
. = TRUE
var/list/all_contents = traitor_mob.GetAllContents()
var/obj/item/device/pda/PDA = locate() in all_contents
@@ -272,6 +272,14 @@
P = locate() in PDA
if (!P) // If we couldn't find a pen in the PDA, or we didn't even have a PDA, do it the old way
P = locate() in all_contents
if(!P) // I do not have a pen.
var/obj/item/pen/inowhaveapen
if(istype(traitor_mob.back,/obj/item/storage)) //ok buddy you better have a backpack!
inowhaveapen = new /obj/item/pen(traitor_mob.back)
else
inowhaveapen = new /obj/item/pen(traitor_mob.loc)
traitor_mob.put_in_hands(inowhaveapen) // I hope you don't have arms and your traitor pen gets stolen for all this trouble you've caused.
P = inowhaveapen
var/obj/item/uplink_loc