mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
file-scoped namespaces in solution
This commit is contained in:
1 parent
ea43c114e9
commit
8d29c28d36
558 files changed
+84722
-85295
No files matched your search
+20
-21
@@ -1,31 +1,30 @@
|
||||
using HarmonyLib;
|
||||
|
||||
namespace EHR.Patches
|
||||
namespace EHR.Patches;
|
||||
|
||||
[HarmonyPatch(typeof(DeconSystem), nameof(DeconSystem.UpdateSystem))]
|
||||
public static class DeconSystemUpdateSystemPatch
|
||||
{
|
||||
[HarmonyPatch(typeof(DeconSystem), nameof(DeconSystem.UpdateSystem))]
|
||||
public static class DeconSystemUpdateSystemPatch
|
||||
public static void Prefix(DeconSystem __instance)
|
||||
{
|
||||
public static void Prefix(DeconSystem __instance)
|
||||
if (!AmongUsClient.Instance.AmHost) return;
|
||||
|
||||
if (Options.ChangeDecontaminationTime.GetBool())
|
||||
{
|
||||
if (!AmongUsClient.Instance.AmHost) return;
|
||||
|
||||
if (Options.ChangeDecontaminationTime.GetBool())
|
||||
float deconTime = Main.CurrentMap switch
|
||||
{
|
||||
float deconTime = Main.CurrentMap switch
|
||||
{
|
||||
MapNames.Mira => Options.DecontaminationTimeOnMiraHQ.GetFloat(),
|
||||
MapNames.Polus => Options.DecontaminationTimeOnPolus.GetFloat(),
|
||||
_ => 3f
|
||||
};
|
||||
MapNames.Mira => Options.DecontaminationTimeOnMiraHQ.GetFloat(),
|
||||
MapNames.Polus => Options.DecontaminationTimeOnPolus.GetFloat(),
|
||||
_ => 3f
|
||||
};
|
||||
|
||||
__instance.DoorOpenTime = deconTime;
|
||||
__instance.DeconTime = deconTime;
|
||||
}
|
||||
else
|
||||
{
|
||||
__instance.DoorOpenTime = 3f;
|
||||
__instance.DeconTime = 3f;
|
||||
}
|
||||
__instance.DoorOpenTime = deconTime;
|
||||
__instance.DeconTime = deconTime;
|
||||
}
|
||||
else
|
||||
{
|
||||
__instance.DoorOpenTime = 3f;
|
||||
__instance.DeconTime = 3f;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user