From 9e744ddc153cf3ce511bc69629eeb64b23b6d07f Mon Sep 17 00:00:00 2001 From: Hyz-sui <86903430+Hyz-sui@users.noreply.github.com> Date: Mon, 4 Sep 2023 23:07:35 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=E9=9D=9E=E3=83=9B=E3=82=B9=E3=83=88?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=82=AA=E3=83=97=E3=82=B7=E3=83=A7=E3=83=B3?= =?UTF-8?q?=E3=82=92=E4=BF=9D=E5=AD=98=E3=81=97=E3=81=AA=E3=81=84=E3=82=88?= =?UTF-8?q?=E3=81=86=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Modules/OptionSaver.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/OptionSaver.cs b/Modules/OptionSaver.cs index d27c529b7..3e0d71ad3 100644 --- a/Modules/OptionSaver.cs +++ b/Modules/OptionSaver.cs @@ -82,6 +82,11 @@ private static void LoadOptionsData(SerializableOptionsData serializableOptionsD /// 現在のオプションをjsonファイルに保存 public static void Save() { + // 接続済みで,ホストじゃなければ保存しない + if (AmongUsClient.Instance != null && !AmongUsClient.Instance.AmHost) + { + return; + } var jsonString = JsonSerializer.Serialize(GenerateOptionsData(), new JsonSerializerOptions { WriteIndented = true, }); File.WriteAllText(OptionSaverFileInfo.FullName, jsonString); } From abda787f7cddc6bfa6358ca0aebc956ab9b5bbbc Mon Sep 17 00:00:00 2001 From: Hyz-sui <86903430+Hyz-sui@users.noreply.github.com> Date: Mon, 4 Sep 2023 23:21:42 +0900 Subject: [PATCH 2/4] =?UTF-8?q?desyncimpostor=E3=81=A7=E8=BF=BD=E6=94=BE?= =?UTF-8?q?=E7=A2=BA=E8=AA=8D=E3=81=8C=E5=8B=95=E3=81=8B=E3=81=AA=E3=81=84?= =?UTF-8?q?=E6=B3=A8=E6=84=8F=E6=9B=B8=E3=81=8D=E3=81=AB=E3=83=9A=E3=82=B9?= =?UTF-8?q?=E3=83=88=E5=8C=BB=E5=B8=AB=E3=82=92=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README-EN.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README-EN.md b/README-EN.md index 8ca1b58bb..f42f2a460 100644 --- a/README-EN.md +++ b/README-EN.md @@ -40,7 +40,7 @@ Note that if a player other than the host plays with this mod installed, the fol ## Announcements - Sheriff, Arsonist, Jackal, and other roles can close doors, but please don't use it because the system can't limit it. - The dead player chat can be seen when exile screen by anti blackout, but this is not a bug. -- The "Confirm Ejects" option will not work if any of the following roles are enabled: Sheriff, Arsonist, Jackal. +- The "Confirm Ejects" option will not work if any of the following roles are enabled: Sheriff, Arsonist, Jackal, PlagueDoctor. ## Features ### Hotkeys diff --git a/README.md b/README.md index 9f6645b63..96af24083 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ AmongUsバージョン : **2023.7.12** ## アナウンス - シェリフ、アーソニスト、ジャッカル等の役職がドア閉めを行えますが、システムで制限することができないため使わないようお願いします。 - 暗転対策関係で追放画面で死人がチャットをすると見えますが、バグではありません。 -- シェリフ、アーソニスト、ジャッカルのいずれかが有効な場合、バニラの「追放を確認」オプションが正常に動作しません。 +- シェリフ、アーソニスト、ジャッカル、ペスト医師のいずれかが有効な場合、バニラの「追放を確認」オプションが正常に動作しません。 ## 機能 ### ホットキー From 9a94998950c258676659c8f7fbf6aeb78f8518f1 Mon Sep 17 00:00:00 2001 From: Hyz-sui <86903430+Hyz-sui@users.noreply.github.com> Date: Mon, 4 Sep 2023 23:35:20 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BC=9A=E8=AD=B0=E9=96=8B=E5=A7=8B?= =?UTF-8?q?=E6=99=82=E3=81=AB=E9=9D=9E=E3=83=9B=E3=82=B9=E3=83=88=E3=82=82?= =?UTF-8?q?ResetDarkenState=E3=82=92=E5=91=BC=E3=82=93=E3=81=A7=E3=81=84?= =?UTF-8?q?=E3=81=9F=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Roles/Impostor/Stealth.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Roles/Impostor/Stealth.cs b/Roles/Impostor/Stealth.cs index f6385207f..fc750330b 100644 --- a/Roles/Impostor/Stealth.cs +++ b/Roles/Impostor/Stealth.cs @@ -112,7 +112,10 @@ public override void OnFixedUpdate(PlayerControl player) } public override void OnStartMeeting() { - ResetDarkenState(); + if (AmongUsClient.Instance.AmHost) + { + ResetDarkenState(); + } } private void RpcDarken(SystemTypes? roomType) { From 7c3b8e9b11d270fdb871e1d8de29de003e481012 Mon Sep 17 00:00:00 2001 From: Hyz-sui <86903430+Hyz-sui@users.noreply.github.com> Date: Tue, 5 Sep 2023 18:50:32 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=82=925.1.1=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cs b/main.cs index 311e033e3..58a687e3d 100644 --- a/main.cs +++ b/main.cs @@ -50,7 +50,7 @@ public class Main : BasePlugin // ========== //Sorry for many Japanese comments. public const string PluginGuid = "com.emptybottle.townofhost"; - public const string PluginVersion = "5.1.0"; + public const string PluginVersion = "5.1.1"; // サポートされている最低のAmongUsバージョン public static readonly string LowestSupportedVersion = "2023.7.11"; public Harmony Harmony { get; } = new Harmony(PluginGuid);