diff --git a/EHR.csproj b/EHR.csproj index 29fabf9f1..4ee65e690 100644 --- a/EHR.csproj +++ b/EHR.csproj @@ -7,7 +7,7 @@ false EHR Gurge44 - preview + preview C:\Program Files\Epic Games\AmongUs true diff --git a/EHR.sln.DotSettings b/EHR.sln.DotSettings index 6c51ab2ab..782034ba4 100644 --- a/EHR.sln.DotSettings +++ b/EHR.sln.DotSettings @@ -1,25 +1,15 @@ - + SOLUTION - SUGGESTION - BaseClass + SUGGESTION + BaseClass False - 0 - 1 + 0 + 1 0 - TOGETHER_SAME_LINE - False - True - NEVER + TOGETHER_SAME_LINE + False + True + NEVER AFK ATK AU @@ -58,6 +48,7 @@ RR SE SK + SR SS SSCD TMG @@ -69,34 +60,21 @@ UI VN XOR - <Policy><Descriptor Staticness="Any" AccessRightKinds="Private, Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="non_field_members_should_be_pascal_case"><ElementKinds><Kind Name="PROPERTY" /><Kind Name="EVENT" /><Kind Name="METHOD" /></ElementKinds></Descriptor><Policy Inspect="False" Prefix="Get" Suffix="" Style="AaBb" /></Policy> - - True - <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Parameters"><ElementKinds><Kind Name="PARAMETER" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="aaBb"><ExtraRule Prefix="__" Suffix="" Style="aaBb" /></Policy></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Private, Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="non_field_members_should_be_pascal_case"><ElementKinds><Kind Name="PROPERTY" /><Kind Name="EVENT" /><Kind Name="METHOD" /></ElementKinds></Descriptor><Policy Inspect="False" Prefix="Get" Suffix="" Style="AaBb" /></Policy> + + True + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Parameters"><ElementKinds><Kind Name="PARAMETER" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="aaBb"><ExtraRule Prefix="__" Suffix="" Style="aaBb" /></Policy></Policy> False False - True - True - True - True - False - constant("System.Exception") - -1 - -1 - try + True + True + True + True + False + constant("System.Exception") + -1 + -1 + try { $SELECTION$ } diff --git a/Patches/LobbyPatch.cs b/Patches/LobbyPatch.cs index 79df99592..c3117b4ed 100644 --- a/Patches/LobbyPatch.cs +++ b/Patches/LobbyPatch.cs @@ -11,6 +11,8 @@ namespace EHR; public static class LobbyFixedUpdatePatch { private static GameObject Paint; + private static SpriteRenderer LeftEngineSR; + private static SpriteRenderer RightEngineSR; public static void Postfix() { @@ -30,12 +32,19 @@ public static class LobbyFixedUpdatePatch } } - var Engine1 = GameObject.Find("LeftEngine"); - if (Engine1 != null) Engine1.GetComponent().color = Color.green; - else Logger.Info("LeftEngine is null", "LobbyPatch"); - var Engine2 = GameObject.Find("RightEngine"); - if (Engine2 != null) Engine2.GetComponent().color = Color.red; - else Logger.Info("RightEngine is null", "LobbyPatch"); + if (LeftEngineSR == null || RightEngineSR == null) + { + var leftEngine = GameObject.Find("LeftEngine"); + if (leftEngine != null) LeftEngineSR = leftEngine.GetComponent(); + + var rightEngine = GameObject.Find("RightEngine"); + if (rightEngine != null) RightEngineSR = rightEngine.GetComponent(); + } + else + { + LeftEngineSR.color = Color.yellow; + RightEngineSR.color = Color.yellow; + } } catch (Exception e) { Utils.ThrowException(e); } }