mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[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:
committed by
GitHub
parent
c487e78339
commit
6d73a10ec5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user