diff --git a/code/datums/outfits/costumes/halloween.dm b/code/datums/outfits/costumes/halloween.dm index 36659e2141..cca8047625 100644 --- a/code/datums/outfits/costumes/halloween.dm +++ b/code/datums/outfits/costumes/halloween.dm @@ -42,7 +42,7 @@ /decl/hierarchy/outfit/costume/horrorcop/post_equip(var/mob/living/carbon/human/H) var/obj/item/clothing/under/U = H.w_uniform - if(U.accessories.len) + if(LAZYLEN(U.accessories)) for(var/obj/item/clothing/accessory/A in U.accessories) if(istype(A, /obj/item/clothing/accessory/holster)) var/obj/item/clothing/accessory/holster/O = A @@ -59,7 +59,7 @@ /decl/hierarchy/outfit/costume/cowboy/post_equip(var/mob/living/carbon/human/H) var/obj/item/clothing/under/U = H.w_uniform - if(U.accessories.len) + if(LAZYLEN(U.accessories)) for(var/obj/item/clothing/accessory/A in U.accessories) if(istype(A, /obj/item/clothing/accessory/holster)) var/obj/item/clothing/accessory/holster/O = A diff --git a/code/modules/clothing/clothing_accessories.dm b/code/modules/clothing/clothing_accessories.dm index b87450c266..91010f4103 100644 --- a/code/modules/clothing/clothing_accessories.dm +++ b/code/modules/clothing/clothing_accessories.dm @@ -133,7 +133,7 @@ accessories = null /obj/item/clothing/emp_act(severity) - if(accessories.len) + if(LAZYLEN(accessories)) for(var/obj/item/clothing/accessory/A in accessories) A.emp_act(severity) ..() \ No newline at end of file diff --git a/code/modules/clothing/under/accessories/holster.dm b/code/modules/clothing/under/accessories/holster.dm index cc3253db0f..a22e2c57ee 100644 --- a/code/modules/clothing/under/accessories/holster.dm +++ b/code/modules/clothing/under/accessories/holster.dm @@ -98,7 +98,7 @@ H = src else if (istype(src, /obj/item/clothing/under)) var/obj/item/clothing/under/S = src - if (S.accessories.len) + if (LAZYLEN(S.accessories)) H = locate() in S.accessories if (!H) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 57dc59f218..b25973e89a 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -241,7 +241,7 @@ if(legcuffed) dat += "
Legcuffed" - if(suit && suit.accessories.len) + if(suit && LAZYLEN(suit.accessories)) dat += "
Remove accessory" dat += "
Remove splints" dat += "
Empty pockets" diff --git a/code/modules/mob/living/carbon/human/stripping.dm b/code/modules/mob/living/carbon/human/stripping.dm index 82ca192181..3029cdbf8f 100644 --- a/code/modules/mob/living/carbon/human/stripping.dm +++ b/code/modules/mob/living/carbon/human/stripping.dm @@ -33,7 +33,7 @@ return if("tie") var/obj/item/clothing/under/suit = w_uniform - if(!istype(suit) || !suit.accessories.len) + if(!istype(suit) || !LAZYLEN(suit.accessories)) return var/obj/item/clothing/accessory/A = suit.accessories[1] if(!istype(A))