From 0b459ad06ffe1bef25c8ada7e24323004a3c42fc Mon Sep 17 00:00:00 2001 From: Ragolution Date: Wed, 20 Mar 2019 00:35:42 -0400 Subject: [PATCH] Fixes 200,000 runtimes during scrubber event thanks kevinz thanks kevinz thanks kevinz thanks kevinz thanks kevinz thanks kevinz thanks kevinz thanks kevinz thanks kevinz thanks kevinz thanks kevinz thanks kevinz thanks kevinz --- .../code/modules/reagents/reagents/cit_reagents.dm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modular_citadel/code/modules/reagents/reagents/cit_reagents.dm b/modular_citadel/code/modules/reagents/reagents/cit_reagents.dm index e5d2b49b37..1390417a5c 100644 --- a/modular_citadel/code/modules/reagents/reagents/cit_reagents.dm +++ b/modular_citadel/code/modules/reagents/reagents/cit_reagents.dm @@ -37,10 +37,17 @@ ..() dir = pick(1,2,4,8) -/datum/reagent/consumable/semen/reaction_turf(turf/T, reac_volume) +/* /datum/reagent/consumable/semen/reaction_turf(turf/T, reac_volume) if(!isspaceturf(T)) var/obj/effect/decal/cleanable/reagentdecal = new/obj/effect/decal/cleanable/semen(T) - reagentdecal.reagents.add_reagent("semen", reac_volume) + reagentdecal.reagents.add_reagent("semen", reac_volume) */ + +/datum/reagent/consumable/semen/reaction_turf(turf/T, reac_volume) + if(!isspaceturf(T)) + var/obj/effect/decal/cleanable/semen/S = locate() in T.contents + if(!S) + S = new/obj/effect/decal/cleanable/semen(T) + S.reagents.add_reagent("semen", reac_volume) /datum/reagent/consumable/femcum name = "Female Ejaculate"