From 29a73c7e477fddc40a1201bf652906ad160b1ef9 Mon Sep 17 00:00:00 2001 From: lass9030 Date: Fri, 26 Oct 2018 11:43:32 +0200 Subject: [PATCH] get reagent amount --- code/modules/reagents/chemistry/recipes/pyrotechnics.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm index 7dcdd1e81b6..af1eaf626f3 100644 --- a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm +++ b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm @@ -110,7 +110,8 @@ /datum/chemical_reaction/sorium_vortex/on_reaction(datum/reagents/holder, created_volume) var/turf/simulated/T = get_turf(holder.my_atom) - goonchem_vortex(T, 1, min(10, created_volume), min(11, created_volume + 1)) + var/chem_amount = holder.get_reagent_amount("sorium") + goonchem_vortex(T, 1, min(10, chem_amount), min(11, chem_amount + 1)) /datum/chemical_reaction/liquid_dark_matter name = "Liquid Dark Matter" @@ -135,7 +136,8 @@ /datum/chemical_reaction/ldm_vortex/on_reaction(datum/reagents/holder, created_volume) var/turf/simulated/T = get_turf(holder.my_atom) - goonchem_vortex(T, 0, min(10, created_volume), min(11, created_volume + 1)) + var/chem_amount = holder.get_reagent_amount("liquid_dark_matter") + goonchem_vortex(T, 0, min(10, chem_amount), min(11, chem_amount + 1)) /datum/chemical_reaction/blackpowder name = "Black Powder"