mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 21:27:01 +01:00
Generalizes the feed and force feed checks.
This commit is contained in:
@@ -34,10 +34,8 @@
|
||||
else
|
||||
return ..()
|
||||
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(!H.can_eat(src))
|
||||
return
|
||||
if(!M.can_eat(src))
|
||||
return
|
||||
|
||||
if (reagents.total_volume > 0)
|
||||
reagents.trans_to_mob(M, reagents.total_volume, CHEM_INGEST)
|
||||
|
||||
Reference in New Issue
Block a user