From f26374c744cbca084f327dd5d07b563f987a8d58 Mon Sep 17 00:00:00 2001 From: Cupa <5896309+Cupax3@users.noreply.github.com> Date: Wed, 20 Oct 2021 04:14:46 +0200 Subject: [PATCH] [WIP] Multi-Z rads Haha frick the brig --- code/modules/power/fusion/core/core_field.dm | 6 +++++- code/modules/power/fusion/fusion_reactions.dm | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/code/modules/power/fusion/core/core_field.dm b/code/modules/power/fusion/core/core_field.dm index 0e3443454a2..28e52f51714 100644 --- a/code/modules/power/fusion/core/core_field.dm +++ b/code/modules/power/fusion/core/core_field.dm @@ -175,6 +175,10 @@ Radiate() if(radiation) SSradiation.radiate(src, round(radiation)) + if (locate(src.x, src.y, src.z-1)) + SSradiation.radiate(locate(src.x, src.y, src.z-1), round(radiation/1000)) + if (locate(src.x, src.y, src.z+1)) + SSradiation.radiate(locate(src.x, src.y, src.z+1), round(radiation/1000)) radiation -= radiation * 0.1 return 1 @@ -280,7 +284,7 @@ /obj/effect/fusion_em_field/proc/AddParticles(var/name, var/quantity = 1) if(name in reactants) reactants[name] += quantity - else if(name != "proton" && name != "electron" && name != "neutron") + else reactants.Add(name) reactants[name] = quantity diff --git a/code/modules/power/fusion/fusion_reactions.dm b/code/modules/power/fusion/fusion_reactions.dm index f3b63078c7d..d81b477444d 100644 --- a/code/modules/power/fusion/fusion_reactions.dm +++ b/code/modules/power/fusion/fusion_reactions.dm @@ -29,8 +29,9 @@ proc/cache_reactions() all_reactions = new/list for (var/rtype in typesof(/decl/fusion_reaction) - /decl/fusion_reaction) var/decl/fusion_reaction/current_reaction = new rtype() - if (current_reaction.wacky && current_reaction.hackyconfighack) - all_reactions.Add(current_reaction) + all_reactions.Add(current_reaction) + //if (current_reaction.wacky && current_reaction.hackyconfighack) + // all_reactions.Add(current_reaction) // VERY UNIDEAL REACTIONS. /decl/fusion_reaction/phoron_supermatter