From c07ad15eb8d4a257d2ed312db54851b2e8526fe7 Mon Sep 17 00:00:00 2001 From: Archie Date: Tue, 15 Jun 2021 00:27:43 -0300 Subject: [PATCH] Radiation update. --- code/__HELPERS/radiation.dm | 2 ++ hyperstation/code/modules/power/reactor/rbmk.dm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/__HELPERS/radiation.dm b/code/__HELPERS/radiation.dm index 06b06c70..320600e7 100644 --- a/code/__HELPERS/radiation.dm +++ b/code/__HELPERS/radiation.dm @@ -27,6 +27,8 @@ /proc/radiation_pulse(atom/source, intensity, range_modifier, log=FALSE, can_contaminate=TRUE) if(!SSradiation.can_fire) return + if(!source) + return // make sure we have a source. If we don't, just return. if(istype(get_turf(source), /turf/open/pool)) var/turf/open/pool/PL = get_turf(source) if(PL.filled == TRUE) diff --git a/hyperstation/code/modules/power/reactor/rbmk.dm b/hyperstation/code/modules/power/reactor/rbmk.dm index 713f37b6..5f466648 100644 --- a/hyperstation/code/modules/power/reactor/rbmk.dm +++ b/hyperstation/code/modules/power/reactor/rbmk.dm @@ -461,7 +461,7 @@ The reactor CHEWS through moderator. It does not do this slowly. Be very careful update_icon() STOP_PROCESSING(SSmachines, src) icon_state = "reactor_slagged" - AddComponent(/datum/component/radioactive, 15000 , src) + AddComponent(/datum/component/radioactive, 15000 , src, 0) var/obj/effect/landmark/nuclear_waste_spawner/NSW = new /obj/effect/landmark/nuclear_waste_spawner/strong(get_turf(src)) relay('hyperstation/sound/effects/rbmk/meltdown.ogg', "You hear a horrible metallic hissing.") stop_relay(CHANNEL_REACTOR_ALERT)