From 13391d2af668e51fc25487a025b376e995447e9b Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Fri, 11 Dec 2020 05:09:29 -0700 Subject: [PATCH] fix --- code/game/machinery/colormate.dm | 14 ++++++++------ .../items/circuitboards/machine_circuitboards.dm | 6 ++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/code/game/machinery/colormate.dm b/code/game/machinery/colormate.dm index 314cf3fa96..92dcebbcdc 100644 --- a/code/game/machinery/colormate.dm +++ b/code/game/machinery/colormate.dm @@ -1,10 +1,11 @@ /obj/machinery/gear_painter name = "\improper Color Mate" desc = "A machine to give your apparel a fresh new color! Recommended to use with white items for best results." - icon = 'icons/obj/vending_vr.dmi' + icon = 'icons/obj/vending.dmi' icon_state = "colormate" density = TRUE anchored = TRUE + circuit = /obj/item/circuitboard/machine/colormate var/obj/item/inserted var/activecolor = "#FFFFFF" var/list/color_matrix_last @@ -66,6 +67,9 @@ inserted = I update_icon() +/obj/machinery/gear_painter/AllowDrop() + return FALSE + /obj/machinery/gear_painter/AltClick(mob/user) . = ..() if(!user.CanReach(src)) @@ -86,9 +90,8 @@ if(!inserted) dat += "No item inserted." else - for(var/atom/movable/O in processing) - dat += "Item inserted: [O]
" - dat += "Matrix mode: [matrix_mode? "On" : "Off"]" + dat += "Item inserted: [inserted]
" + dat += "Matrix mode: [matrix_mode? "On" : "Off"]" if(!matrix_mode) dat += "Select new color.
" dat += "Color: " @@ -172,7 +175,7 @@ text2num(href_list["cb"]) ) color_matrix_last = cm.Copy() - if(!check_valid_color(cm, user)) + if(!check_valid_color(cm, usr)) return inserted.add_atom_colour(cm, FIXED_COLOUR_PRIORITY) playsound(src, 'sound/effects/spray3.ogg', 50, 1) @@ -203,7 +206,6 @@ // We test using full red, green, blue, and white // A predefined number of them must pass to be considered valid var/passed = 0 - var/list/HSV #define COLORTEST(thestring, thematrix) passed += (ReadHSV(RGBMatrixTransform(thestring, thematrix)) >= minimum_matrix_lightness) COLORTEST("FF0000", cm) COLORTEST("00FF00", cm) diff --git a/code/game/objects/items/circuitboards/machine_circuitboards.dm b/code/game/objects/items/circuitboards/machine_circuitboards.dm index 8e59e91e38..3a7eab8f06 100644 --- a/code/game/objects/items/circuitboards/machine_circuitboards.dm +++ b/code/game/objects/items/circuitboards/machine_circuitboards.dm @@ -243,6 +243,12 @@ /obj/item/stack/sheet/glass = 1) def_components = list(/obj/item/stack/ore/bluespace_crystal = /obj/item/stack/ore/bluespace_crystal/artificial) +/obj/item/circuitboard/machine/colormate + name = "Colormate (Machine Board") + build_path = /obj/machinery/gear_painter + req_components = list() + def_components = list() + /obj/item/circuitboard/machine/vendor name = "Custom Vendor (Machine Board)" desc = "You can turn the \"brand selection\" dial using a screwdriver."