Skip to content

Commit

Permalink
plasma regain
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatethisengine committed Jul 28, 2023
1 parent 4a3ced9 commit e7fb010
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/modules/reagents/chemistry_properties/prop_neutral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@
/datum/chem_property/neutral/nutritious/reaction_mob(mob/target_mob, method=TOUCH, volume, potency)
if(method == INGEST && isxeno(target_mob))
var/mob/living/carbon/xenomorph/xeno = target_mob
if(xeno.health < xeno.maxHealth)
xeno.gain_health(holder.nutriment_factor * level * 3)
if(xeno.health < xeno.maxHealth || xeno.plasma_stored < xeno.plasma_max)
xeno.gain_health(holder.nutriment_factor * level * 4)
xeno.plasma_stored = min(xeno.plasma_stored + holder.nutriment_factor * level * 4, xeno.plasma_max)
xeno.flick_heal_overlay(1 SECONDS, "#666d09")
xeno.reagents.remove_reagent("nutriment", volume, TRUE) //xenos don't process chems so we don't want it to max at 100u
holder.on_delete()
Expand Down

0 comments on commit e7fb010

Please sign in to comment.