mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 17:45:02 +01:00
[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 🆑 fix: Moths can no longer eat indestructible items (like the CE's magboots) /🆑 * Moths can't eat indestructible items --------- Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user