<commit_before>//NEVER USE THIS IT SUX	-PETETHEGOAT
//IT SUCKS A BIT LESS -GIACOM

/obj/item/paint
	gender= PLURAL
	name = "paint"
	desc = "Used to recolor floors and walls. Can be removed by the janitor."
	icon = 'icons/obj/items_and_weapons.dmi'
	icon_state = "paint_neutral"
	item_color = "FFFFFF"
	item_state = "paintcan"
	w_class = WEIGHT_CLASS_NORMAL
	resistance_flags = FLAMMABLE
	max_integrity = 100
	var/paintleft = 10

/obj/item/paint/red
	name = "red paint"
	item_color = "C73232" //"FF0000"
	icon_state = "paint_red"

/obj/item/paint/green
	name = "green paint"
	item_color = "2A9C3B" //"00FF00"
	icon_state = "paint_green"

/obj/item/paint/blue
	name = "blue paint"
	item_color = "5998FF" //"0000FF"
	icon_state = "paint_blue"

/obj/item/paint/yellow
	name = "yellow paint"
	item_color = "CFB52B" //"FFFF00"
	icon_state = "paint_yellow"

/obj/item/paint/violet
	name = "violet paint"
	item_color = "AE4CCD" //"FF00FF"
	icon_state = "paint_violet"

/obj/item/paint/black
	name = "black paint"
	item_color = "333333"
	icon_state = "paint_black"

/obj/item/paint/white
	name = "white paint"
	item_color = "FFFFFF"
	icon_state = "paint_white"


/obj/item/paint/anycolor
	gender= PLURAL
	name = "any color"
	icon_state = "paint_neutral"

/obj/item/paint/anycolor/attack_self(mob/user)
	var/t1 = input(user, "Please select a color:", "Locking Computer", null) in list( "red", "blue", "green", "yellow", "violet", "black", "white")
	if ((user.get_active_held_item() != src || user.stat || user.restrained()))
		return
	switch(t1)
		if("red")
			item_color = "C73232"
		if("blue")
			item_color = "5998FF"
		if("green")
			item_color = "2A9C3B"
		if("yellow")
			item_color = "CFB52B"
		if("violet")
			item_color = "AE4CCD"
		if("white")
			item_color = "FFFFFF"
		if("black")
			item_color = "333333"
	icon_state = "paint_[t1]"
	add_fingerprint(user)


/obj/item/paint/afterattack(turf/target, mob/user, proximity)
	. = ..()
	if(!proximity)
		return
	if(paintleft <= 0)
		icon_state = "paint_empty"
		return
	if(!istype(target) || isspaceturf(target))
		return
	var/newcolor = "#" + item_color
	target.add_atom_colour(newcolor, WASHABLE_COLOUR_PRIORITY)
<commit_msg>Adds 6 new colors to the unlimited paint chaining can (#7903)<commit_after>//NEVER USE THIS IT SUX	-PETETHEGOAT
//IT SUCKS A BIT LESS -GIACOM

/obj/item/paint
	gender= PLURAL
	name = "paint"
	desc = "Used to recolor floors and walls. Can be removed by the janitor."
	icon = 'icons/obj/items_and_weapons.dmi'
	icon_state = "paint_neutral"
	item_color = "FFFFFF"
	item_state = "paintcan"
	w_class = WEIGHT_CLASS_NORMAL
	resistance_flags = FLAMMABLE
	max_integrity = 100
	var/paintleft = 10

/obj/item/paint/red
	name = "red paint"
	item_color = "C73232" //"FF0000"
	icon_state = "paint_red"

/obj/item/paint/green
	name = "green paint"
	item_color = "2A9C3B" //"00FF00"
	icon_state = "paint_green"

/obj/item/paint/blue
	name = "blue paint"
	item_color = "5998FF" //"0000FF"
	icon_state = "paint_blue"

/obj/item/paint/yellow
	name = "yellow paint"
	item_color = "CFB52B" //"FFFF00"
	icon_state = "paint_yellow"

/obj/item/paint/violet
	name = "violet paint"
	item_color = "AE4CCD" //"FF00FF"
	icon_state = "paint_violet"

/obj/item/paint/black
	name = "black paint"
	item_color = "333333"
	icon_state = "paint_black"

/obj/item/paint/white
	name = "white paint"
	item_color = "FFFFFF"
	icon_state = "paint_white"


/obj/item/paint/anycolor
	gender= PLURAL
	name = "any color"
	icon_state = "paint_neutral"

/obj/item/paint/anycolor/attack_self(mob/user)
	var/t1 = input(user, "Please select a color:", "Locking Computer", null) in list( "red", "pink", "blue", "cyan", "green", "lime", "yellow", "orange", "violet", "purple", "black", "gray", "white")
	if ((user.get_active_held_item() != src || user.stat || user.restrained()))
		return
	switch(t1)
		if("red")
			item_color = "C73232"
		if("pink")
			item_color = "FFC0CD"
		if("blue")
			item_color = "5998FF"
		if("cyan")
			item_color = "00FFFF"
		if("green")
			item_color = "2A9C3B"
		if("lime")
			item_color = "00FF00"
		if("yellow")
			item_color = "CFB52B"
		if("orange")
			item_color = "fFA700"
		if("violet")
			item_color = "AE4CCD"
		if("purple")
			item_color = "800080"
		if("white")
			item_color = "FFFFFF"
		if("gray")
			item_color = "808080"
		if("black")
			item_color = "333333"
	icon_state = "paint_[t1]"
	add_fingerprint(user)


/obj/item/paint/afterattack(turf/target, mob/user, proximity)
	. = ..()
	if(!proximity)
		return
	if(paintleft <= 0)
		icon_state = "paint_empty"
		return
	if(!istype(target) || isspaceturf(target))
		return
	var/newcolor = "#" + item_color
	target.add_atom_colour(newcolor, WASHABLE_COLOUR_PRIORITY)

{'fraction_non_alphanumeric': 0.15241556220607097, 'fraction_numerical': 0.03441641727233861, 'mean_word_length': 4.158765159867696, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6020159', 'n_tokens_mistral': 2182, 'n_tokens_neox': 1966, 'n_words': 398}