[MIRROR] Fixes "melty humans" [MDB IGNORE] (#19969)

* Fixes "melty humans" (#74076)

## About The Pull Request

Fixes #73154

Includes human height in icon render key.

The logic here is that if two mobs share the same icon render key they
probably grab the same icon and thus a tall person would grab a "short
person icon".

## Why It's Good For The Game

Melty bad

## Changelog

🆑 Melbert
fix: Fixes rare human arm melting condition
/🆑

* Fixes "melty humans"

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-03-19 05:59:51 +01:00
committed by GitHub
parent f561ec9bdc
commit f377043351
@@ -560,7 +560,9 @@
if(!overlay.can_draw_on_bodypart(owner))
continue
. += "-[jointext(overlay.generate_icon_cache(), "-")]"
if(ishuman(owner))
var/mob/living/carbon/human/human_owner = owner
. += "-[human_owner.get_mob_height()]"
return .
///Generates a cache key specifically for husks
@@ -570,6 +572,9 @@
. += "[husk_type]"
. += "-husk"
. += "-[body_zone]"
if(ishuman(owner))
var/mob/living/carbon/human/human_owner = owner
. += "-[human_owner.get_mob_height()]"
return .
/obj/item/bodypart/head/generate_icon_key()