From 056e7b71c85bb4fcdae314833dd77cdc0db610aa Mon Sep 17 00:00:00 2001 From: WilliamMurdoch <31459154+WilliamMurdoch@users.noreply.github.com> Date: Thu, 23 Mar 2023 19:05:17 -0400 Subject: [PATCH] Adds CMO labcoats to loadout (#15819) * Adds CMO labcoats to loadout * Wrong folder :waa: * Update code/modules/client/preference_setup/loadout/loadout_suit.dm Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com> * Duplicate Whitespace Removal --------- Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com> --- .../preference_setup/loadout/loadout_suit.dm | 16 +++++++- .../williammurdoch-cmolabcoatselection.yml | 41 +++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/williammurdoch-cmolabcoatselection.yml diff --git a/code/modules/client/preference_setup/loadout/loadout_suit.dm b/code/modules/client/preference_setup/loadout/loadout_suit.dm index a96e12aea19..ca85f15db15 100644 --- a/code/modules/client/preference_setup/loadout/loadout_suit.dm +++ b/code/modules/client/preference_setup/loadout/loadout_suit.dm @@ -93,6 +93,20 @@ datum/gear/suit/colorvest path = /obj/item/clothing/suit/storage/toggle/labcoat flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION +/datum/gear/suit/cmo_labcoats + display_name = "chief medical officer labcoats selection" + path = /obj/item/clothing/suit/storage/toggle/labcoat/cmo + allowed_roles = list("Chief Medical Officer") + flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION + +/datum/gear/suit/cmo_labcoats/New() + ..() + var/list/cmo_labcoats = list() + cmo_labcoats["chief medical officer labcoat"] = /obj/item/clothing/suit/storage/toggle/labcoat/cmo + cmo_labcoats["chief medical officer labcoat, alt"] = /obj/item/clothing/suit/storage/toggle/labcoat/cmoalt + cmo_labcoats["chief medical officer labcoat, alt 2"] = /obj/item/clothing/suit/storage/toggle/labcoat/cmoalt2 + gear_tweaks += new /datum/gear_tweak/path(cmo_labcoats) + /datum/gear/suit/surgeryapron display_name = "surgical apron" path = /obj/item/clothing/accessory/apron/surgery @@ -473,4 +487,4 @@ datum/gear/suit/colorvest /datum/gear/suit/ponczo display_name = "visegradi ponczo" path = /obj/item/clothing/suit/storage/hooded/wintercoat/colorable/ponczo - flags = GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION \ No newline at end of file + flags = GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION diff --git a/html/changelogs/williammurdoch-cmolabcoatselection.yml b/html/changelogs/williammurdoch-cmolabcoatselection.yml new file mode 100644 index 00000000000..d209c7ae6b1 --- /dev/null +++ b/html/changelogs/williammurdoch-cmolabcoatselection.yml @@ -0,0 +1,41 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +# balance +# admin +# backend +# security +# refactor +################################# + +# Your name. +author: William Murdoch + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - rscadd: "Added Chief Medical Officer labcoats to the loadout."