typo
This commit is contained in:
@@ -699,11 +699,13 @@
|
||||
//new size detected
|
||||
holder.resize = features["body_size"] / old_size
|
||||
holder.update_transform()
|
||||
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
|
||||
else
|
||||
if(old_size < penalty_threshold && features["body_size"] >= penalty_threshold)
|
||||
holder.maxhealth += 10 //give the maxhealth back
|
||||
if(iscarbon(holder))
|
||||
var/mob/living/carbon/C = holder
|
||||
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
|
||||
else
|
||||
if(old_size < penalty_threshold && features["body_size"] >= penalty_threshold)
|
||||
C.maxHealth += 10 //give the maxhealth back
|
||||
|
||||
|
||||
|
||||
@@ -2246,7 +2246,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
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
|
||||
if(new_body_size)
|
||||
body_size = clamp(new_body_size * 0.01, CONFIG_GET(number/body_size_min), CONFIG_GET(number/body_size_max))
|
||||
features["body_size"] = clamp(new_body_size * 0.01, CONFIG_GET(number/body_size_min), CONFIG_GET(number/body_size_max))
|
||||
|
||||
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
|
||||
@@ -2695,7 +2695,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
var/old_size = character.dna.features["body_size"]
|
||||
if(isdwarf(character))
|
||||
character.dna.features["body_size"] = RESIZE_DEFAULT_SIZE
|
||||
old_size = 1
|
||||
old_size = RESIZE_DEFAULT_SIZE
|
||||
|
||||
if((parent && parent.can_have_part("meat_type")) || pref_species.mutant_bodyparts["meat_type"])
|
||||
character.type_of_meat = GLOB.meat_types[features["meat_type"]]
|
||||
|
||||
Reference in New Issue
Block a user