mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Second package of skin tone fixes (#29489)
* further skin tone fixes * a bit more
This commit is contained in:
@@ -129,8 +129,14 @@
|
||||
/obj/item/fluff/bird_painter/attack_self__legacy__attackchain(mob/user)
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
H.s_tone = -115
|
||||
H.regenerate_icons()
|
||||
if(H.dna.species.bodyflags & (HAS_SKIN_TONE | HAS_ICON_SKIN_TONE))
|
||||
H.change_skin_tone(-115, TRUE)
|
||||
else if(H.dna.species.bodyflags & HAS_SKIN_COLOR)
|
||||
var/list/hsl = rgb2hsl(hex2num(copytext(H.skin_colour, 2, 4)), hex2num(copytext(H.skin_colour, 4, 6)), hex2num(copytext(color, 6, 8)))
|
||||
hsl[3] = min(hsl[3], 0.15) // makes their current skin color dark, setting its lightness to max of 15%
|
||||
var/list/rgb = hsl2rgb(arglist(hsl))
|
||||
var/new_color = "#[num2hex(rgb[1], 2)][num2hex(rgb[2], 2)][num2hex(rgb[3], 2)]"
|
||||
H.change_skin_color(new_color)
|
||||
to_chat(user, "You use [src] on yourself.")
|
||||
qdel(src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user