diff --git a/code/modules/clothing/suits/jobs.dm b/code/modules/clothing/suits/jobs.dm index 1422a83dec..6a3a8cb438 100644 --- a/code/modules/clothing/suits/jobs.dm +++ b/code/modules/clothing/suits/jobs.dm @@ -174,20 +174,16 @@ /obj/item/clothing/suit/storage/toggle/lawyer/bluejacket name = "blue suit jacket" desc = "A snappy dress jacket." - icon_state = "suitjacket_blue_open" + icon_state = "suitjacket_blue" item_state_slots = list(slot_r_hand_str = "suit_blue", slot_l_hand_str = "suit_blue") - icon_open = "suitjacket_blue_open" - icon_closed = "suitjacket_blue" blood_overlay_type = "coat" body_parts_covered = UPPER_TORSO|ARMS /obj/item/clothing/suit/storage/toggle/lawyer/purpjacket name = "purple suit jacket" desc = "A snappy dress jacket." - icon_state = "suitjacket_purp_open" + icon_state = "suitjacket_purp" item_state_slots = list(slot_r_hand_str = "suit_purple", slot_l_hand_str = "suit_purple") - icon_open = "suitjacket_purp_open" - icon_closed = "suitjacket_purp" blood_overlay_type = "coat" body_parts_covered = UPPER_TORSO|ARMS @@ -195,10 +191,8 @@ /obj/item/clothing/suit/storage/toggle/internalaffairs name = "black suit jacket" desc = "A smooth black jacket." - icon_state = "ia_jacket_open" + icon_state = "ia_jacket" item_state_slots = list(slot_r_hand_str = "suit_black", slot_l_hand_str = "suit_black") - icon_open = "ia_jacket_open" - icon_closed = "ia_jacket" blood_overlay_type = "coat" body_parts_covered = UPPER_TORSO|ARMS @@ -206,10 +200,8 @@ /obj/item/clothing/suit/storage/toggle/fr_jacket name = "first responder jacket" desc = "A high-visibility jacket worn by medical first responders." - icon_state = "fr_jacket_open" + icon_state = "fr_jacket" item_state_slots = list(slot_r_hand_str = "fr_jacket", slot_l_hand_str = "fr_jacket") - icon_open = "fr_jacket_open" - icon_closed = "fr_jacket" blood_overlay_type = "armor" allowed = list(/obj/item/stack/medical, /obj/item/weapon/reagent_containers/dropper, /obj/item/weapon/reagent_containers/hypospray, /obj/item/weapon/reagent_containers/syringe, /obj/item/device/healthanalyzer, /obj/item/device/flashlight, /obj/item/device/radio, /obj/item/weapon/tank/emergency/oxygen) @@ -218,10 +210,8 @@ /obj/item/clothing/suit/storage/toggle/fr_jacket/ems name = "\improper EMS jacket" desc = "A dark blue, martian-pattern, EMS jacket. It sports high-visibility reflective stripes and a star of life on the back." - icon_state = "ems_jacket_closed" + icon_state = "ems_jacket" item_state_slots = list(slot_r_hand_str = "ems_jacket", slot_l_hand_str = "ems_jacket") - icon_open = "ems_jacket_open" - icon_closed = "ems_jacket_closed" /obj/item/clothing/suit/surgicalapron name = "surgical apron" diff --git a/code/modules/clothing/suits/labcoat.dm b/code/modules/clothing/suits/labcoat.dm index e20b2d9515..2d29f704bf 100644 --- a/code/modules/clothing/suits/labcoat.dm +++ b/code/modules/clothing/suits/labcoat.dm @@ -1,10 +1,8 @@ /obj/item/clothing/suit/storage/toggle/labcoat name = "labcoat" desc = "A suit that protects against minor chemical spills." - icon_state = "labcoat_open" + icon_state = "labcoat" item_state_slots = list(slot_r_hand_str = "labcoat", slot_l_hand_str = "labcoat") - icon_open = "labcoat_open" - icon_closed = "labcoat" blood_overlay_type = "coat" body_parts_covered = UPPER_TORSO|ARMS flags_inv = HIDEHOLSTER @@ -14,120 +12,90 @@ /obj/item/clothing/suit/storage/toggle/labcoat/red name = "red labcoat" desc = "A suit that protects against minor chemical spills. This one is red." - icon_state = "red_labcoat_open" - icon_open = "red_labcoat_open" - icon_closed = "red_labcoat" + icon_state = "red_labcoat" item_state_slots = list(slot_r_hand_str = "red_labcoat", slot_l_hand_str = "red_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/blue name = "blue labcoat" desc = "A suit that protects against minor chemical spills. This one is blue." - icon_state = "blue_labcoat_open" - icon_open = "blue_labcoat_open" - icon_closed = "blue_labcoat" + icon_state = "blue_labcoat" item_state_slots = list(slot_r_hand_str = "blue_labcoat", slot_l_hand_str = "blue_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/purple name = "purple labcoat" desc = "A suit that protects against minor chemical spills. This one is purple." - icon_state = "purple_labcoat_open" - icon_open = "purple_labcoat_open" - icon_closed = "purple_labcoat" + icon_state = "purple_labcoat" item_state_slots = list(slot_r_hand_str = "purple_labcoat", slot_l_hand_str = "purple_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/orange name = "orange labcoat" desc = "A suit that protects against minor chemical spills. This one is orange." - icon_state = "orange_labcoat_open" - icon_open = "orange_labcoat_open" - icon_closed = "orange_labcoat" + icon_state = "orange_labcoat" item_state_slots = list(slot_r_hand_str = "orange_labcoat", slot_l_hand_str = "orange_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/green name = "green labcoat" desc = "A suit that protects against minor chemical spills. This one is green." - icon_state = "green_labcoat_open" - icon_open = "green_labcoat_open" - icon_closed = "green_labcoat" + icon_state = "green_labcoat" item_state_slots = list(slot_r_hand_str = "green_labcoat", slot_l_hand_str = "green_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/yellow name = "yellow labcoat" desc = "A suit that protects against minor chemical spills. This one is yellow." - icon_state = "yellow_labcoat_open" - icon_open = "yellow_labcoat_open" - icon_closed = "yellow_labcoat" + icon_state = "yellow_labcoat" item_state_slots = list(slot_r_hand_str = "yellow_labcoat", slot_l_hand_str = "yellow_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/pink name = "pink labcoat" desc = "A suit that protects against minor chemical spills. This one is pink." - icon_state = "pink_labcoat_open" - icon_open = "pink_labcoat_open" - icon_closed = "pink_labcoat" + icon_state = "pink_labcoat" item_state_slots = list(slot_r_hand_str = "pink_labcoat", slot_l_hand_str = "pink_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/cmo name = "chief medical officer's labcoat" desc = "Bluer than the standard model." - icon_state = "labcoat_cmo_open" - icon_open = "labcoat_cmo_open" - icon_closed = "labcoat_cmo" + icon_state = "labcoat_cmo" item_state_slots = list(slot_r_hand_str = "cmo_labcoat", slot_l_hand_str = "cmo_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/cmoalt name = "chief medical officer labcoat" desc = "A labcoat with command blue highlights." - icon_state = "labcoat_cmoalt_open" - icon_open = "labcoat_cmoalt_open" - icon_closed = "labcoat_cmoalt" + icon_state = "labcoat_cmoalt" item_state_slots = list(slot_r_hand_str = "cmo_labcoat", slot_l_hand_str = "cmo_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/mad name = "The Mad's labcoat" desc = "It makes you look capable of konking someone on the noggin and shooting them into space." - icon_state = "labgreen_open" - icon_open = "labgreen_open" - icon_closed = "labgreen" + icon_state = "labgreen" item_state_slots = list(slot_r_hand_str = "green_labcoat", slot_l_hand_str = "green_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/genetics name = "Geneticist labcoat" desc = "A suit that protects against minor chemical spills. Has a blue stripe on the shoulder." - icon_state = "labcoat_gen_open" - icon_open = "labcoat_gen_open" - icon_closed = "labcoat_gen" + icon_state = "labcoat_gen" item_state_slots = list(slot_r_hand_str = "genetics_labcoat", slot_l_hand_str = "genetics_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/chemist name = "Chemist labcoat" desc = "A suit that protects against minor chemical spills. Has an orange stripe on the shoulder." - icon_state = "labcoat_chem_open" - icon_open = "labcoat_chem_open" - icon_closed = "labcoat_chem" + icon_state = "labcoat_chem" item_state_slots = list(slot_r_hand_str = "chemist_labcoat", slot_l_hand_str = "chemist_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/virologist name = "Virologist labcoat" desc = "A suit that protects against minor chemical spills. Offers slightly more protection against biohazards than the standard model. Has a green stripe on the shoulder." - icon_state = "labcoat_vir_open" - icon_open = "labcoat_vir_open" - icon_closed = "labcoat_vir" + icon_state = "labcoat_vir" item_state_slots = list(slot_r_hand_str = "virologist_labcoat", slot_l_hand_str = "virologist_labcoat") armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 60, rad = 0) /obj/item/clothing/suit/storage/toggle/labcoat/science name = "Scientist labcoat" desc = "A suit that protects against minor chemical spills. Has a purple stripe on the shoulder." - icon_state = "labcoat_tox_open" - icon_open = "labcoat_tox_open" - icon_closed = "labcoat_tox" + icon_state = "labcoat_tox" item_state_slots = list(slot_r_hand_str = "science_labcoat", slot_l_hand_str = "science_labcoat") /obj/item/clothing/suit/storage/toggle/labcoat/emt name = "EMT's labcoat" desc = "A dark blue labcoat with reflective strips for emergency medical technicians." - icon_state = "labcoat_emt_open" - icon_open = "labcoat_emt_open" - icon_closed = "labcoat_emt" + icon_state = "labcoat_emt" item_state_slots = list(slot_r_hand_str = "emt_labcoat", slot_l_hand_str = "emt_labcoat") \ No newline at end of file diff --git a/code/modules/clothing/suits/miscellaneous.dm b/code/modules/clothing/suits/miscellaneous.dm index 956bd656fc..dd732d0f7c 100644 --- a/code/modules/clothing/suits/miscellaneous.dm +++ b/code/modules/clothing/suits/miscellaneous.dm @@ -396,8 +396,6 @@ obj/item/clothing/suit/kimono desc = "A thick, well-worn WW2 leather bomber jacket." icon_state = "bomber" item_state_slots = list(slot_r_hand_str = "brown_jacket", slot_l_hand_str = "brown_jacket") - icon_open = "bomber_open" - icon_closed = "bomber" allowed = list (/obj/item/weapon/pen, /obj/item/weapon/paper, /obj/item/device/flashlight, /obj/item/weapon/tank/emergency/oxygen, /obj/item/weapon/storage/fancy/cigarettes, /obj/item/weapon/storage/box/matches, /obj/item/weapon/reagent_containers/food/drinks/flask) body_parts_covered = UPPER_TORSO|ARMS flags_inv = HIDEHOLSTER @@ -420,7 +418,6 @@ obj/item/clothing/suit/kimono name = "leather jacket" desc = "A black leather coat." icon_state = "leather_jacket" - icon_open = "leather_jacket_open" allowed = list (/obj/item/weapon/pen, /obj/item/weapon/paper, /obj/item/device/flashlight, /obj/item/weapon/tank/emergency/oxygen, /obj/item/weapon/storage/fancy/cigarettes, /obj/item/weapon/storage/box/matches, /obj/item/weapon/reagent_containers/food/drinks/flask) body_parts_covered = UPPER_TORSO|ARMS flags_inv = HIDEHOLSTER @@ -429,8 +426,6 @@ obj/item/clothing/suit/kimono name = "leather vest" desc = "A black leather vest." icon_state = "leather_jacket_sleeveless" - icon_open = "leather_jacket_sleeveless_open" - icon_closed = "leather_jacket_sleeveless" body_parts_covered = UPPER_TORSO item_state_slots = list(slot_r_hand_str = "leather_jacket", slot_l_hand_str = "leather_jacket") @@ -444,16 +439,12 @@ obj/item/clothing/suit/kimono /obj/item/clothing/suit/storage/toggle/leather_jacket/nanotrasen desc = "A black leather coat. A corporate logo is proudly displayed on the back." icon_state = "leather_jacket_nt" - icon_closed = "leather_jacket_nt" - icon_open = "leather_jacket_nt_open" item_state_slots = list(slot_r_hand_str = "leather_jacket", slot_l_hand_str = "leather_jacket") /obj/item/clothing/suit/storage/toggle/leather_jacket/nanotrasen/sleeveless name = "leather vest" desc = "A black leather vest. A corporate logo is proudly displayed on the back." icon_state = "leather_jacket_nt_sleeveless" - icon_open = "leather_jacket_nt_sleeveless_open" - icon_closed = "leather_jacket_nt_sleeveless" body_parts_covered = UPPER_TORSO item_state_slots = list(slot_r_hand_str = "leather_jacket", slot_l_hand_str = "leather_jacket") @@ -463,8 +454,6 @@ obj/item/clothing/suit/kimono desc = "A brown leather coat." icon_state = "brown_jacket" item_state_slots = list(slot_r_hand_str = "brown_jacket", slot_l_hand_str = "brown_jacket") - icon_open = "brown_jacket_open" - icon_closed = "brown_jacket" allowed = list (/obj/item/weapon/pen, /obj/item/weapon/paper, /obj/item/device/flashlight,/obj/item/weapon/tank/emergency/oxygen, /obj/item/weapon/storage/fancy/cigarettes, /obj/item/weapon/storage/box/matches, /obj/item/weapon/reagent_containers/food/drinks/flask) body_parts_covered = UPPER_TORSO|ARMS flags_inv = HIDEHOLSTER @@ -473,8 +462,6 @@ obj/item/clothing/suit/kimono name = "brown vest" desc = "A brown leather vest." icon_state = "brown_jacket_sleeveless" - icon_open = "brown_jacket_sleeveless_open" - icon_closed = "brown_jacket_sleeveless" body_parts_covered = UPPER_TORSO item_state_slots = list(slot_r_hand_str = "brown_jacket", slot_l_hand_str = "brown_jacket") @@ -482,15 +469,11 @@ obj/item/clothing/suit/kimono desc = "A brown leather coat. A corporate logo is proudly displayed on the back." icon_state = "brown_jacket_nt" item_state_slots = list(slot_r_hand_str = "brown_jacket", slot_l_hand_str = "brown_jacket") - icon_open = "brown_jacket_nt_open" - icon_closed = "brown_jacket_nt" /obj/item/clothing/suit/storage/toggle/brown_jacket/nanotrasen/sleeveless name = "brown vest" desc = "A brown leather vest. A corporate logo is proudly displayed on the back." icon_state = "brown_jacket_nt_sleeveless" - icon_open = "brown_jacket_nt_open" - icon_closed = "brown_jacket_nt_sleeveless" body_parts_covered = UPPER_TORSO item_state_slots = list(slot_r_hand_str = "brown_jacket", slot_l_hand_str = "brown_jacket") @@ -499,8 +482,6 @@ obj/item/clothing/suit/kimono desc = "A denim coat." icon_state = "denim_jacket" item_state_slots = list(slot_r_hand_str = "denim_jacket", slot_l_hand_str = "denim_jacket") - icon_open = "denim_jacket_open" - icon_closed = "denim_jacket" allowed = list (/obj/item/weapon/pen, /obj/item/weapon/paper, /obj/item/device/flashlight,/obj/item/weapon/tank/emergency/oxygen, /obj/item/weapon/storage/fancy/cigarettes, /obj/item/weapon/storage/box/matches, /obj/item/weapon/reagent_containers/food/drinks/flask) body_parts_covered = UPPER_TORSO|ARMS flags_inv = HIDEHOLSTER @@ -509,8 +490,6 @@ obj/item/clothing/suit/kimono name = "denim vest" desc = "A denim vest." icon_state = "denim_jacket_sleeveless" - icon_open = "denim_jacket_sleeveless_open" - icon_closed = "denim_jacket_sleeveless" body_parts_covered = UPPER_TORSO item_state_slots = list(slot_r_hand_str = "denim_jacket", slot_l_hand_str = "denim_jacket") @@ -518,15 +497,11 @@ obj/item/clothing/suit/kimono desc = "A denim coat. A corporate logo is proudly displayed on the back." icon_state = "denim_jacket_nt" item_state_slots = list(slot_r_hand_str = "denim_jacket", slot_l_hand_str = "denim_jacket") - icon_open = "denim_jacket_nt_open" - icon_closed = "denim_jacket_nt" /obj/item/clothing/suit/storage/toggle/denim_jacket/nanotrasen/sleeveless name = "denim vest" desc = "A denim vest. A corporate logo is proudly displayed on the back." icon_state = "denim_jacket_nt_sleeveless" - icon_open = "denim_jacket_nt_open" - icon_closed = "denim_jacket_nt_sleeveless" body_parts_covered = UPPER_TORSO item_state_slots = list(slot_r_hand_str = "denim_jacket", slot_l_hand_str = "denim_jacket") @@ -535,8 +510,6 @@ obj/item/clothing/suit/kimono desc = "A warm, grey sweatshirt." icon_state = "grey_hoodie" item_state_slots = list(slot_r_hand_str = "suit_grey", slot_l_hand_str = "suit_grey") - icon_open = "grey_hoodie_open" - icon_closed = "grey_hoodie" min_cold_protection_temperature = T0C - 20 cold_protection = UPPER_TORSO|LOWER_TORSO|ARMS flags_inv = HIDEHOLSTER @@ -546,87 +519,65 @@ obj/item/clothing/suit/kimono desc = "A warm, black sweatshirt." icon_state = "black_hoodie" item_state_slots = list(slot_r_hand_str = "suit_black", slot_l_hand_str = "suit_black") - icon_open = "black_hoodie_open" - icon_closed = "black_hoodie" /obj/item/clothing/suit/storage/toggle/hoodie/red name = "red hoodie" desc = "A warm, red sweatshirt." icon_state = "red_hoodie" item_state_slots = list(slot_r_hand_str = "suit_red", slot_l_hand_str = "suit_red") - icon_open = "red_hoodie_open" - icon_closed = "red_hoodie" /obj/item/clothing/suit/storage/toggle/hoodie/blue name = "blue hoodie" desc = "A warm, blue sweatshirt." icon_state = "blue_hoodie" item_state_slots = list(slot_r_hand_str = "suit_blue", slot_l_hand_str = "suit_blue") - icon_open = "blue_hoodie_open" - icon_closed = "blue_hoodie" /obj/item/clothing/suit/storage/toggle/hoodie/green name = "green hoodie" desc = "A warm, green sweatshirt." icon_state = "green_hoodie" item_state_slots = list(slot_r_hand_str = "suit_olive", slot_l_hand_str = "suit_olive") - icon_open = "green_hoodie_open" - icon_closed = "green_hoodie" /obj/item/clothing/suit/storage/toggle/hoodie/orange name = "orange hoodie" desc = "A warm, orange sweatshirt." icon_state = "orange_hoodie" item_state_slots = list(slot_r_hand_str = "suit_orange", slot_l_hand_str = "suit_orange") - icon_open = "orange_hoodie_open" - icon_closed = "orange_hoodie" /obj/item/clothing/suit/storage/toggle/hoodie/yellow name = "yellow hoodie" desc = "A warm, yellow sweatshirt." icon_state = "yellow_hoodie" item_state_slots = list(slot_r_hand_str = "suit_yellow", slot_l_hand_str = "suit_yellow") - icon_open = "yellow_hoodie_open" - icon_closed = "yellow_hoodie" /obj/item/clothing/suit/storage/toggle/hoodie/cti name = "CTI hoodie" desc = "A warm, black sweatshirt. It bears the letters ‘CTI’ on the back, a lettering to the prestigious university in Tau Ceti, Ceti Technical Institute. There is a blue supernova embroidered on the front, the emblem of CTI." icon_state = "cti_hoodie" item_state_slots = list(slot_r_hand_str = "suit_black", slot_l_hand_str = "suit_black") - icon_open = "cti_hoodie_open" - icon_closed = "cti_hoodie" /obj/item/clothing/suit/storage/toggle/hoodie/mu name = "mojave university hoodie" desc = "A warm, gray sweatshirt. It bears the letters ‘MU’ on the front, a lettering to the well-known public college, Mojave University." icon_state = "mu_hoodie" item_state_slots = list(slot_r_hand_str = "suit_grey", slot_l_hand_str = "suit_grey") - icon_open = "mu_hoodie_open" - icon_closed = "mu_hoodie" /obj/item/clothing/suit/storage/toggle/hoodie/nt name = "NT hoodie" desc = "A warm, blue sweatshirt. It proudly bears the silver NanoTrasen insignia lettering on the back. The edges are trimmed with silver." icon_state = "nt_hoodie" item_state_slots = list(slot_r_hand_str = "suit_blue", slot_l_hand_str = "suit_blue") - icon_open = "nt_hoodie_open" - icon_closed = "nt_hoodie" /obj/item/clothing/suit/storage/toggle/hoodie/smw name = "Space Mountain Wind hoodie" desc = "A warm, black sweatshirt. It has the logo for the popular softdrink Space Mountain Wind on both the front and the back." icon_state = "smw_hoodie" item_state_slots = list(slot_r_hand_str = "suit_black", slot_l_hand_str = "suit_black") - icon_open = "smw_hoodie_open" - icon_closed = "smw_hoodie" /obj/item/clothing/suit/storage/toggle/redandblackjacket name = "red and black jacket" desc = "A cool red and black jacket to keep you stylish and cozy." icon_state = "redandblackjacket" - icon_open = "redandblackjacket_open" - icon_closed = "redandblackjacket" flags_inv = HIDEHOLSTER /obj/item/clothing/suit/whitedress @@ -833,37 +784,28 @@ obj/item/clothing/suit/kimono desc = "a track jacket, for the athletic." icon_state = "trackjacket" item_state_slots = list(slot_r_hand_str = "black_labcoat", slot_l_hand_str = "black_labcoat") - icon_open = "trackjacket_open" - icon_closed = "trackjacket" allowed = list (/obj/item/weapon/pen, /obj/item/weapon/paper, /obj/item/device/flashlight,/obj/item/weapon/tank/emergency/oxygen, /obj/item/weapon/storage/fancy/cigarettes, /obj/item/weapon/storage/box/matches, /obj/item/weapon/reagent_containers/food/drinks/flask) /obj/item/clothing/suit/storage/toggle/track/blue name = "blue track jacket" icon_state = "trackjacketblue" item_state_slots = list(slot_r_hand_str = "blue_labcoat", slot_l_hand_str = "blue_labcoat") - icon_open = "trackjacketblue_open" - icon_closed = "trackjacketblue" + /obj/item/clothing/suit/storage/toggle/track/green name = "green track jacket" icon_state = "trackjacketgreen" item_state_slots = list(slot_r_hand_str = "green_labcoat", slot_l_hand_str = "green_labcoat") - icon_open = "trackjacketgreen_open" - icon_closed = "trackjacketgreen" /obj/item/clothing/suit/storage/toggle/track/red name = "red track jacket" icon_state = "trackjacketred" item_state_slots = list(slot_r_hand_str = "red_labcoat", slot_l_hand_str = "red_labcoat") - icon_open = "trackjacketred_open" - icon_closed = "trackjacketred" /obj/item/clothing/suit/storage/toggle/track/white name = "white track jacket" icon_state = "trackjacketwhite" item_state_slots = list(slot_r_hand_str = "labcoat", slot_l_hand_str = "labcoat") - icon_open = "trackjacketwhite_open" - icon_closed = "trackjacketwhite" //Flannels @@ -957,10 +899,8 @@ obj/item/clothing/suit/kimono /obj/item/clothing/suit/storage/toggle/greengov name = "green formal jacket" desc = "A sleek proper formal jacket with gold buttons." - icon_state = "suitjacket_green_open" + icon_state = "suitjacket_green" item_state_slots = list(slot_r_hand_str = "suit_olive", slot_l_hand_str = "suit_olive") - icon_open = "suitjacket_green_open" - icon_closed = "suitjacket_green" blood_overlay_type = "coat" body_parts_covered = UPPER_TORSO|ARMS flags_inv = HIDEHOLSTER diff --git a/code/modules/clothing/suits/solgov.dm b/code/modules/clothing/suits/solgov.dm index e38e68164d..87e4ca02fb 100644 --- a/code/modules/clothing/suits/solgov.dm +++ b/code/modules/clothing/suits/solgov.dm @@ -129,8 +129,6 @@ desc = "A uniform dress jacket with gold toggles." icon_state = "whitedress" item_state = "labcoat" - icon_open = "whitedress_open" - icon_closed = "whitedress" blood_overlay_type = "coat" /obj/item/clothing/suit/storage/toggle/dress/fleet @@ -142,8 +140,6 @@ desc = "A crisp white SCG Fleet dress jacket dripping with gold accents. So bright it's blinding." icon_state = "whitedress_com" item_state = "labcoat" - icon_open = "whitedress_com_open" - icon_closed = "whitedress_com" blood_overlay_type = "coat" /obj/item/clothing/suit/dress/marine @@ -163,6 +159,4 @@ desc = "A black synthleather jacket. The word 'MARSHAL' is stenciled onto the back in gold lettering." icon_state = "marshal_jacket" item_state_slots = list(slot_r_hand_str = "suit_black", slot_l_hand_str = "suit_black") - icon_open = "marshal_jacket_open" - icon_closed = "marshal_jacket" body_parts_covered = UPPER_TORSO|ARMS \ No newline at end of file diff --git a/code/modules/clothing/suits/storage.dm b/code/modules/clothing/suits/storage.dm index 91288a6f36..be7da66f84 100644 --- a/code/modules/clothing/suits/storage.dm +++ b/code/modules/clothing/suits/storage.dm @@ -31,8 +31,7 @@ //Jackets with buttons, used for labcoats, IA jackets, First Responder jackets, and brown jackets. /obj/item/clothing/suit/storage/toggle flags_inv = HIDEHOLSTER - var/icon_open - var/icon_closed + var/open = 0 //0 is closed, 1 is open, -1 means it won't be able to toggle verb/toggle() set name = "Toggle Coat Buttons" set category = "Object" @@ -40,12 +39,14 @@ if(!usr.canmove || usr.stat || usr.restrained()) return 0 - if(icon_state == icon_open) //Will check whether icon state is currently set to the "open" or "closed" state and switch it around with a message to the user - icon_state = icon_closed + if(open == 1) //Will check whether icon state is currently set to the "open" or "closed" state and switch it around with a message to the user + open = 0 + icon_state = initial(icon_state) flags_inv = HIDETIE|HIDEHOLSTER usr << "You button up the coat." - else if(icon_state == icon_closed) - icon_state = icon_open + else if(open == 0) + open = 1 + icon_state = "[icon_state]_open" flags_inv = HIDEHOLSTER usr << "You unbutton the coat." else //in case some goofy admin switches icon states around without switching the icon_open or icon_closed @@ -56,8 +57,7 @@ /obj/item/clothing/suit/storage/hooded/toggle flags_inv = HIDEHOLSTER - var/icon_open - var/icon_closed + var/open = 0 //0 is closed, 1 is open, -1 means it won't be able to toggle verb/toggle() set name = "Toggle Coat Buttons" set category = "Object" @@ -65,12 +65,14 @@ if(!usr.canmove || usr.stat || usr.restrained()) return 0 - if(icon_state == icon_open) //Will check whether icon state is currently set to the "open" or "closed" state and switch it around with a message to the user - icon_state = icon_closed + if(open == 1) //Will check whether icon state is currently set to the "open" or "closed" state and switch it around with a message to the user + open = 0 + icon_state = initial(icon_state) flags_inv = HIDETIE|HIDEHOLSTER usr << "You button up the coat." - else if(icon_state == icon_closed) - icon_state = icon_open + else if(open == 0) + open = 1 + icon_state = "[icon_state]_open" flags_inv = HIDEHOLSTER usr << "You unbutton the coat." else //in case some goofy admin switches icon states around without switching the icon_open or icon_closed