Skip to content

Commit

Permalink
[WIP] Multi-Z rads
Browse files Browse the repository at this point in the history
Haha frick the brig
  • Loading branch information
Cupax3 committed Oct 20, 2021
1 parent 4f44178 commit f26374c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion code/modules/power/fusion/core/core_field.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions code/modules/power/fusion/fusion_reactions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f26374c

Please sign in to comment.