mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
can't think of a name
This commit is contained in:
1 parent
644bab4024
commit
009772ceef
8 files changed
+8
-9
No files matched your search
@@ -417,7 +417,7 @@ static class ExtendedPlayerControl
|
||||
_ = new LateTask(() =>
|
||||
{
|
||||
pc.RpcDesyncRepairSystem(systemtypes, 16);
|
||||
if (Main.NormalOptions.MapId == 4) //Airship用
|
||||
if (Main.NormalOptions.MapId == 4) // Airship only
|
||||
pc.RpcDesyncRepairSystem(systemtypes, 17);
|
||||
}, 0.4f + delay, "Fix Desync Reactor");
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ public class HashAuth
|
||||
public readonly string HashValue;
|
||||
|
||||
private readonly string salt;
|
||||
private HashAlgorithm algorithm;
|
||||
private readonly HashAlgorithm algorithm;
|
||||
public HashAuth(string hashValue, string salt = null, HashAlgorithm algorithm = null)
|
||||
{
|
||||
HashValue = hashValue;
|
||||
|
||||
@@ -25,7 +25,7 @@ static class LocateArrow
|
||||
}
|
||||
}
|
||||
|
||||
static Dictionary<ArrowInfo, string> LocateArrows = new();
|
||||
static readonly Dictionary<ArrowInfo, string> LocateArrows = new();
|
||||
static readonly string[] Arrows = {
|
||||
"↑",
|
||||
"↗",
|
||||
|
||||
@@ -306,7 +306,7 @@ public class ModUpdater
|
||||
byte[] buffer = new byte[1024];
|
||||
long readLength = 0;
|
||||
int length;
|
||||
while ((length = await stream.ReadAsync(buffer, 0, buffer.Length)) != 0)
|
||||
while ((length = await stream.ReadAsync(buffer)) != 0)
|
||||
{
|
||||
// 写入到文件
|
||||
fileStream.Write(buffer, 0, length);
|
||||
|
||||
@@ -26,7 +26,7 @@ static class TargetArrow
|
||||
}
|
||||
}
|
||||
|
||||
static Dictionary<ArrowInfo, string> TargetArrows = new();
|
||||
static readonly Dictionary<ArrowInfo, string> TargetArrows = new();
|
||||
static readonly string[] Arrows = {
|
||||
"↑",
|
||||
"↗",
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace TOHE;
|
||||
public static class TemplateManager
|
||||
{
|
||||
private static readonly string TEMPLATE_FILE_PATH = "./TOHE_DATA/template.txt";
|
||||
private static Dictionary<string, Func<string>> _replaceDictionary = new()
|
||||
private static readonly Dictionary<string, Func<string>> _replaceDictionary = new()
|
||||
{
|
||||
["RoomCode"] = () => InnerNet.GameCode.IntToGameName(AmongUsClient.Instance.GameId),
|
||||
["PlayerName"] = () => DataManager.Player.Customization.Name,
|
||||
|
||||
@@ -160,8 +160,7 @@ public class GameOptionsMenuUpdatePatch
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
{
|
||||
object tab = list[i];
|
||||
string tabcolor = string.Empty;
|
||||
tabcolor = tab switch
|
||||
string tabcolor = tab switch
|
||||
{
|
||||
TabGroup.SystemSettings => Main.ModColor,
|
||||
TabGroup.GameSettings => "#59ef83",
|
||||
|
||||
@@ -1000,7 +1000,7 @@ internal class SelectRolesPatch
|
||||
GameOptionsSender.AllSenders.Add(new PlayerGameOptionsSender(pc));
|
||||
}
|
||||
|
||||
// ResetCamが必要なプレイヤーのリストにクラス化が済んでいない役職のプレイヤーを追加
|
||||
// Added players with unclassified roles to the list of players who require ResetCam.
|
||||
Main.ResetCamPlayerList.AddRange(Main.AllPlayerControls.Where(p => p.GetCustomRole() is CustomRoles.Arsonist or CustomRoles.Revolutionist or CustomRoles.Sidekick or CustomRoles.KB_Normal).Select(p => p.PlayerId));
|
||||
Utils.CountAlivePlayers(true);
|
||||
Utils.SyncAllSettings();
|
||||
|
||||
Reference in new issue
Block a user