mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 21:17:44 +01:00
[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user