Skip to content

Commit

Permalink
Merge pull request #1295 from tukasa0001/develop-5.1.1
Browse files Browse the repository at this point in the history
Develop-5.1.1
  • Loading branch information
Hyz-sui authored Sep 5, 2023
2 parents f137dd9 + 138667b commit 357f7b5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
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

0 comments on commit 357f7b5

Please sign in to comment.