Skip to content

Commit

Permalink
[WIP] Radiation
Browse files Browse the repository at this point in the history
Rads rads we're the rads
  • Loading branch information
Cupax3 committed Oct 18, 2021
1 parent d018717 commit bbdea38
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
3 changes: 2 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,7 @@
Radiate()
if(radiation)
SSradiation.radiate(src, round(radiation))
radiation -= radiation * 0.1
return 1

/obj/effect/fusion_em_field/proc/check_instability()
Expand Down Expand Up @@ -336,7 +337,7 @@
var/datum/gas_mixture/environment = owned_core.loc.return_air()
if(environment && environment.temperature < (T0C+1000)) // Putting an upper bound on it to stop it being used in a TEG.
environment.add_thermal_energy(plasma_temperature*20000)
radiation = 0
//radiation = 0

/obj/effect/fusion_em_field/proc/change_size(var/newsize = 1)
var/changed = 0
Expand Down
55 changes: 55 additions & 0 deletions code/modules/power/fusion/fusion_reactions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,58 @@ proc/cache_reactions()
energy_production = 8.00
products = list("nickel" = 1, "gamma ray" = 1)
priority = 2






































// the cursed place
///decl/fusion_reaction/suppermatter_boss_fight

// for the bravest
/decl/fusion_reaction/cooking
energy_production = 0
energy_consumption = 10
instability = 100
is_special = TRUE

/decl/fusion_reaction/cooking/steak
l_reactants = list("raw steak" = 1, "metaphoron" = 1)
minimum_reaction_temperature = 100000
products = list("fusion steak" = 1)

/decl/fusion_reaction/cooking/steak/handle_reaction_special(obj/effect/fusion_em_field/holder)
// TBD

0 comments on commit bbdea38

Please sign in to comment.