Merge pull request #4807 from Neerti/2/12/2018_lead_tweaks

Tweaks Lead & Radiation Resistance
This commit is contained in:
Anewbe
2018-02-13 10:40:51 -06:00
committed by GitHub
3 changed files with 13 additions and 21 deletions

View File

@@ -116,7 +116,7 @@ var/global/repository/radiation/radiation_repository = new()
else if(O.density) //So open doors don't get counted
var/material/M = O.get_material()
if(!M) continue
cached_rad_resistance += M.radiation_resistance
cached_rad_resistance += M.weight + M.radiation_resistance
// Looks like storing the contents length is meant to be a basic check if the cache is stale due to items enter/exiting. Better than nothing so I'm leaving it as is. ~Leshana
radiation_repository.resistance_cache[src] = (length(contents) + 1)