White cables no longer spontaneously change color (#24763)

* Allow cables to be white.

* Allow cables to remain white.
This commit is contained in:
Charlie Nolan
2024-03-26 09:56:06 +00:00
committed by GitHub
parent 589f1e8ee7
commit fd6b2c32de
2 changed files with 1 additions and 5 deletions
+1 -3
View File
@@ -140,9 +140,7 @@ By design, d1 is the smallest direction and d2 is the highest
deconstruct()
/obj/structure/cable/proc/cable_color(colorC)
if(!colorC)
color = COLOR_RED
else if(colorC == "rainbow")
if(colorC == "rainbow")
color = color_rainbow()
else if(colorC == "orange") //byond only knows 16 colors by name, and orange isn't one of them
color = COLOR_ORANGE
-2
View File
@@ -53,8 +53,6 @@ GLOBAL_LIST_INIT(cable_coil_recipes, list (new/datum/stack_recipe/cable_restrain
name = "cable piece"
/obj/item/stack/cable_coil/update_icon_state()
if(!color)
color = pick(COLOR_RED, COLOR_BLUE, COLOR_GREEN, COLOR_ORANGE, COLOR_WHITE, COLOR_PINK, COLOR_YELLOW, COLOR_CYAN)
if(amount == 1)
icon_state = "coil1"
else if(amount == 2)