From c95c01705aa89efa94a948f623c0e96c7b3d15b8 Mon Sep 17 00:00:00 2001 From: Atermonera Date: Tue, 16 Jun 2020 00:33:10 -0700 Subject: [PATCH] Merge pull request #7289 from Cyantime/patch-2 Give rock turfs radiation blocking capabilities. --- code/modules/radiation/radiation.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/modules/radiation/radiation.dm b/code/modules/radiation/radiation.dm index 51f67c8d88..c107390094 100644 --- a/code/modules/radiation/radiation.dm +++ b/code/modules/radiation/radiation.dm @@ -48,6 +48,13 @@ cached_rad_resistance = (density ? (material.weight + material.radiation_resistance) / config.radiation_material_resistance_divisor : 0) return +/turf/simulated/mineral/calc_rad_resistance() + if(!density) + return ..() + SSradiation.resistance_cache[src] = (length(contents) + 1) + cached_rad_resistance = 60 //Three times that of a steel wall. Rock is less dense than steel, but this is assuming that a normal wall isn't just solid steel all the way through like rock turfs are. + return + /obj var/rad_resistance = 0 // Allow overriding rad resistance @@ -60,4 +67,4 @@ src.apply_effect(severity, IRRADIATE, src.getarmor(null, "rad")) for(var/atom/I in src) I.rad_act(severity) - return \ No newline at end of file + return