fix slime blood not transfusing to vampires (#31314)

* fix slime blood not transfusing to vampires

* fix non-vampire slime transfusion

* santa claus but it's a guard
This commit is contained in:
Toastical
2025-12-19 15:23:36 +02:00
committed by GitHub
parent d360ca18cc
commit ff1f7c2556
2 changed files with 13 additions and 5 deletions
@@ -47,13 +47,19 @@
taste_description = "slimes"
taste_mult = 1.3
/datum/reagent/slimejelly/reaction_mob(mob/living/M, method, volume, show_message)
var/mob/living/carbon/C = M
if(method != REAGENT_INGEST || !iscarbon(C) || !C.mind?.has_antag_datum(/datum/antagonist/vampire))
return ..()
M.set_nutrition(min(NUTRITION_LEVEL_WELL_FED, M.nutrition + 10))
M.blood_volume = min(M.blood_volume + round(volume, 0.1), BLOOD_VOLUME_NORMAL)
M.absorb_blood(id)
/datum/reagent/slimejelly/on_mob_life(mob/living/M)
var/update_flags = STATUS_UPDATE_NONE
var/mob/living/carbon/C = M
if(iscarbon(C) && C.mind?.has_antag_datum(/datum/antagonist/vampire))
M.set_nutrition(min(NUTRITION_LEVEL_WELL_FED, M.nutrition + 10))
if(M.get_blood_id() != id)
M.blood_volume = min(M.blood_volume + REAGENTS_METABOLISM, BLOOD_VOLUME_NORMAL)
return ..() | update_flags
if(M.get_blood_id() != id)