re-add slow stride but it defaults to disabled
This commit is contained in:
@@ -531,8 +531,8 @@
|
||||
//multiplicative slowdown multiplier. See 'dna.update_body_size' for the operation.
|
||||
//doesn't apply to floating or crawling mobs
|
||||
/datum/config_entry/number/body_size_slowdown_multiplier
|
||||
config_entry_value = 0.25
|
||||
min_val = 0.1 //To encourage folks to disable the slowdown through the above config instead.
|
||||
config_entry_value = 0
|
||||
min_val = 0
|
||||
integer = FALSE
|
||||
|
||||
//Allows players to set a hexadecimal color of their choice as skin tone, on top of the standard ones.
|
||||
|
||||
@@ -704,8 +704,11 @@
|
||||
var/penalty_threshold = CONFIG_GET(number/threshold_body_size_penalty)
|
||||
if(features["body_size"] < penalty_threshold && old_size >= penalty_threshold)
|
||||
C.maxHealth -= 10 //reduce the maxhealth
|
||||
var/slowdown = (1 - round(features["body_size"] / danger, 0.1)) * CONFIG_GET(number/body_size_slowdown_multiplier)
|
||||
holder.add_or_update_variable_movespeed_modifier(/datum/movespeed_modifier/small_stride, TRUE, slowdown)
|
||||
else
|
||||
if(old_size < penalty_threshold && features["body_size"] >= penalty_threshold)
|
||||
C.maxHealth += 10 //give the maxhealth back
|
||||
holder.remove_movespeed_modifier(/datum/movespeed_modifier/small_stride) //remove the slowdown
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user