Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop-5.1.1 #1295

Merged
merged 8 commits into from
Sep 5, 2023
5 changes: 5 additions & 0 deletions Modules/OptionSaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ private static void LoadOptionsData(SerializableOptionsData serializableOptionsD
/// <summary>現在のオプションをjsonファイルに保存</summary>
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);
}
Expand Down
2 changes: 1 addition & 1 deletion README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ AmongUsバージョン : **2023.7.12**
## アナウンス
- シェリフ、アーソニスト、ジャッカル等の役職がドア閉めを行えますが、システムで制限することができないため使わないようお願いします。
- 暗転対策関係で追放画面で死人がチャットをすると見えますが、バグではありません。
- シェリフ、アーソニスト、ジャッカルのいずれかが有効な場合、バニラの「追放を確認」オプションが正常に動作しません。
- シェリフ、アーソニスト、ジャッカル、ペスト医師のいずれかが有効な場合、バニラの「追放を確認」オプションが正常に動作しません。

## 機能
### ホットキー
Expand Down
5 changes: 4 additions & 1 deletion Roles/Impostor/Stealth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down