Skip to content

Commit

Permalink
Added compatibility for Among Us v2021.6.30s
Browse files Browse the repository at this point in the history
  • Loading branch information
Brybry16 committed Sep 5, 2021
1 parent c21fba2 commit d953dd1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 deletions.
32 changes: 24 additions & 8 deletions BetterPolus/BetterPolus.csproj
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>1.1.2</Version>
<GameVersion>2021.3.31.3s</GameVersion>
<Mappings>NuclearPowered/Mappings:0.3.0</Mappings>
<Version>1.1.3</Version>

<Description>Mod allowing some enhancements in Polus Map</Description>
<Description>An Among Us mod that tweaks Polus, allowing a more balanced experience.</Description>
<Authors>Brybry</Authors>
</PropertyGroup>

<PropertyGroup Condition="'$(GamePlatform)' == 'Steam'">
<GameVersion>2021.6.30s</GameVersion>
<DefineConstants>$(DefineConstants);STEAM</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(GamePlatform)' == 'Itch'">
<GameVersion>2021.6.30i</GameVersion>
<DefineConstants>$(DefineConstants);ITCH</DefineConstants>
</PropertyGroup>

<ItemGroup>
<Deobfuscate Include="$(AmongUs)\BepInEx\plugins\Reactor-$(GameVersion).dll" />
<Reference Include="$(AmongUs)\BepInEx\core\*.dll">
<Private>false</Private>
</Reference>

<Reference Include="$(AmongUs)\BepInEx\unhollowed\*.dll">
<Private>false</Private>
</Reference>

<Reference Remove="$(AmongUs)\BepInEx\unhollowed\netstandard.dll;$(AmongUs)\BepInEx\unhollowed\Newtonsoft.Json.dll" />

<PackageReference Include="Reactor.OxygenFilter.MSBuild" Version="0.3.0" />
<Reference Include="$(AmongUs)\BepInEx\plugins\Reactor.dll" />
</ItemGroup>

<Target Name="Copy" AfterTargets="Reobfuscate">
<Copy SourceFiles="$(OutputPath)reobfuscated/$(AssemblyName)-$(GameVersion).dll" DestinationFolder="$(AmongUs)/BepInEx/plugins/" Condition="'$(Configuration)' == 'Debug'" />
<Target Name="Copy" AfterTargets="Build">
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll" DestinationFiles="$(AmongUs)/BepInEx/plugins/$(AssemblyName)-$(Version).dll" />
</Target>
</Project>
6 changes: 3 additions & 3 deletions BetterPolus/BetterPolusPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public override void Load()

ReactorVersionShower.TextUpdated += (text) =>
{
int index = text.Text.LastIndexOf('\n');
text.Text = text.Text.Insert(index == -1 ? text.Text.Length - 1 : index,
"\nLoaded [5E4CA6FF]BetterPolus v1.1.2-R []by Brybry");
int index = text.text.LastIndexOf('\n');
text.text = text.text.Insert(index == -1 ? text.text.Length - 1 : index,
"\nLoaded <color=#5E4CA6FF>BetterPolus v1.1.3-R</color> by Brybry");
};

Harmony.PatchAll();
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,20 @@ There are two ways to install the mod :
## Releases
| Among Us Version | Mod Version | All-in-one pack | DLL file |
| ---------------- | ----------- | :-------------: | :------: |
| v2021.6.30 | Ver. 1.1.3 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.3/BetterPolus_All-in-one-Pack-1.1.3.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.3/BetterPolus-1.1.3.dll)** |
| v2021.3.31.3 | Ver. 1.1.2 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.2/BetterPolus_All-in-one-Pack-1.1.2.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.2/BetterPolus-2021.3.31.3s.dll)** |
| v2021.3.5s | Ver. 1.1.1 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.1/BetterPolus_All-in-one-Pack-1.1.1.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.1/BetterPolus-2021.3.5s.dll)** |
| v2020.12.9s | Ver. 1.1 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1/BetterPolus_All-in-one-Pack-1.1.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1/BetterPolus-2020.12.9s.dll)** |
| v2020.12.9s | Ver. 1.0 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.0.0/BetterPolus_All-in-one-Pack.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.0.0/BetterPolus-2020.12.9s.dll)** |

### Changelog
<details>
<summary>Version 1.1.6</summary>
<ul>
<li>Added compatibility with Among Us v2021.6.30s</li>
</ul>
</details>

<details>
<summary>Version 1.1.2</summary>
<ul>
Expand Down

0 comments on commit d953dd1

Please sign in to comment.