Skip to content

Commit

Permalink
canbite checks/comments
Browse files Browse the repository at this point in the history
  • Loading branch information
crix870 committed Dec 31, 2024
1 parent 94bd661 commit 5e235fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions code/modules/mob/living/grabbing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e235fb

Please sign in to comment.