mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-10 14:45:40 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user