From 84696567d8aba4876f844df60421e25a971a67b4 Mon Sep 17 00:00:00 2001 From: volas Date: Sat, 9 May 2015 18:55:53 +0300 Subject: [PATCH] Ability to select job equipment in 'Select Equipment' --- code/modules/admin/verbs/debug.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 806d20d1ca..1012883781 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -525,6 +525,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that //log_admin("[key_name(src)] has alienized [M.key].") var/list/dresspacks = list( "strip", + "job", "standard space gear", "tournament standard red", "tournament standard green", @@ -561,6 +562,19 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that switch(dresscode) if ("strip") //do nothing + if ("job") + var/selected_job = input("Select job", "Robust quick dress shop") as null|anything in joblist + if (isnull(selected_job)) + return + + var/datum/job/job = job_master.GetJob(selected_job) + if(!job) + return + + job.equip(M) + job.apply_fingerprints(M) + job_master.spawnId(M, selected_job) + if ("standard space gear") M.equip_to_slot_or_del(new /obj/item/clothing/shoes/black(M), slot_shoes)