Skip to content

Commit

Permalink
[MIRROR] Regenerative Materia Blobs No Longer Drug Non-Carbons (#823)
Browse files Browse the repository at this point in the history
* 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

:cl:
fix: Regenerative Materia blobs can no longer drug non-carbons.
/:cl:

* Regenerative Materia Blobs No Longer Drug Non-Carbons

---------

Co-authored-by: IndieanaJones <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Feb 7, 2024
1 parent 1730d73 commit 3767c82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3767c82

Please sign in to comment.