mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Ability to select job equipment in 'Select Equipment'
This commit is contained in:
@@ -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].")
|
//log_admin("[key_name(src)] has alienized [M.key].")
|
||||||
var/list/dresspacks = list(
|
var/list/dresspacks = list(
|
||||||
"strip",
|
"strip",
|
||||||
|
"job",
|
||||||
"standard space gear",
|
"standard space gear",
|
||||||
"tournament standard red",
|
"tournament standard red",
|
||||||
"tournament standard green",
|
"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)
|
switch(dresscode)
|
||||||
if ("strip")
|
if ("strip")
|
||||||
//do nothing
|
//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")
|
if ("standard space gear")
|
||||||
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/black(M), slot_shoes)
|
M.equip_to_slot_or_del(new /obj/item/clothing/shoes/black(M), slot_shoes)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user