From dcca2fcdff9d2cdd3d8ff2d2b81e0a01aa1ab7af Mon Sep 17 00:00:00 2001 From: Spaghetti-bit Date: Sun, 30 Jun 2024 22:58:54 -0700 Subject: [PATCH] [FIX] Humans no longer have socks when they're missing either leg: My socks got knocked off! (#26099) * Fixes https://github.com/ParadiseSS13/Paradise/issues/7596 * Revert "Makes our time defines use strict numbers instead of nested defines (#26069)" This reverts commit 19cbfb129aaa1e62d8175c06acd18a8938d34d61. * Comments! * Revert unintended change * Actually reverts.... missed an * * Remove S, update comment. * Update code/modules/mob/living/carbon/human/human_update_icons.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Spaghetti-bit --------- Signed-off-by: Spaghetti-bit Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --- code/modules/mob/living/carbon/human/human_update_icons.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_update_icons.dm b/code/modules/mob/living/carbon/human/human_update_icons.dm index fb780f5b08c..0cddc0d7a2d 100644 --- a/code/modules/mob/living/carbon/human/human_update_icons.dm +++ b/code/modules/mob/living/carbon/human/human_update_icons.dm @@ -259,7 +259,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) var/u2_icon = U2.sprite_sheets && (dna.species.sprite_sheet_name in U2.sprite_sheets) ? U2.sprite_sheets[dna.species.sprite_sheet_name] : U2.icon underwear_standing.Blend(new /icon(u2_icon, "us_[U2.icon_state]_s"), ICON_OVERLAY) - if(socks && dna.species.clothing_flags & HAS_SOCKS) + if(socks && dna.species.clothing_flags & HAS_SOCKS && get_organ("l_leg") && get_organ("r_leg")) // Check if the human has both legs before going on adding socks. var/datum/sprite_accessory/socks/U3 = GLOB.socks_list[socks] if(U3) var/u3_icon = U3.sprite_sheets && (dna.species.sprite_sheet_name in U3.sprite_sheets) ? U3.sprite_sheets[dna.species.sprite_sheet_name] : U3.icon