Merge pull request #629 from BoxyBoy/sizeCodeFixStuff

Size code examine text
This commit is contained in:
Dahlular
2020-10-29 22:48:08 -06:00
committed by GitHub
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
@@ -105,6 +106,15 @@
if(!isnull(effects_exam))
. += effects_exam
//Approximate character height based on current sprite scale
if(dispSize % 2) // returns 1 or 0. 1 meaning the height is not exact and the code below will execute, 0 meaning the height is exact and the else will trigger.
dispSize = dispSize - 1 //makes it even
dispSize = dispSize / 2 //rounds it out
. += "[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"
@@ -332,7 +342,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