mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 18:33:36 +00:00
configs
This commit is contained in:
@@ -473,3 +473,7 @@
|
|||||||
/datum/config_entry/number/body_size_slowdown_multiplier
|
/datum/config_entry/number/body_size_slowdown_multiplier
|
||||||
config_entry_value = 0.25
|
config_entry_value = 0.25
|
||||||
min_val = 0.1 //To encourage folks to disable the slowdown through the above config instead.
|
min_val = 0.1 //To encourage folks to disable the slowdown through the above config instead.
|
||||||
|
|
||||||
|
//Allows players to set a hexadecimal color of their choice as skin tone, on top of the standard ones.
|
||||||
|
/datum/config_entry/number/allow_custom_skintones
|
||||||
|
config_entry_value = 1
|
||||||
|
|||||||
@@ -158,7 +158,10 @@
|
|||||||
H.set_species(newrace, icon_update=0)
|
H.set_species(newrace, icon_update=0)
|
||||||
|
|
||||||
if(H.dna.species.use_skintones)
|
if(H.dna.species.use_skintones)
|
||||||
var/new_s_tone = input(H, "Choose your skin tone:", "Race change") as null|anything in GLOB.skin_tones + "custom"
|
var/list/choices = GLOB.skin_tones
|
||||||
|
if(CONFIG_GET(number/allow_custom_skintones))
|
||||||
|
choices += "custom"
|
||||||
|
var/new_s_tone = input(H, "Choose your skin tone:", "Race change") as null|anything in choices
|
||||||
if(new_s_tone)
|
if(new_s_tone)
|
||||||
if(new_s_tone == "custom")
|
if(new_s_tone == "custom")
|
||||||
var/default = H.dna.skin_tone_override || null
|
var/default = H.dna.skin_tone_override || null
|
||||||
|
|||||||
@@ -1836,7 +1836,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
|||||||
features["insect_markings"] = new_insect_markings
|
features["insect_markings"] = new_insect_markings
|
||||||
|
|
||||||
if("s_tone")
|
if("s_tone")
|
||||||
var/list/choices = GLOB.skin_tones - GLOB.nonstandard_skin_tones + "custom"
|
var/list/choices = GLOB.skin_tones - GLOB.nonstandard_skin_tones
|
||||||
|
if(CONFIG_GET(number/allow_custom_skintones))
|
||||||
|
choices += "custom"
|
||||||
var/new_s_tone = input(user, "Choose your character's skin tone:", "Character Preference") as null|anything in choices
|
var/new_s_tone = input(user, "Choose your character's skin tone:", "Character Preference") as null|anything in choices
|
||||||
if(new_s_tone)
|
if(new_s_tone)
|
||||||
if(new_s_tone == "custom")
|
if(new_s_tone == "custom")
|
||||||
|
|||||||
@@ -550,7 +550,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
|||||||
facial_hair_color = sanitize_hexcolor(facial_hair_color, 3, 0)
|
facial_hair_color = sanitize_hexcolor(facial_hair_color, 3, 0)
|
||||||
eye_color = sanitize_hexcolor(eye_color, 3, 0)
|
eye_color = sanitize_hexcolor(eye_color, 3, 0)
|
||||||
use_custom_skin_tone = sanitize_integer(use_custom_skin_tone, FALSE, TRUE, initial(use_custom_skin_tone))
|
use_custom_skin_tone = sanitize_integer(use_custom_skin_tone, FALSE, TRUE, initial(use_custom_skin_tone))
|
||||||
if(use_custom_skin_tone)
|
if(use_custom_skin_tone && CONFIG_GET(number/allow_custom_skintones))
|
||||||
skin_tone = sanitize_hexcolor(skin_tone, 6, TRUE, "#FFFFFF")
|
skin_tone = sanitize_hexcolor(skin_tone, 6, TRUE, "#FFFFFF")
|
||||||
else
|
else
|
||||||
skin_tone = sanitize_inlist(skin_tone, GLOB.skin_tones - GLOB.nonstandard_skin_tones, initial(skin_tone))
|
skin_tone = sanitize_inlist(skin_tone, GLOB.skin_tones - GLOB.nonstandard_skin_tones, initial(skin_tone))
|
||||||
|
|||||||
@@ -633,3 +633,6 @@ THRESHOLD_BODY_SIZE_SLOWDOWN 0.85
|
|||||||
## Multiplier used in the smaller strides slowdown calculation.
|
## Multiplier used in the smaller strides slowdown calculation.
|
||||||
## Doesn't apply to floating or crawling mobs.
|
## Doesn't apply to floating or crawling mobs.
|
||||||
BODY_SIZE_SLOWDOWN_MULTIPLIER 0.25
|
BODY_SIZE_SLOWDOWN_MULTIPLIER 0.25
|
||||||
|
|
||||||
|
## Allows players to set a hexadecimal color of their choice as skin tone, on top of the standard ones.
|
||||||
|
ALLOW_CUSTOM_SKINTONES
|
||||||
Reference in New Issue
Block a user