Character Size Examine Text

Adds a line of examine text when examining a character and gives an aproximation of their height.
This commit is contained in:
BoxyBoy
2020-10-29 21:55:42 -06:00
parent f706f16a31
commit 75f967bd88
2 changed files with 12 additions and 1 deletions
@@ -7,6 +7,7 @@
var/t_has = p_have()
var/t_is = p_are()
var/obscure_name
var/dispSize = round(12*size_multiplier) // gets the character's sprite size percent and converts it to the nearest half foot
if(isliving(user))
var/mob/living/L = user
@@ -106,6 +107,15 @@
if(!isnull(effects_exam))
. += effects_exam
//Approximate character height based on current sprite scale
if(dispSize % 2)
dispSize = dispSize - 1 //makes it even
dispSize = dispSize / 2 //turns it into it's approximation in feet
. += "[t_He] appears to be around [dispSize] and a half feet tall."
else
dispSize = dispSize / 2
. += "[t_He] appears to be around [dispSize] feet tall."
//Can be picked up?
if(can_be_held)
. += "[t_He] might be able to be picked up with <b>Alt+Click</b>!\n"
@@ -333,7 +343,7 @@
if (length(msg))
. += "<span class='warning'>[msg.Join("")]</span>"
var/traitstring = get_trait_string()
if(ishuman(user))
var/mob/living/carbon/human/H = user