Removes debug messages from color pin.

This commit is contained in:
Cyantime
2017-08-17 18:22:12 -04:00
parent a08f93481f
commit 05e9eb7598

View File

@@ -6,7 +6,6 @@
var/new_data = input("Please select a color.","[src] color writing") as null|color
if(holder.check_interactivity(user) )
to_chat(user, "<span class='notice'>You input a <font color='[new_data]'>new color</font> into the pin.</span>")
world << "new_data equals [new_data]."
write_data_to_pin(new_data)
/datum/integrated_io/color/write_data_to_pin(var/new_data)
@@ -15,24 +14,18 @@
if(istext(new_data))
new_data = uppertext(new_data)
if(length(new_data) != 7) // We can hex if we want to, we can leave your strings behind
world << "Wrong length."
return // Cause your strings don't hex and if they don't hex
var/friends = copytext(new_data, 2, 8) // Well they're are no strings of mine
world << "friends equal [friends]."
// I say, we can go where we want to, a place where they will never find
var/safety_dance = 1
while(safety_dance >= 7) // And we can act like we come from out of this world.log
var/hex = copytext(friends, safety_dance, safety_dance+1)
world << "Checking [hex]."
if(!(hex in list("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F")))
world << "Hex [hex] failed"
return // Leave the fake one far behind,
safety_dance++
data = new_data // And we can hex
holder.on_data_written()
world << "Done."
world << "Rip."
// This randomizes the color.
/datum/integrated_io/color/scramble()