Files
Cody BrittainandGitHub 3f62424312 [MDB Ignore] [IDB Ignore] Kills off /obj/item/device (#21774)
This has zero reason to exist in our code base. We have no procs or
variables tied to this. I removed it to make future modifications
cleaner.

---------

Signed-off-by: Cody Brittain <1779662+Generalcamo@users.noreply.github.com>
2026-02-01 05:14:26 +00:00

119 lines
4.3 KiB
Plaintext

/obj/item/clothing/suit/storage/hazardvest
name = "hazard vest"
desc = "A high-visibility vest used in work zones."
icon = 'icons/mob/clothing/suit/hazardvest.dmi'
icon_state = "hazard"
item_state = "hazard"
contained_sprite = TRUE
blood_overlay_type = "armor"
allowed = list (/obj/item/analyzer, /obj/item/flashlight, /obj/item/multitool, /obj/item/pipe_painter, /obj/item/radio, /obj/item/t_scanner, \
/obj/item/crowbar, /obj/item/screwdriver, /obj/item/weldingtool, /obj/item/wirecutters, /obj/item/wrench, /obj/item/tank/emergency_oxygen, \
/obj/item/clothing/mask/gas, /obj/item/taperoll/engineering, /obj/item/storage/bag/inflatable)
body_parts_covered = UPPER_TORSO
var/opened
/obj/item/clothing/suit/storage/hazardvest/verb/Toggle() //copied from storage toggle
set name = "Toggle Hazard Vest"
set category = "Object.Equipped"
set src in usr
if(use_check_and_message(usr))
return 0
opened = !opened
to_chat(usr, SPAN_NOTICE("You [opened ? "unzip" : "zip"] \the [src]."))
playsound(src, 'sound/items/zip.ogg', EQUIP_SOUND_VOLUME, TRUE)
icon_state = "[initial(icon_state)][opened ? "_open" : ""]"
item_state = icon_state
update_clothing_icon()
/obj/item/clothing/suit/storage/hazardvest/get_mob_overlay(mob/living/carbon/human/H, mob_icon, mob_state, slot)
var/image/I = ..()
if(slot == slot_wear_suit_str)
var/image/emissive_overlay = emissive_appearance(mob_icon, "[opened ? "hazard_open-emissive" : "hazard-emissive"]", alpha = src.alpha)
I.AddOverlays(emissive_overlay)
return I
/obj/item/clothing/suit/storage/hazardvest/blue
name = "blue hazard vest"
desc = "A high-visibility vest used in work zones. This one is blue."
icon_state = "hazard_b"
item_state = "hazard_b"
/obj/item/clothing/suit/storage/hazardvest/blue/atmos
name = "atmospheric hazard vest"
desc = "A high-visibility vest used in work zones. This one is used by atmospheric technicians."
/obj/item/clothing/suit/storage/hazardvest/white
name = "white hazard vest"
desc = "A high-visibility vest used in work zones. This one is white."
icon_state = "hazard_w"
item_state = "hazard_w"
/obj/item/clothing/suit/storage/hazardvest/green
name = "green hazard vest"
desc = "A high-visibility vest used in work zones. This one is green."
icon_state = "hazard_g"
item_state = "hazard_g"
/obj/item/clothing/suit/storage/hazardvest/purple
name = "purple hazard vest"
desc = "A high-visibility vest used in work zones. This one is purple."
icon_state = "hazard_p"
item_state = "hazard_p"
/obj/item/clothing/suit/storage/hazardvest/nblue
name = "navy blue hazard vest"
desc = "A high-visibility vest used in work zones. This one is navy blue."
icon_state = "hazard_nb"
item_state = "hazard_nb"
/obj/item/clothing/suit/storage/hazardvest/red
name = "red hazard vest"
desc = "A high-visibility vest used in work zones. This one is red."
icon_state = "hazard_r"
item_state = "hazard_r"
/obj/item/clothing/suit/storage/hazardvest/teal
name = "teal hazard vest"
desc = "A high-visibility vest used in work zones. This one is teal."
icon_state = "hazard_t"
item_state = "hazard_t"
/obj/item/clothing/suit/storage/hazardvest/ce
name = "chief engineer's hazard vest"
desc = "A high-visibility vest used in work zones. This one is white with a gold stripe."
icon_state = "hazard_ce"
item_state = "hazard_ce"
// Misc
/obj/item/clothing/suit/storage/hazardvest/fsf
name = "gunner's mate vest"
desc = "A high-visibility vest worn by a gunner's mate in the Solarian Navy. This one is green.";
icon_state = "hazard_fsf"
item_state = "hazard_fsf"
/obj/item/clothing/suit/storage/hazardvest/iac
desc = "It's a lightweight vest. Made of a dark, navy mesh with highly-reflective white material, designed to be worn by the Interstellar Aid Corps as a high-visibility vest, over any other clothing. The I.A.C. logo is prominently displayed on the back of the vest, between the shoulders."
name = "IAC hazard vest"
icon_state = "hazard_iac"
item_state = "hazard_iac"
permeability_coefficient = 0.50
armor = list(
BIO = ARMOR_BIO_MINOR
)
/obj/item/clothing/suit/storage/hazardvest/colorable
icon_state = "hazard_colorable"
item_state = "hazard_colorable"
build_from_parts = TRUE
worn_overlay = "stripes"
/obj/item/clothing/suit/storage/hazardvest/colorable/alt
icon_state = "hazard_colorable_alt"
item_state = "hazard_colorable_alt"
has_accents = TRUE
build_from_parts = FALSE