Skip to content

Commit

Permalink
no necromancy
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatethisengine committed Jul 28, 2023
1 parent b08470e commit 4f84ce8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/reagents/chemistry_properties/prop_neutral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@
M.nutrition += holder.nutriment_factor * level

/datum/chem_property/neutral/nutritious/reaction_mob(mob/target_mob, method=TOUCH, volume, potency)
if(target_mob.stat == DEAD)
return

if(method == INGEST && isxeno(target_mob))
var/mob/living/carbon/xenomorph/xeno = target_mob
if(xeno.stat == DEAD)
if(xeno.health < xeno.maxHealth || xeno.plasma_stored < xeno.plasma_max)
xeno.gain_health(holder.nutriment_factor * level * 4)
xeno.gain_plasma(holder.nutriment_factor * level * 4)
Expand Down

0 comments on commit 4f84ce8

Please sign in to comment.