forked from Bubberstation/Bubberstation
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5fc9a4
commit 46a1b4b
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/mob/living/carbon/proc/get_size_examine_info(mob/living/user) | ||
. = list() | ||
//Approximate character height based on current sprite scale | ||
var/dispSize = round(12*get_size(src)) // gets the character's sprite size percent and converts it to the nearest half foot | ||
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] appear\s to be around [dispSize] and a half feet tall." | ||
else | ||
dispSize = dispSize / 2 | ||
. += "[t_He] appear\s to be around [dispSize] feet tall." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters