]> git.deb.at Git - rhonda/theotherroles.git/commitdiff
Version 2.6.6
authorthunderstorm584 <80977292+thunderstorm584@users.noreply.github.com>
Tue, 25 May 2021 16:01:00 +0000 (18:01 +0200)
committerthunderstorm584 <80977292+thunderstorm584@users.noreply.github.com>
Tue, 25 May 2021 16:01:00 +0000 (18:01 +0200)
README.md
Source Code/Main.cs
Source Code/TheOtherRoles.csproj
Source Code/UsablesPatch.cs

index 8d8d1deb6a95819e4f04b7bb791b24427d6239bd..a59d025b59dc0b720dad9100ed66052dd5e41283 100644 (file)
--- a/README.md
+++ b/README.md
@@ -33,6 +33,7 @@ The [Role Assignment](#role-assignment) sections explains how the roles are bein
 # Releases
 | Among Us - Version| Mod Version | Link |
 |----------|-------------|-----------------|
+| 2021.5.10s| v2.6.6| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v2.6.6/TheOtherRoles.zip)
 | 2021.5.10s| v2.6.5| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v2.6.5/TheOtherRoles.zip)
 | 2021.5.10s| v2.6.4| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v2.6.4/TheOtherRoles.zip)
 | 2021.5.10s| v2.6.3| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v2.6.3/TheOtherRoles.zip)
@@ -64,6 +65,9 @@ The [Role Assignment](#role-assignment) sections explains how the roles are bein
 <details>
   <summary>Click to show the Changelog</summary>
 
+**Version 2.6.6**
+- Fixed a bug introduced in v2.6.5 that caused all player to be able to use vents when the new option for spy was enabled
+
 **Version 2.6.5**
 - Added the ability to increase the number of tasks assigned to crewmates
 - New option: A role summary in the end screen (Client option)
index 8694ea6bf5e6cf71aee848ab0134d4f0400984a0..3c39aa8dd41dd3016702652fd5509512289a5741 100644 (file)
@@ -19,7 +19,7 @@ namespace TheOtherRoles
     public class TheOtherRolesPlugin : BasePlugin
     {
         public const string Id = "me.eisbison.theotherroles";
-        public const string VersionString = "2.6.5";
+        public const string VersionString = "2.6.6";
         public static System.Version Version = System.Version.Parse(VersionString);
 
         public Harmony Harmony { get; } = new Harmony(Id);
index 5c580c247158583073e64ffe1d19d58cda7b2b45..87afba8c5d235468b4488e1b8fec7e620dc8b750 100644 (file)
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
     <PropertyGroup>
         <TargetFramework>netstandard2.1</TargetFramework>
-        <Version>2.6.5</Version>
+        <Version>2.6.6</Version>
         <Description>TheOtherRoles</Description>
         <Authors>Eisbison</Authors>
     </PropertyGroup>
index 1eeeef7a296427ba9486eed72c89a459b8c19f7c..cc065f685510d82131ad3b276395eadbbfb5250d 100644 (file)
@@ -28,7 +28,7 @@ namespace TheOtherRoles
                 roleCouldUse = true;
             else if (Sidekick.canUseVents && Sidekick.sidekick != null && Sidekick.sidekick == @object)
                 roleCouldUse = true;
-            else if (Spy.canEnterVents && Spy.canEnterVents)
+            else if (Spy.canEnterVents && Spy.spy != null && Spy.spy == @object)
                 roleCouldUse = true;
             else if (pc.IsImpostor) {
                 if (Janitor.janitor != null && Janitor.janitor == PlayerControl.LocalPlayer)