[MIRROR] Bloody Vomit fix (#11006)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-06-04 10:30:40 -07:00
committed by GitHub
parent c487e78339
commit 6d73a10ec5
2 changed files with 6 additions and 1 deletions

View File

@@ -429,6 +429,11 @@ var/const/CE_STABLE_THRESHOLD = 0.5
if(M.isSynthetic()) synth = 1
source = M.get_blood(M.vessel)
//Someone fed us a weird source. Let's log it.
if(source && !istype(source, /datum/reagent/blood))
log_debug("A blood splatter was made using non-blood datum [source]!")
source = null //Clear the source since it's invalid. Fallback to non-source behavior.
// Are we dripping or splattering?
var/list/drips = list()
// Only a certain number of drips (or one large splatter) can be on a given turf.