]> git.deb.at Git - rhonda/theotherroles.git/commitdiff
Update v4.1.7
authorMallöris <|||||@||.||>
Thu, 25 Aug 2022 17:05:58 +0000 (19:05 +0200)
committerMallöris <|||||@||.||>
Thu, 25 Aug 2022 17:05:58 +0000 (19:05 +0200)
README.md
TheOtherRoles/Helpers.cs
TheOtherRoles/Main.cs
TheOtherRoles/Modules/CustomOptions.cs
TheOtherRoles/Resources/ThirdParty/Submerged/LICENSE.txt
TheOtherRoles/Resources/ThirdParty/Submerged/Submerged.dll
TheOtherRoles/TheOtherRoles.csproj
TheOtherRoles/packages.lock.json

index 284d9464ef6e5c1e48d453f3e64a8fc0915ac057..7816a439fe75b30d998a112196d53f6a014ce86a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -40,8 +40,9 @@ The [Role Assignment](#role-assignment) sections explains how the roles are bein
 # Releases
 | Among Us - Version| Mod Version | Link |
 |----------|-------------|-----------------|
-| 2022.6.21, 2022.7.12| v4.1.6| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v4.1.6/TheOtherRoles.zip)
-| 2022.6.21, 2022.7.12| v4.1.5| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v4.1.5/TheOtherRoles.zip)
+| 2022.8.24| v4.1.7| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v4.1.7/TheOtherRoles.zip)
+| 2022.6.21| v4.1.6| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v4.1.6/TheOtherRoles.zip)
+| 2022.6.21| v4.1.5| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v4.1.5/TheOtherRoles.zip)
 | 2022.3.29| v4.1.4| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v4.1.4/TheOtherRoles.zip)
 | 2022.3.29| v4.1.3| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v4.1.3/TheOtherRoles.zip)
 | 2022.3.29| v4.1.2| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v4.1.2/TheOtherRoles.zip)
@@ -107,7 +108,10 @@ The [Role Assignment](#role-assignment) sections explains how the roles are bein
 # Changelog
 <details>
   <summary>Click to show the Changelog</summary>
-  
+
+**Version 4.1.7**
+- Updated to Among Us version 2022.8.24
+
 **Version 4.1.6**  
 - Added Sound Effects: Most buttons / role funcionalities now have a sound!
 - Added a mod option: Enable Sound Effects  
index 8c57aeb045cc26b05b933d83a9439a7abd306876..b7d7fc01d3016350079a34255aebb72d8f92c8bb 100644 (file)
@@ -261,7 +261,7 @@ namespace TheOtherRoles {
 
         public static void setLook(this PlayerControl target, String playerName, int colorId, string hatId, string visorId, string skinId, string petId) {
             target.RawSetColor(colorId);
-            target.RawSetVisor(visorId);
+            target.RawSetVisor(visorId, colorId);
             target.RawSetHat(hatId, colorId);
             target.RawSetName(hidePlayerName(CachedPlayer.LocalPlayer.PlayerControl, target) ? "" : playerName);
 
index 4aad1be787e4dad1181623eed032379351840ef3..df962763f61a896b7f6a488943ef286f87a5166d 100644 (file)
@@ -23,7 +23,7 @@ namespace TheOtherRoles
     public class TheOtherRolesPlugin : BasePlugin
     {
         public const string Id = "me.eisbison.theotherroles";
-        public const string VersionString = "4.1.6";
+        public const string VersionString = "4.1.7";
 
         public static Version Version = Version.Parse(VersionString);
         internal static BepInEx.Logging.ManualLogSource Logger;
index ad080bd32493acda91b981ce949b697c3306afbe..7665ece8a89f59233604921b9219cf643bcb903f 100644 (file)
@@ -432,36 +432,6 @@ namespace TheOtherRoles {
         }
     }
 
-    [HarmonyPatch(typeof(GameSettingMenu), nameof(GameSettingMenu.Start))]
-    class GameSettingMenuStartPatch {
-        public static void Prefix(GameSettingMenu __instance) {
-            __instance.HideForOnline = new Transform[]{};
-        }
-
-        public static void Postfix(GameSettingMenu __instance) {
-            // Setup mapNameTransform
-            var mapNameTransform = __instance.AllItems.FirstOrDefault(x => x.name.Equals("MapName", StringComparison.OrdinalIgnoreCase));
-            if (mapNameTransform == null) return;
-            var options = new Il2CppSystem.Collections.Generic.List<Il2CppSystem.Collections.Generic.KeyValuePair<string, int>>();
-            for (int i = 0; i < Constants.MapNames.Length; i++) {
-                if (i == 3) continue; // Ignore dlekS
-                var kvp = new Il2CppSystem.Collections.Generic.KeyValuePair<string, int>();
-                kvp.key = Constants.MapNames[i];
-                kvp.value = i;
-                options.Add(kvp);
-            }
-            mapNameTransform.GetComponent<KeyValueOption>().Values = options;
-            mapNameTransform.gameObject.active = true;
-
-            foreach (Transform i in __instance.AllItems.ToList()) {
-                float num = -0.5f;
-                if (i.name.Equals("MapName", StringComparison.OrdinalIgnoreCase)) num = -0.25f;
-                if (i.name.Equals("NumImpostors", StringComparison.OrdinalIgnoreCase) || i.name.Equals("ResetToDefault", StringComparison.OrdinalIgnoreCase)) num = 0f;
-                i.position += new Vector3(0, num, 0);
-            }
-            __instance.Scroller.ContentYBounds.max += 0.5F;
-        }
-    }
 
     [HarmonyPatch] 
     class GameOptionsDataPatch
index 85a2e8eba1d1554ae1fdaf40f66fe27f205ce5b2..d789a135f40497076c9f5eed0bd3102e0bded2cc 100644 (file)
@@ -16,14 +16,13 @@ monetize them.
 
 This is a human-readable summary of (and not a substitute for) the license.
 
-- You may share, distribute, or include Submerged inon-commerciallyi in your own modpack 
-or mod downloads, under the condition that you do not modify Submerged in any capacity, 
-(including physically modifying the assembly or patching the mod) with the exception of 
-ensuring compatibility between Submerged and your mod.
-  - For clarification, you are still allowed to request payments, donations, etc. or have
-    premium-only features in your mod, but you may not sell users the access to play on
-    Submerged with your modmodpack.
-- If Submerged stops being distributed, you must remove it from your modmodpack as well. 
+You may share, distribute, or include Submerged in your own modpack or mod downloads, under
+the following conditions:
+- You may not modify the Submerged assembly in any capacity.
+    - You may, however, use Harmony to patch the Submerged assembly, as long as your
+    modifications are for ensuring compatibility with other mods.
+- You may not sell users the access to play on Submerged with your mod/modpack. Any
+features your mod/modpack offers on the base-game maps cannot be paywalled for Submerged.
 
 ---
 
@@ -31,7 +30,7 @@ ensuring compatibility between Submerged and your mod.
                     Copyright © 2020-2022 5UP AND ASSOCIATES
 
 By exercising the Licensed Rights (defined below), You accept and agree to be bound by the
-terms and conditions of this license (License). To the extent this License may be 
+terms and conditions of this license ("License"). To the extent this License may be 
 interpreted as a contract, You are granted the Licensed Rights in consideration of Your
 acceptance of these terms and conditions, and the Licensor grants You such rights in
 consideration of benefits the Licensor receives from making the Licensed Material available
@@ -46,7 +45,8 @@ b. You means the individual or entity exercising the Licensed Rights under this
 License. Your has a corresponding meaning.
 
 c. Licensed Material means the technological or artistic work, or other material to which
-the Licensor applied this License.
+the Licensor applied this License. Screenshots and recordings of the Licensed Material are
+not considered part of the Licensed Material.
 
 d. Licensed Rights means the rights granted to You subject to the terms and conditions of
 this License and that the Licensor has authority to license.
@@ -74,7 +74,7 @@ a. License grant
     Limitations apply to Your use, this Public License does not apply, and You do not
     need to comply with its terms and conditions.
 
-    3. Term. The term of this Public License is specified in Section 5(a).
+    3. Term. The term of this Public License is specified in Section 5.
 
     4. Downstream recipients.
         A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed
@@ -96,8 +96,8 @@ Your exercise of the Licensed Rights is expressly made subject to the following
 
 a. Attribution;
 
-    1. If You Share the Licensed Material, You must
-        A. retain the following if it is supplied by the Licensor with the Licensed Material
+    1. If You Share the Licensed Material, You must:
+        A. retain the following if it is supplied by the Licensor with the Licensed Material:
             i. identification of the creator(s) of the Licensed Material and any others
             designated to receive attribution, in any reasonable manner requested by the
             Licensor (including by pseudonym if designated);
@@ -109,15 +109,18 @@ a. Attribution;
     it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a
     resource that includes the required information.
 
-    3. If requested by the Licensor, You must remove any of the information required by 
-    Section 3(a)(1)(A) to the extent reasonably practicable.
-
 b. No Modification.
 
-    1. If You Share the Licensed Material, You must
-        A. not modify the Licensed Material in any capacity, including digital modifications
-        of the Licensed Material, and extensions or attachments to the Licensed Material
-        which modify how the Licensed Material operates.
+    1. If You Share the Licensed Material, You must:
+        A. not modify the files contained within the Licensed Material in any capacity,
+        such as digital modifications of the Licensed Material.
+        B. not modify the operation of the files contained within the Licensed Material by
+        any means, such as runtime DLL injection or patching, unless the modifications were
+        made with the intention of facilitating compatibility between the Licensed Material
+        and other software.
+        C. ensure that other software shared alongside the Licensed Material, if present,
+        does not include any features that are generally available, but require payment to
+        be used in conjunction with the Licensed Material.
 
 
     SECTION 4 – Disclaimer of Warranties and Limitation of Liability.
@@ -147,24 +150,23 @@ disclaimer and waiver of all liability.
     SECTION 5 – Term and Termination.
 
 a. If You fail to comply with this License, then Your rights under this License terminate
-automatically. The Licensor may also choose to terminate Your rights under License at any
-time, without specifying a reason.
-
-b. Where Your right to use the Licensed Material has terminated under Section 5(a), it 
-reinstates
-    1. automatically as of the date the violation is cured, provided it is cured within 
-    15 days of Your discovery of the violation; or
+automatically.
+    • Where Your right to use the Licensed Material has terminated under Section 5(a), it 
+reinstates:
+    1. automatically as of the date the violation is cured, provided it is cured within 7 
+    days of Your discovery of the violation; or
     2. upon express reinstatement by the Licensor.
 
-For the avoidance of doubt, this Section 5(b) does not affect any right the Licensor may have
-to seek remedies for Your violations of this License.
+b. The Licensor may choose to terminate Your rights under License at any time, without
+specifying a reason.
+    • Where Your right to use the Licensed Material has terminated under Section 5(a), it 
+reinstates only upon express reinstatement by the Licensor.
 
-c. The Licensor may offer the Licensed Material under separate terms or conditions; however,
-doing so will not terminate this License.
+c. For the avoidance of doubt, the Sections 5(a) and 5(b) do not affect any right the
+Licensor may have to seek remedies for Your violations of this License.
 
-d. The Licensor may choose to stop distributing the Licensed Material at any time. In doing
-so, Your rights under License will be terminated unless they are expressly reinstated by the
-Licensor.
+d. The Licensor may offer the Licensed Material under separate terms or conditions; however,
+doing so will not terminate this License.
 
 e. Sections 1, 4, 5, and 6 survive termination of this License.
 
@@ -176,4 +178,4 @@ communicated by You unless expressly agreed.
 b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated
 herein are separate from and independent of the terms and conditions of this License.
 
-c. Exemptions from this License may be negotiated with the Licensor.
\ No newline at end of file
+c. Exemptions from this License or alternative licenses may be negotiated with the Licensor.
\ No newline at end of file
index 4be122568116db2e0095789c8071a0f07dc677b9..bc6f4e741679aae4a960d4f666f1168e47a4f7b3 100644 (file)
Binary files a/TheOtherRoles/Resources/ThirdParty/Submerged/Submerged.dll and b/TheOtherRoles/Resources/ThirdParty/Submerged/Submerged.dll differ
index 05ad58b05a3e2d3f5ac53772f7e19cb785574a65..abb258102dc0044ed83e0ccd8c0288360934d8d9 100644 (file)
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
     <PropertyGroup>
         <TargetFramework>netstandard2.1</TargetFramework>
-        <Version>4.1.6</Version>
+        <Version>4.1.7</Version>
         <Description>TheOtherRoles</Description>
         <Authors>Eisbison</Authors>
                <LangVersion>latest</LangVersion>
@@ -14,7 +14,7 @@
     </ItemGroup>
 
     <ItemGroup>
-        <PackageReference Include="AmongUs.GameLibs.Steam" Version="2022.6.21" />
+        <PackageReference Include="AmongUs.GameLibs.Steam" Version="2022.8.23" />
         <PackageReference Include="BepInEx.IL2CPP" Version="6.0.0-be.559" />
         <PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="1.1.1" />
     </ItemGroup>
index 911b1d51ee2883a9e0c92a0018caa7843501018e..8a1d1d4ef2c88603476a24de4c01ca4dbe0a5304 100644 (file)
@@ -4,9 +4,9 @@
     ".NETStandard,Version=v2.1": {
       "AmongUs.GameLibs.Steam": {
         "type": "Direct",
-        "requested": "[2022.6.21, )",
-        "resolved": "2022.6.21",
-        "contentHash": "l5lB5cTEBRWW+WNOso11mT8csmoZK7CUEqTkACSTwQbxtMQyZN9YORNxkJmtOD7pZnNkbWJ3dLAvQ6pMUsFDsQ=="
+        "requested": "[2022.8.23, )",
+        "resolved": "2022.8.23",
+        "contentHash": "baY5JO6dbdOAZ0VTtGX0xre6/BlDdreJDAH8boCKZt3JTAcn+eeH+l8mUZRC9eCJOODUik2C0TTAt5AqBmYtZg=="
       },
       "BepInEx.IL2CPP": {
         "type": "Direct",