From 5e235fbce29016f60d843243f3e5c29276ce05b2 Mon Sep 17 00:00:00 2001 From: crix870 <59791882+crix870@users.noreply.github.com> Date: Tue, 31 Dec 2024 15:35:13 +1100 Subject: [PATCH] canbite checks/comments --- code/modules/mob/living/carbon/human/human.dm | 3 ++- code/modules/mob/living/grabbing.dm | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 8dcc6c77ed5..e6e4e95924b 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -287,7 +287,8 @@ ///Checking if the unit can bite /mob/living/carbon/human/proc/can_bite() - if(mouth?.muteinmouth) //Gagged + //if(mouth?.muteinmouth && mouth?.type != /obj/item/grabbing/bite) //This one allows continued first biting rather than having to chew + if(mouth?.muteinmouth) return FALSE for(var/obj/item/grabbing/grab in grabbedby) //Grabbed by the mouth if(grab.sublimb_grabbed == BODY_ZONE_PRECISE_MOUTH) diff --git a/code/modules/mob/living/grabbing.dm b/code/modules/mob/living/grabbing.dm index b2df83fddf9..f9a3e88c5ef 100644 --- a/code/modules/mob/living/grabbing.dm +++ b/code/modules/mob/living/grabbing.dm @@ -437,6 +437,9 @@ return if(world.time <= user.next_move) return + /*if(!user.can_bite()) // If this is enabled, check can_bite or else won't be able to chew after biting + to_chat(user, span_warning("My mouth has something in it.")) + return FALSE*/ user.changeNext_move(CLICK_CD_MELEE) var/mob/living/carbon/C = grabbed