Rubberized Shells (#20270)

* Added a 'Rubber' skin preset for Shells in character creation, which
makes their skin look cheap and uncanny.
* Added backend support for species to have different max and min skin
tone values, currently unused.


![image-2](https://github.com/user-attachments/assets/488efd17-b551-4aec-815d-ef62041b9086)

![image-3](https://github.com/user-attachments/assets/4d650019-cf14-4860-bf38-5af1f8f4dae6)

![image-2](https://github.com/user-attachments/assets/2d7d400f-47d5-45ee-a45b-47199d36fe74)
This commit is contained in:
Geeves
2024-12-26 14:34:20 +00:00
committed by GitHub
parent df014f9bc0
commit 4713bbbb48
6 changed files with 48 additions and 33 deletions
@@ -76,9 +76,9 @@
. = TRUE
if("skin_tone")
if(can_change_skin_tone())
var/new_s_tone = input(usr, "Choose your character's skin-tone:\n(Light 30 - 220 Dark)", "Skin Tone", -owner.s_tone + 35) as num|null
var/new_s_tone = input(usr, "Choose your character's skin-tone:\n(Light [owner.species.lower_skin_tone_bound] - [owner.species.upper_skin_tone_bound] Dark)", "Skin Tone", -owner.s_tone + 35) as num|null
if(isnum(new_s_tone))
new_s_tone = 35 - max(min( round(new_s_tone), 220),30)
new_s_tone = 35 - clamp(round(new_s_tone), owner.species.lower_skin_tone_bound, owner.species.upper_skin_tone_bound)
. = owner.change_skin_tone(new_s_tone)
if("skin_color")
if(can_change_skin_color())