Blind port of Bay Radiation Subsystem

This commit is contained in:
Atermonera
2019-10-05 23:29:27 -08:00
committed by VirgoBot
parent d53319f8b3
commit 89aad128cf
45 changed files with 284 additions and 110 deletions

View File

@@ -32,7 +32,7 @@ var/global/list/rad_collectors = list()
if(P && active)
var/rads = radiation_repository.get_rads_at_turf(get_turf(src))
var/rads = SSradiation.get_rads_at_turf(get_turf(src))
if(rads)
receive_pulse(rads * 5) //Maths is hard

View File

@@ -142,13 +142,13 @@
/obj/machinery/particle_smasher/process()
if(!src.anchored) // Rapidly loses focus.
if(energy)
radiation_repository.radiate(src, round(((src.energy-150)/50)*5,1))
SSradiation.radiate(src, round(((src.energy-150)/50)*5,1))
energy = max(0, energy - 30)
update_icon()
return
if(energy)
radiation_repository.radiate(src, round(((src.energy-150)/50)*5,1))
SSradiation.radiate(src, round(((src.energy-150)/50)*5,1))
energy = CLAMP(energy - 5, 0, max_energy)
return
@@ -178,7 +178,7 @@
if(successful_craft)
visible_message("<span class='warning'>\The [src] fizzles.</span>")
if(prob(33)) // Why are you blasting it after it's already done!
radiation_repository.radiate(src, 10 + round(src.energy / 60, 1))
SSradiation.radiate(src, 10 + round(src.energy / 60, 1))
energy = max(0, energy - 30)
update_icon()
return

View File

@@ -408,7 +408,7 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity)
if (src.energy>200)
toxdamage = round(((src.energy-150)/50)*4,1)
radiation = round(((src.energy-150)/50)*5,1)
radiation_repository.radiate(src, radiation) //Always radiate at max, so a decent dose of radiation is applied
SSradiation.radiate(src, radiation) //Always radiate at max, so a decent dose of radiation is applied
for(var/mob/living/M in view(toxrange, src.loc))
if(M.status_flags & GODMODE)
continue
@@ -451,7 +451,7 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity)
M << "<span class=\"danger\">You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.</span>"
M << "<span class=\"danger\">You don't even have a moment to react as you are reduced to ashes by the intense radiation.</span>"
M.dust()
radiation_repository.radiate(src, rand(energy))
SSradiation.radiate(src, rand(energy))
return
/obj/singularity/proc/pulse()