Stops force-feeding non-carbon mobs reagents

This commit is contained in:
Kyep
2020-07-29 18:54:15 -07:00
parent 91d679f2ed
commit ef230a92d0
@@ -47,6 +47,11 @@
reagents.reaction(M, REAGENT_TOUCH)
reagents.clear_reagents()
else
if(!iscarbon(M))
// This is a simple mob, or some other kind of mob that cannot process reagents.
// It makes no sense to inject reagents into mobs that don't even process them.
to_chat(user, "<span class='warning'>You cannot find a way to feed [M].</span>")
return
if(M != user)
M.visible_message("<span class='danger'>[user] attempts to feed something to [M].</span>", \
"<span class='userdanger'>[user] attempts to feed something to you.</span>")