Skip to content

Commit

Permalink
Fixed KillButton being enabled when the Sheriff is dead (updated to 1…
Browse files Browse the repository at this point in the history
….2.2)
  • Loading branch information
Brybry16 committed Mar 15, 2021
1 parent 52ab013 commit 71b8282
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,25 @@ Every player in your lobby need to install Reactor-Sheriff Mod. There are two wa

| Among Us Version | Mod Version | All-in-one pack | DLL file |
| :--------------: | :---------: | :-------------: | :------: |
| v2021.3.5s | Ver. 1.2.2-R |[**Download**](https://github.com/Brybry16/Reactor-Sheriff/releases/download/v1.2.2/ReactorSheriff-v1.2.2.zip) | [**Download**](https://github.com/Brybry16/Reactor-Sheriff/releases/download/v1.2.2/ReactorSheriff-2021.3.5s.dll) |
| v2021.3.5s | Ver. 1.2.1-R |[**Download**](https://github.com/Brybry16/Reactor-Sheriff/releases/download/v1.2.1/ReactorSheriff-v1.2.1.zip) | [**Download**](https://github.com/Brybry16/Reactor-Sheriff/releases/download/v1.2.1/ReactorSheriff-2021.3.5s.dll) |
| v2020.12.9s | Ver. 1.2-R |[**Download**](https://github.com/Brybry16/Reactor-Sheriff/releases/download/v1.2/ReactorSheriff-v1.2.zip) | [**Download**](https://github.com/Brybry16/Reactor-Sheriff/releases/download/v1.2/ReactorSheriff-2020.12.9s.dll) |
| v2020.12.9s | Ver. 1.1-R |[**Download**](https://github.com/Brybry16/Reactor-Sheriff/releases/download/v1.1/ReactorSheriff-v1.1.zip) | [**Download**](https://github.com/Brybry16/Reactor-Sheriff/releases/download/v1.1/ReactorSheriff-2020.12.9s.dll) |

<details>
<summary><b>Changelog</b></summary>
<h3>v1.2.2-R</h3>
<ul>
<li>Fixed KillButton being enabled when the Sheriff is dead</li>
</ul>

<h3>v1.2.1-R</h3>
<ul>
<li>The mod is now compatible with Among Us v2021.3.5</li>
<li>Fixed Sheriff being able use the Kill Button while in meeting</li>
<li>Stability improvements</li>
</ul>

<h3>v1.2-R</h3>
<ul>
<li>Fixed Sheriff being able to kill impostors in vent</li>
Expand Down
2 changes: 1 addition & 1 deletion ReactorSheriff/HudManagerPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static void Postfix(HudManager __instance)
PlayerControl.LocalPlayer.nameText.Color = new Color(1, (float)(204.0 / 255.0), 0, 1);


if (false || PlayerControlPatch.sheriffInTask || isMeetingHudActive)
if (PlayerControl.LocalPlayer.Data.AKOHOAJIHBE || PlayerControlPatch.sheriffInTask || isMeetingHudActive) // isDead
{
KillButton.gameObject.SetActive(false);
KillButton.isActive = false;
Expand Down
2 changes: 1 addition & 1 deletion ReactorSheriff/ReactorSheriff.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>1.2.1</Version>
<Version>1.2.2</Version>
<GameVersion>2021.3.5s</GameVersion>
<Mappings>NuclearPowered/Mappings:0.2.0</Mappings>

Expand Down
2 changes: 1 addition & 1 deletion ReactorSheriff/VersionShowerPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static class VersionShowerPatch
// Methods
public static void Postfix(VersionShower __instance)
{
__instance.text.Text += "\nLoaded [F7C600FF]Sheriff Mod v1.2.1-R[] by Brybry";
__instance.text.Text += "\nLoaded [F7C600FF]Sheriff Mod v1.2.2-R[] by Brybry";
}
}

Expand Down

0 comments on commit 71b8282

Please sign in to comment.