mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
config values
This commit is contained in:
@@ -519,10 +519,10 @@
|
|||||||
min_val = RESIZE_DEFAULT_SIZE
|
min_val = RESIZE_DEFAULT_SIZE
|
||||||
integer = FALSE
|
integer = FALSE
|
||||||
|
|
||||||
//Pun-Pun movement slowdown given to characters with a body size smaller than this value,
|
//Penalties given to characters with a body size smaller than this value,
|
||||||
//to compensate for their smaller hitbox.
|
//to compensate for their smaller hitbox.
|
||||||
//To disable, just make sure the value is lower than 'body_size_min'
|
//To disable, just make sure the value is lower than 'body_size_min'
|
||||||
/datum/config_entry/number/threshold_body_size_slowdown
|
/datum/config_entry/number/threshold_body_size_penalty
|
||||||
config_entry_value = RESIZE_DEFAULT_SIZE * 0.85
|
config_entry_value = RESIZE_DEFAULT_SIZE * 0.85
|
||||||
min_val = 0
|
min_val = 0
|
||||||
max_val = RESIZE_DEFAULT_SIZE
|
max_val = RESIZE_DEFAULT_SIZE
|
||||||
|
|||||||
@@ -699,10 +699,11 @@
|
|||||||
//new size detected
|
//new size detected
|
||||||
holder.resize = features["body_size"] / old_size
|
holder.resize = features["body_size"] / old_size
|
||||||
holder.update_transform()
|
holder.update_transform()
|
||||||
if(features["body_size"] < 1 && old_size >= 1)
|
var/penalty_threshold = CONFIG_GET(number/threshold_body_size_penalty)
|
||||||
|
if(features["body_size"] < penalty_threshold && old_size >= penalty_threshold)
|
||||||
holder.maxhealth -= 10 //reduce the maxhealth
|
holder.maxhealth -= 10 //reduce the maxhealth
|
||||||
else
|
else
|
||||||
if(old_size < 1 && features["body_size"] >= 1)
|
if(old_size < penalty_threshold && features["body_size"] >= penalty_threshold)
|
||||||
holder.maxhealth += 10 //give the maxhealth back
|
holder.maxhealth += 10 //give the maxhealth back
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2246,7 +2246,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
|||||||
if("body_size")
|
if("body_size")
|
||||||
var/new_body_size = input(user, "Choose your desired sprite size: (90-125%)\nWarning: This may make your character look distorted. Additionally, any size under 100% takes a 10% maximum health penalty", "Character Preference", features["body_size"]*100) as num|null
|
var/new_body_size = input(user, "Choose your desired sprite size: (90-125%)\nWarning: This may make your character look distorted. Additionally, any size under 100% takes a 10% maximum health penalty", "Character Preference", features["body_size"]*100) as num|null
|
||||||
if(new_body_size)
|
if(new_body_size)
|
||||||
body_size = clamp(new_body_size * 0.01, 90, 125)
|
body_size = clamp(new_body_size * 0.01, CONFIG_GET(number/body_size_min), CONFIG_GET(number/body_size_max))
|
||||||
|
|
||||||
if("tongue")
|
if("tongue")
|
||||||
var/selected_custom_tongue = input(user, "Choose your desired tongue (none means your species tongue)", "Character Preference") as null|anything in GLOB.roundstart_tongues
|
var/selected_custom_tongue = input(user, "Choose your desired tongue (none means your species tongue)", "Character Preference") as null|anything in GLOB.roundstart_tongues
|
||||||
|
|||||||
Reference in New Issue
Block a user