From 16149a3087e33637e0f78a41697c0385d30f2d9e Mon Sep 17 00:00:00 2001 From: mar Date: Mon, 3 Jun 2024 16:37:01 -0400 Subject: [PATCH 1/2] update gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 94f782a..8748f93 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /.idea/ /.vs/ +/.vscode/ packages Releases **/bin From 0555567fae55e75d9c5c2c282401d691c90da674 Mon Sep 17 00:00:00 2001 From: mar Date: Mon, 3 Jun 2024 17:27:33 -0400 Subject: [PATCH 2/2] check if surface is irradiated instead --- DeathrunRemade/Patches/RadiationPatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeathrunRemade/Patches/RadiationPatcher.cs b/DeathrunRemade/Patches/RadiationPatcher.cs index 495c60e..24f33ad 100644 --- a/DeathrunRemade/Patches/RadiationPatcher.cs +++ b/DeathrunRemade/Patches/RadiationPatcher.cs @@ -265,7 +265,7 @@ private static float CalculateRadiationFX() // This is the vanilla value. float playerRads = player.radiationAmount; // Proceed as normal if we have nothing to do. - if (LeakingRadiation.main == null || fxConfig == RadiationVisuals.Normal) + if (!IsSurfaceIrradiated() || fxConfig == RadiationVisuals.Normal) return playerRads; float environmentRads = 0f;