Skip to content

Commit

Permalink
Update v4.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallöris committed Aug 25, 2022
1 parent 639cca8 commit 1814a69
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 75 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion TheOtherRoles/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public static void setDefaultLook(this PlayerControl target) {

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);

Expand Down
2 changes: 1 addition & 1 deletion TheOtherRoles/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
30 changes: 0 additions & 30 deletions TheOtherRoles/Modules/CustomOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,36 +432,6 @@ public static void Postfix(GameOptionsMenu __instance) {
}
}

[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
Expand Down
72 changes: 37 additions & 35 deletions TheOtherRoles/Resources/ThirdParty/Submerged/LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,21 @@ 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.

---


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
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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);
Expand All @@ -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.
Expand Down Expand Up @@ -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.

Expand All @@ -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.
c. Exemptions from this License or alternative licenses may be negotiated with the Licensor.
Binary file modified TheOtherRoles/Resources/ThirdParty/Submerged/Submerged.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions TheOtherRoles/TheOtherRoles.csproj
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions TheOtherRoles/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1814a69

Please sign in to comment.