From e27c843296e4582ebf562459d3439ebe70e9df28 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Fri, 11 Dec 2020 05:35:57 -0700 Subject: [PATCH] fixes --- code/game/machinery/colormate.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/colormate.dm b/code/game/machinery/colormate.dm index 92dcebbcdc..fc187c37a5 100644 --- a/code/game/machinery/colormate.dm +++ b/code/game/machinery/colormate.dm @@ -49,9 +49,9 @@ if(inserted) to_chat(user, "The machine is already loaded.") return - if(default_deconstruction_screwdriver(user, I)) + if(default_deconstruction_screwdriver(user, "colormate_open", "colormate", I)) return - if(default_deconstruction_crowbar(user, I)) + if(default_deconstruction_crowbar(I)) return if(default_unfasten_wrench(user, I, 40)) return @@ -66,6 +66,8 @@ inserted = I update_icon() + else + return ..() /obj/machinery/gear_painter/AllowDrop() return FALSE @@ -86,7 +88,7 @@ if(!is_operational()) return user.set_machine(src) - var/list/dat = "Color Mate Control Panel
" + var/list/dat = list("Color Mate Control Panel
") if(!inserted) dat += "No item inserted." else @@ -206,7 +208,7 @@ // We test using full red, green, blue, and white // A predefined number of them must pass to be considered valid var/passed = 0 -#define COLORTEST(thestring, thematrix) passed += (ReadHSV(RGBMatrixTransform(thestring, thematrix)) >= minimum_matrix_lightness) +#define COLORTEST(thestring, thematrix) passed += (ReadHSV(RGBMatrixTransform(thestring, thematrix))[3] >= minimum_matrix_lightness) COLORTEST("FF0000", cm) COLORTEST("00FF00", cm) COLORTEST("0000FF", cm)