From 05319afafa1c664bedeb6fcef6e27543782ccb0a Mon Sep 17 00:00:00 2001 From: skull132 Date: Thu, 26 Feb 2015 14:47:22 +0200 Subject: [PATCH] Body Colour for IPCs Because we paint computers, so why not pain IPCs? Also, a bypass already exists, so might as well make it official. Body colour is linked to the hair colour, so you'll have a uniform coating. --- code/modules/client/preferences.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index bc9742c3..f35ed16b 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -1176,6 +1176,8 @@ datum/preferences r_hair = hex2num(copytext(new_hair, 2, 4)) g_hair = hex2num(copytext(new_hair, 4, 6)) b_hair = hex2num(copytext(new_hair, 6, 8)) + else if (species == "Machine") + alert("Please select the Body Color instead.") if("h_style") var/list/valid_hairstyles = list() @@ -1250,12 +1252,16 @@ datum/preferences s_tone = 35 - max(min( round(new_s_tone), 220),1) if("skin") - if(species == "Unathi" || species == "Tajaran" || species == "Skrell") + if(species == "Unathi" || species == "Tajaran" || species == "Skrell" || species == "Machine") var/new_skin = input(user, "Choose your character's skin colour: ", "Character Preference") as color|null if(new_skin) r_skin = hex2num(copytext(new_skin, 2, 4)) g_skin = hex2num(copytext(new_skin, 4, 6)) b_skin = hex2num(copytext(new_skin, 6, 8)) + if(species == "Machine") + r_hair = r_skin + g_hair = g_skin + b_hair = b_skin if("ooccolor") var/new_ooccolor = input(user, "Choose your OOC colour:", "Game Preference") as color|null