From 8f1df4443271ee41d614924495a204b30a20d843 Mon Sep 17 00:00:00 2001 From: TheGreatKitsune Date: Thu, 27 Apr 2023 12:34:40 -0500 Subject: [PATCH] Fixes undergarments getting yeeted by any belly update --- modular_chomp/code/modules/mob/living/carbon/human/human.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modular_chomp/code/modules/mob/living/carbon/human/human.dm b/modular_chomp/code/modules/mob/living/carbon/human/human.dm index 0fcc0acc7f..e07f8c603d 100644 --- a/modular_chomp/code/modules/mob/living/carbon/human/human.dm +++ b/modular_chomp/code/modules/mob/living/carbon/human/human.dm @@ -6,7 +6,7 @@ var/list/new_fullness = ..() . = new_fullness for(var/datum/category_group/underwear/undergarment_class in global_underwear.categories) - if(new_fullness[undergarment_class.name] == 0) + if(!new_fullness[undergarment_class.name]) continue new_fullness[undergarment_class.name] = -1 * round(-1 * new_fullness[undergarment_class.name]) // Doing a ceiling the only way BYOND knows how I guess new_fullness[undergarment_class.name] = (min(2, new_fullness[undergarment_class.name]) - 2) * -1 //Complicated stuff to get it correctly aligned with the expected TRUE/FALSE