From 59c82894a1c8e21db14a2331e6e247be67143266 Mon Sep 17 00:00:00 2001 From: Fermi <> Date: Fri, 20 Sep 2019 22:15:55 +0100 Subject: [PATCH] Sprinkles! --- code/modules/reagents/chemistry/reagents.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/reagents/chemistry/reagents.dm b/code/modules/reagents/chemistry/reagents.dm index 51da628e25..52d3ba7822 100644 --- a/code/modules/reagents/chemistry/reagents.dm +++ b/code/modules/reagents/chemistry/reagents.dm @@ -84,11 +84,11 @@ // Called when this reagent is first added to a mob /datum/reagent/proc/on_mob_add(mob/living/L, amount) - if (purity == 1) - log_game("CHEM: [L] ckey: [L.key] has ingested [volume]u of [id]") + if(!iscarbon(L)) return var/mob/living/carbon/M = L - if(!M) + if (purity == 1) + log_game("CHEM: [L] ckey: [L.key] has ingested [volume]u of [id]") return if(cached_purity == 1) cached_purity = purity @@ -137,11 +137,11 @@ // Called when two reagents of the same are mixing. /datum/reagent/proc/on_merge(data, amount, mob/living/carbon/M, purity) + if(!iscarbon(M)) + return if (purity == 1) log_game("FERMICHEM: [M] ckey: [M.key] has ingested [volume]u of [id]") return - if(!iscarbon(M)) - return cached_purity = purity //purity SHOULD be precalculated from the add_reagent, update cache. if (purity < 0) CRASH("Purity below 0 for chem: [id], Please let Fermis Know!")