From 982fbaa5b3e244ccd43c52d609548339b03eb91c Mon Sep 17 00:00:00 2001 From: "B.A.L" Date: Tue, 15 Jan 2019 18:44:32 -0700 Subject: [PATCH] Codework Adds mirror to medical white closet, the mirror itself, and chance for surgeons to spawn with it. --- code/game/jobs/job/medical.dm | 5 ++++- .../crates_lockers/closets/wardrobe.dm | 1 + code/modules/clothing/head/misc_special.dm | 19 +++++++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/code/game/jobs/job/medical.dm b/code/game/jobs/job/medical.dm index aaf1a61a2a1..6440eae1d4e 100644 --- a/code/game/jobs/job/medical.dm +++ b/code/game/jobs/job/medical.dm @@ -121,7 +121,10 @@ switch(H.mind.role_alt_title) if("Surgeon") uniform = /obj/item/clothing/under/rank/medical/blue - head = /obj/item/clothing/head/surgery/blue + if(prob(50)) + head = /obj/item/clothing/head/headmirror + else + head = /obj/item/clothing/head/surgery/blue if("Medical Doctor") uniform = /obj/item/clothing/under/rank/medical if("Nurse") diff --git a/code/game/objects/structures/crates_lockers/closets/wardrobe.dm b/code/game/objects/structures/crates_lockers/closets/wardrobe.dm index 645d5ad208e..645d27a1815 100644 --- a/code/game/objects/structures/crates_lockers/closets/wardrobe.dm +++ b/code/game/objects/structures/crates_lockers/closets/wardrobe.dm @@ -413,6 +413,7 @@ new /obj/item/clothing/under/medigown(src) new /obj/item/clothing/under/medigown(src) new /obj/item/clothing/under/medigown(src) + new /obj/item/clothing/head/headmirror(src) /obj/structure/closet/wardrobe/grey diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm index 81d9ed04958..6263c245820 100644 --- a/code/modules/clothing/head/misc_special.dm +++ b/code/modules/clothing/head/misc_special.dm @@ -246,3 +246,22 @@ /obj/item/clothing/head/cardborg/dropped(mob/living/user) ..() user.remove_alt_appearance("standard_borg_disguise") + +/* + * Head Mirror + */ +/obj/item/clothing/head/headmirror + name = "head mirror" + desc = "A band of rubber with a very reflective looking mirror attached to the front of it. One of the early signs of medical budget cuts." + icon_state = "head_mirror" + item_state = "head_mirror" + species_fit = list("Vox, Drask") + sprite_sheets = list( + "Vox" = 'icons/mob/species/vox/head.dmi', + "Drask" = 'icons/mob/species/drask/head.dmi', + "Grey" = 'icons/mob/species/grey/head.dmi' + ) + +/obj/item/clothing/head/headmirror/IsReflect() + if(prob(15)) //Small chance to reflect energy projectiles if held on hands. + return TRUE