mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #7289 from Cyantime/patch-2
Give rock turfs radiation blocking capabilities.
This commit is contained in:
@@ -48,6 +48,13 @@
|
|||||||
cached_rad_resistance = (density ? (material.weight + material.radiation_resistance) / config.radiation_material_resistance_divisor : 0)
|
cached_rad_resistance = (density ? (material.weight + material.radiation_resistance) / config.radiation_material_resistance_divisor : 0)
|
||||||
return
|
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
|
/obj
|
||||||
var/rad_resistance = 0 // Allow overriding rad resistance
|
var/rad_resistance = 0 // Allow overriding rad resistance
|
||||||
|
|
||||||
@@ -60,4 +67,4 @@
|
|||||||
src.apply_effect(severity, IRRADIATE, src.getarmor(null, "rad"))
|
src.apply_effect(severity, IRRADIATE, src.getarmor(null, "rad"))
|
||||||
for(var/atom/I in src)
|
for(var/atom/I in src)
|
||||||
I.rad_act(severity)
|
I.rad_act(severity)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user