From 1c771c67093a82282e8192656b94bb91067773f3 Mon Sep 17 00:00:00 2001 From: JrInventor05Next <205915704+JrInventor05Next@users.noreply.github.com> Date: Tue, 20 Jan 2026 14:08:56 +0800 Subject: [PATCH] tweak NukeOpstTest.cs (#3486) --- Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs b/Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs index 8c7700e9c3..e5b57ed81b 100644 --- a/Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs +++ b/Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs @@ -230,10 +230,8 @@ public sealed class NukeOpsTest var totalTicks = (int) Math.Ceiling(totalSeconds / server.Timing.TickPeriod.TotalSeconds); var increment = 5; // Corvax-IPC-start - var isIPC = entMan.GetComponent(player).EntityPrototype!.ID == "MobIpc" ? true : false; - RespiratorComponent? resp = null; - if (!isIPC) - resp = entMan.GetComponent(player); + var isIPC = entMan.GetComponent(player).EntityPrototype!.ID == "MobIpc"; + RespiratorComponent? resp = isIPC ? null : entMan.GetComponent(player); // Corvax-IPC-end var damage = entMan.GetComponent(player); for (var tick = 0; tick < totalTicks; tick += increment)