Added Skin Reagent Trait (#19083)

* Added Skin Reagent Trait

On today's episode of "Satin sees a funny suggestion on the discord and implements it, but it's harder than she expects":

Added a new Skin Reagent trait, that allows you to pick one of six reagents that coat your skin and are applied to people when they lick you. These include: Ethanol, Capsaicin, Sleep Toxin, Rainbow Toxin, Paralysis Toxin and Pain Enzyme.

Does not trigger on licking yourself.

Also added a new option to traits to allow you to use a single list for them to select preferences, using a list variable called "multiple_choice".

Tested and seems to work great.

* Have salt as an option too, go on

* Removes flags, lazys the list

Not 100% sure if I've done the lazy right, I've not done much with lazy lists before.
This commit is contained in:
SatinIsle
2026-01-24 22:54:31 +00:00
committed by GitHub
parent 489144da8c
commit ce8cb4d05a
7 changed files with 43 additions and 1 deletions
@@ -63,6 +63,11 @@
if (3) //TRAIT_PREF_TYPE_STRING
var/new_string = instance.apply_sanitization_to_string(preference, tgui_input_text(user, "What should the new value be?", instance.has_preferences[preference][2], trait_prefs[preference], MAX_NAME_LEN))
trait_prefs[preference] = new_string
if (4) //TRAIT_PREF_TYPE_LIST
if(LAZYLEN(instance.multiple_choice))
var/new_choice = tgui_input_list(user, "Choose an option for this trait preference:", "Trait Preference", instance.multiple_choice, trait_prefs[preference])
if(new_choice)
trait_prefs[preference] = new_choice
// Definition of the stuff for Ears
/datum/category_item/player_setup_item/general/traits