Regenerative Materia Blobs No Longer Drug Non-Carbons (#81318)

## About The Pull Request

Fixes #79841

This PR fixes the bug where cyborgs could get high from being attacked
by regenerative materia blobs by adding a requirement that the target is
a carbon before applying the drug effect to them.

## Why It's Good For The Game

This isn't believed to be intentional (its marked as a bug) and applying
the drugginess effect to non-carbons has shown in the past to cause some
issues (ex. cyborgs which have the high effect for much much longer than
intended were it applied to a carbon)

## Changelog

🆑
fix: Regenerative Materia blobs can no longer drug non-carbons.
/🆑
This commit is contained in:
IndieanaJones
2024-02-07 09:27:53 -05:00
committed by GitHub
parent acc05c70d7
commit eab7e3adc7
@@ -18,7 +18,8 @@
/datum/reagent/blob/regenerative_materia/expose_mob(mob/living/exposed_mob, methods=TOUCH, reac_volume, show_message, touch_protection, mob/camera/blob/overmind)
. = ..()
reac_volume = return_mob_expose_reac_volume(exposed_mob, methods, reac_volume, show_message, touch_protection, overmind)
exposed_mob.adjust_drugginess(reac_volume * 2 SECONDS)
if(iscarbon(exposed_mob))
exposed_mob.adjust_drugginess(reac_volume * 2 SECONDS)
if(exposed_mob.reagents)
exposed_mob.reagents.add_reagent(/datum/reagent/blob/regenerative_materia, 0.2*reac_volume)
exposed_mob.reagents.add_reagent(/datum/reagent/toxin/spore, 0.2*reac_volume)