diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 53fe82d54dc..2eea45ea043 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -240,9 +240,11 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) * Increase the brightness of a color by calculating the average distance between the R, G and B values, * and maximum brightness, then adding 30% of that average to R, G and B. * - * I'll make this proc global and move it to its own file in a future update. |- Ricotez + * I'll make this proc global and move it to its own file in a future update. |- Ricotez - UPDATE: They never did :( */ /mob/proc/brighten_color(input_color) + if(input_color[1] == "#") + input_color = copytext(input_color, 2) // Removing the # at the beginning. var/r_val var/b_val var/g_val @@ -270,7 +272,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) if(b_val > 255) b_val = 255 - return copytext(rgb(r_val, g_val, b_val), 2) + return "#" + copytext(rgb(r_val, g_val, b_val), 2) /* Transfer_mind is there to check if mob is being deleted/not going to have a body.