From 596aea6bbb03649e75943fc0965bdf86335c6696 Mon Sep 17 00:00:00 2001 From: ExcessiveUseOfCobblestone <11748095+ExcessiveUseOfCobblestone@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:44:57 -0500 Subject: [PATCH 1/2] 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. --- code/datums/mind.dm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 4034c9506a..147eee631c 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -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