Merge pull request #5338 from Loganbacca/devfix

Fixes incorrect cable coil colours
This commit is contained in:
Mloc
2014-06-23 14:02:46 +01:00

View File

@@ -228,6 +228,8 @@
src.amount = length
if (param_color)
color = param_color
else
color = item_color
pixel_x = rand(-2,2)
pixel_y = rand(-2,2)
updateicon()
@@ -236,6 +238,7 @@
/obj/item/weapon/cable_coil/proc/updateicon()
if (!color)
color = pick(COLOR_RED, COLOR_BLUE, COLOR_GREEN, COLOR_ORANGE, COLOR_WHITE, COLOR_PINK, COLOR_YELLOW, COLOR_CYAN)
item_color = color
if(amount == 1)
icon_state = "coil1"
name = "cable piece"