From fa2a5bf02124a2cd3cdcbbe4e6bb67f7861192f0 Mon Sep 17 00:00:00 2001 From: Joan Lung Date: Sun, 16 Apr 2017 16:51:22 -0400 Subject: [PATCH] Fixes a bug (#26232) * Fixes #26223 * compress --- .../reagents/chemistry/recipes/slime_extracts.dm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/code/modules/reagents/chemistry/recipes/slime_extracts.dm b/code/modules/reagents/chemistry/recipes/slime_extracts.dm index f270fa567f..9237c3f85a 100644 --- a/code/modules/reagents/chemistry/recipes/slime_extracts.dm +++ b/code/modules/reagents/chemistry/recipes/slime_extracts.dm @@ -9,9 +9,8 @@ /datum/chemical_reaction/slime/proc/delete_extract(datum/reagents/holder) var/obj/item/slime_extract/M = holder.my_atom - if(M.Uses <= 0) - if (!results.len) //if the slime doesn't output chemicals - qdel(M) + if(M.Uses <= 0 && !results.len) //if the slime doesn't output chemicals + qdel(M) //Grey /datum/chemical_reaction/slime/slimespawn @@ -22,8 +21,7 @@ required_other = 1 /datum/chemical_reaction/slime/slimespawn/on_reaction(datum/reagents/holder) - var/mob/living/simple_animal/slime/S - S = new(get_turf(holder.my_atom), "grey") + var/mob/living/simple_animal/slime/S = new(get_turf(holder.my_atom), "grey") S.visible_message("Infused with plasma, the core begins to quiver and grow, and a new baby slime emerges from it!") ..() @@ -223,6 +221,7 @@ required_reagents = list("plasma" = 1) required_container = /obj/item/slime_extract/darkblue required_other = 1 + deletes_extract = FALSE /datum/chemical_reaction/slime/slimefreeze/on_reaction(datum/reagents/holder) var/turf/T = get_turf(holder.my_atom) @@ -360,7 +359,6 @@ ..() //Red - /datum/chemical_reaction/slime/slimemutator name = "Slime Mutator" id = "m_slimemutator"