mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-17 02:48:10 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user