From 7b5cef7492d6b68dba42ff9bb266022bb03d9ecb Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 4 Feb 2023 17:39:55 +0100 Subject: [PATCH] [MIRROR] Moths can't eat indestructible items [MDB IGNORE] (#19158) * Moths can't eat indestructible items (#73171) ## About The Pull Request Prevents mothmen from eating indestructible clothings like the advanced magboots ## Why It's Good For The Game Closes https://github.com/tgstation/tgstation/issues/66923 and makes indestructible items not be destructible through the power of your damn mouth. ## Changelog :cl: fix: Moths can no longer eat indestructible items (like the CE's magboots) /:cl: * Moths can't eat indestructible items --------- Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> --- code/modules/clothing/clothing.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 8d028395691..17f1ee7a31f 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -95,7 +95,7 @@ /obj/item/clothing/attack(mob/living/target, mob/living/user, params) if(user.combat_mode || !ismoth(target) || ispickedupmob(src)) return ..() - if(clothing_flags & INEDIBLE_CLOTHING) + if((clothing_flags & INEDIBLE_CLOTHING) || (resistance_flags & INDESTRUCTIBLE)) return ..() if(isnull(moth_snack)) moth_snack = new