mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
Colorblind users can now examine the atmos components to read on what color they are (#58254)
This commit is contained in:
@@ -29,3 +29,19 @@ GLOBAL_LIST_INIT(pipe_colors_ordered, sortList(list(
|
||||
COLOR_STRONG_VIOLET = 4,
|
||||
COLOR_YELLOW = 5
|
||||
)))
|
||||
|
||||
///Names shown in the examine for every colored atmos component
|
||||
GLOBAL_LIST_INIT(pipe_color_name, sortList(list(
|
||||
COLOR_VERY_LIGHT_GRAY = "grey",
|
||||
COLOR_BLUE = "blue",
|
||||
COLOR_RED = "red",
|
||||
COLOR_VIBRANT_LIME = "green",
|
||||
COLOR_TAN_ORANGE = "orange",
|
||||
COLOR_CYAN = "cyan",
|
||||
COLOR_DARK = "dark",
|
||||
COLOR_YELLOW = "yellow",
|
||||
COLOR_BROWN = "brown",
|
||||
COLOR_LIGHT_PINK = "pink",
|
||||
COLOR_PURPLE = "purple",
|
||||
COLOR_STRONG_VIOLET = "violet"
|
||||
)))
|
||||
|
||||
@@ -65,8 +65,13 @@
|
||||
///Store the smart pipes connections, used for pipe construction
|
||||
var/connection_num = 0
|
||||
|
||||
/obj/machinery/atmospherics/LateInitialize()
|
||||
. = ..()
|
||||
name = "[GLOB.pipe_color_name[pipe_color]] [name]"
|
||||
|
||||
/obj/machinery/atmospherics/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>[src] is on layer [piping_layer].</span>"
|
||||
if((vent_movement & VENTCRAWL_ENTRANCE_ALLOWED) && isliving(user))
|
||||
var/mob/living/L = user
|
||||
if(HAS_TRAIT(L, TRAIT_VENTCRAWLER_NUDE) || HAS_TRAIT(L, TRAIT_VENTCRAWLER_ALWAYS))
|
||||
|
||||
@@ -31,10 +31,6 @@
|
||||
if(hide)
|
||||
RegisterSignal(src, COMSIG_OBJ_HIDE, .proc/hide_pipe)
|
||||
|
||||
/obj/machinery/atmospherics/components/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>[src] is on layer [piping_layer].</span>"
|
||||
|
||||
// Iconnery
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,10 +26,6 @@
|
||||
if(hide)
|
||||
AddElement(/datum/element/undertile, TRAIT_T_RAY_VISIBLE) //if changing this, change the subtypes RemoveElements too, because thats how bespoke works
|
||||
|
||||
/obj/machinery/atmospherics/pipe/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>[src] is on layer [piping_layer].</span>"
|
||||
|
||||
/obj/machinery/atmospherics/pipe/nullifyNode(i)
|
||||
var/obj/machinery/atmospherics/oldN = nodes[i]
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user