can't think of a name

This commit is contained in:
Gurge44 committed 2023-11-06 20:30:31 +01:00
1 parent 644bab4024
commit 009772ceef
8 files changed
+8 -9

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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;
+1 -1
View File
@@ -25,7 +25,7 @@ static class LocateArrow
}
}
static Dictionary<ArrowInfo, string> LocateArrows = new();
static readonly Dictionary<ArrowInfo, string> LocateArrows = new();
static readonly string[] Arrows = {
"↑",
"↗",
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -26,7 +26,7 @@ static class TargetArrow
}
}
static Dictionary<ArrowInfo, string> TargetArrows = new();
static readonly Dictionary<ArrowInfo, string> TargetArrows = new();
static readonly string[] Arrows = {
"↑",
"↗",
+1 -1
View File
@@ -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,
+1 -2
View File
@@ -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",
+1 -1
View File
@@ -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();