Prevent nutriment pump with no process food trait (#15941)

Prevents the nutriment pump implant from functioning on mobs with TRAIT_NO_PROCESS_FOOD., as this behavior appears to be unintended.
This commit is contained in:
Darius
2023-01-14 03:51:42 +00:00
committed by GitHub
parent 35d01aa0f4
commit 791f89a179
@@ -20,6 +20,10 @@
if(!. || synthesizing)
return
// Check if this user can process nutriment
if(HAS_TRAIT(owner, TRAIT_NO_PROCESS_FOOD))
return
if(owner.nutrition <= hunger_threshold)
synthesizing = TRUE
to_chat(owner, "<span class='notice'>You feel less hungry...</span>")