Skip to content

Commit

Permalink
Global change all files to utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoCat233 committed Jan 15, 2025
1 parent 27f6636 commit ea726df
Show file tree
Hide file tree
Showing 319 changed files with 338 additions and 338 deletions.
4 changes: 2 additions & 2 deletions GameModes/FFAManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using TOHE.Modules;
using UnityEngine;
using static TOHE.Translator;
Expand Down Expand Up @@ -513,4 +513,4 @@ public static void Postfix()
}
}
}
}
}
2 changes: 1 addition & 1 deletion GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


// For global using
// They will be used by default throughout the project
// it is recommended to add only those that are used most often
Expand Down
2 changes: 1 addition & 1 deletion Helpers/EnumerationHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Linq.Expressions;

Expand Down
2 changes: 1 addition & 1 deletion Helpers/Il2CppHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Il2CppInterop.Runtime.InteropTypes;
using Il2CppInterop.Runtime.InteropTypes;

namespace TOHE;

Expand Down
2 changes: 1 addition & 1 deletion Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;

namespace TOHE;

Expand Down
2 changes: 1 addition & 1 deletion Helpers/WriterHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//using Hazel;
//using Hazel;

//namespace TOHE;

Expand Down
2 changes: 1 addition & 1 deletion Modules/AntiBlackout.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AmongUs.GameOptions;
using AmongUs.GameOptions;
using Hazel;
using System;
using System.Runtime.CompilerServices;
Expand Down
2 changes: 1 addition & 1 deletion Modules/BAUPlayersData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


namespace TOHE.Modules;

public class BAUPlayersData
Expand Down
2 changes: 1 addition & 1 deletion Modules/ClientOptionItem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using BepInEx.Configuration;
using BepInEx.Configuration;
using System;
using UnityEngine;
using Object = UnityEngine.Object;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Cloud.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Net.Sockets;
using System.Text;
Expand Down
2 changes: 1 addition & 1 deletion Modules/CriticalErrorManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using static TOHE.Translator;

namespace TOHE.Modules;
Expand Down
2 changes: 1 addition & 1 deletion Modules/CustomNetObject.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using InnerNet;
using System;
using UnityEngine;
Expand Down
2 changes: 1 addition & 1 deletion Modules/CustomSounds.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using System;
using System.IO;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion Modules/DelayNetworkedData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using InnerNet;
using System;
using UnityEngine;
Expand Down
2 changes: 1 addition & 1 deletion Modules/DevManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.IO;
using System.IO;

namespace TOHE;

Expand Down
2 changes: 1 addition & 1 deletion Modules/DisableDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace TOHE;

//参考元 : https://github.com/ykundesu/SuperNewRoles/blob/master/SuperNewRoles/Mode/SuperHostRoles/BlockTool.cs
//ÕÅé×ÇâÕàâ : https://github.com/ykundesu/SuperNewRoles/blob/master/SuperNewRoles/Mode/SuperHostRoles/BlockTool.cs
class DisableDevice
{
public static bool DoDisable => Options.DisableDevices.GetBool();
Expand Down
2 changes: 1 addition & 1 deletion Modules/Dispatcher.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;

namespace TOHE.Modules;
Expand Down
2 changes: 1 addition & 1 deletion Modules/EAC.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using InnerNet;
using System;
using static TOHE.Translator;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Extensions/CollectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;

namespace TOHE;

Expand Down
2 changes: 1 addition & 1 deletion Modules/HazelExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using UnityEngine;

//Thanks EHR - https://github.com/Gurge44/EndlessHostRoles/blob/main/Modules/Extensions/HazelExtensions.cs
Expand Down
2 changes: 1 addition & 1 deletion Modules/KillTimerManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;

namespace TOHE.Modules;
Expand Down
4 changes: 2 additions & 2 deletions Modules/ModUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static string Get(string url)
Stream stream = res.Content.ReadAsStream();
try
{
//获取内容
//ÞÄÀÕÅûÕåàÕ«╣
using StreamReader reader = new(stream);
result = reader.ReadToEnd();
}
Expand Down Expand Up @@ -259,7 +259,7 @@ public static bool NewVersionCheck()
{
DirectoryInfo di = new("TOH_DATA");
di.Delete(true);
Logger.Warn("Deleting old data:TOH_DATA", "NewVersionCheck");
Logger.Warn("Deleting old data´╝ÜTOH_DATA", "NewVersionCheck");
}
}
catch (Exception ex)
Expand Down
2 changes: 1 addition & 1 deletion Modules/NameNotifyManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using UnityEngine;

namespace TOHE;
Expand Down
2 changes: 1 addition & 1 deletion Modules/OptionItem/OptionItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public OptionItem SetParent(OptionItem parent) => Do(i =>
public OptionItem RegisterUpdateValueEvent(EventHandler<UpdateValueEventArgs> handler)
=> Do(i => UpdateValueEvent += handler);

// 置き換え辞書
// þ¢«ÒüìµÅøÒüêÞ¥×µø©
public OptionItem AddReplacement((string key, string value) kvp)
=> Do(i =>
{
Expand Down
2 changes: 1 addition & 1 deletion Modules/OptionItem/StringOptionItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public int GetChance()
//For 0% or 100%
if (Selections.Length == 2) return CurrentValue * 100;

//TOHE’s career generation mode
//TOHEΓÇÖs career generation mode
if (Selections.Length == 3) return CurrentValue;

//For 0% to 100% or 5% to 100%
Expand Down
2 changes: 1 addition & 1 deletion Modules/OptionSaver.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using System.Text.Json;

namespace TOHE.Modules;
Expand Down
2 changes: 1 addition & 1 deletion Modules/OutfitManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TOHE.Modules;
namespace TOHE.Modules;

public static class OutfitManager
{
Expand Down
2 changes: 1 addition & 1 deletion Modules/RehostManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AmongUs.GameOptions;
using AmongUs.GameOptions;
using InnerNet;
using TMPro;
using UnityEngine;
Expand Down
2 changes: 1 addition & 1 deletion Modules/SpamManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using static TOHE.Translator;
using static TOHE.Translator;

namespace TOHE;

Expand Down
2 changes: 1 addition & 1 deletion Modules/VersionChecker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;

namespace TOHE.Modules;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Zoom.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;

namespace TOHE;
Expand Down
2 changes: 1 addition & 1 deletion Patches/AnnouncementPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AmongUs.Data;
using AmongUs.Data;
using AmongUs.Data.Player;
using Assets.InnerNet;
using BepInEx.Unity.IL2CPP.Utils.Collections;
Expand Down
2 changes: 1 addition & 1 deletion Patches/AprilFoolsModePatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Il2CppSystem;
using Il2CppSystem;
using static CosmeticsLayer;

namespace TOHE.Patches;
Expand Down
2 changes: 1 addition & 1 deletion Patches/ClientOptionsPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace TOHE;

//��Դ��https://github.com/tukasa0001/TownOfHost/pull/1265
//锟斤拷源锟斤拷https://github.com/tukasa0001/TownOfHost/pull/1265
[HarmonyPatch(typeof(OptionsMenuBehaviour), nameof(OptionsMenuBehaviour.Start))]
public static class OptionsMenuBehaviourStartPatch
{
Expand Down
2 changes: 1 addition & 1 deletion Patches/CrowdedPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AmongUs.GameOptions;
using AmongUs.GameOptions;
using Il2CppInterop.Runtime.Attributes;
using System;
using TMPro;
Expand Down
2 changes: 1 addition & 1 deletion Patches/DeconSystemPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TOHE.Patches;
namespace TOHE.Patches;

[HarmonyPatch(typeof(DeconSystem), nameof(DeconSystem.UpdateSystem))]
public static class DeconSystemUpdateSystemPatch
Expand Down
2 changes: 1 addition & 1 deletion Patches/DialogueBoxPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TOHE.Patches;
namespace TOHE.Patches;

[HarmonyPatch(typeof(DialogueBox))]
internal class DialogueBoxPatch
Expand Down
2 changes: 1 addition & 1 deletion Patches/DisconnectPenaltyPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TOHE.Patches
namespace TOHE.Patches
{
[HarmonyPatch(typeof(StatsManager), nameof(StatsManager.BanMinutesLeft), MethodType.Getter)]
public static class DisconnectPenaltyPatch
Expand Down
2 changes: 1 addition & 1 deletion Patches/DleksPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;

namespace TOHE.Patches;

Expand Down
2 changes: 1 addition & 1 deletion Patches/ExilePatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AmongUs.Data;
using AmongUs.Data;
using System;
using TOHE.Roles.Core;
using TOHE.Roles.Neutral;
Expand Down
2 changes: 1 addition & 1 deletion Patches/GameSettingMenuPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using TMPro;
using UnityEngine;
using static TOHE.Translator;
Expand Down
2 changes: 1 addition & 1 deletion Patches/GuardAngelPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TOHE;
namespace TOHE;
internal class GuardAngelPatch
{
[HarmonyPatch(typeof(MeetingIntroAnimation), nameof(MeetingIntroAnimation.Start))]
Expand Down
2 changes: 1 addition & 1 deletion Patches/HauntMenuMinigamePatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using TOHE.Roles.Crewmate;
using TOHE.Roles.Crewmate;
using TOHE.Roles.Impostor;

namespace TOHE.Patches;
Expand Down
2 changes: 1 addition & 1 deletion Patches/HideNSeek/CheckGameEndPatchHnS.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TOHE.Patches.HideNSeek;
namespace TOHE.Patches.HideNSeek;

[HarmonyPatch(typeof(LogicGameFlowHnS), nameof(LogicGameFlowHnS.CheckEndCriteria))]
class GameEndCheckerForHnS
Expand Down
2 changes: 1 addition & 1 deletion Patches/HideNSeek/PlayerControlPatchHnS.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading.Tasks;
using TOHE.Modules;
using static TOHE.Translator;
Expand Down
4 changes: 2 additions & 2 deletions Patches/HudPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static void Postfix(HudManager __instance)

var player = PlayerControl.LocalPlayer;
if (player == null) return;
//壁抜け
//Õúüµè£Òüæ
if (Input.GetKeyDown(KeyCode.LeftControl))
{
if ((!AmongUsClient.Instance.IsGameStarted || !GameStates.IsOnlineGame)
Expand All @@ -35,7 +35,7 @@ public static void Postfix(HudManager __instance)
player.Collider.offset = new Vector2(0f, 127f);
}
}
//壁抜け解除
//Õúüµè£Òüæ×ğúÚÖñ
if (player.Collider.offset.y == 127f)
{
if (!Input.GetKey(KeyCode.LeftControl) || (AmongUsClient.Instance.IsGameStarted && GameStates.IsOnlineGame))
Expand Down
2 changes: 1 addition & 1 deletion Patches/HudSpritePatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using TOHE.Roles.Core;
using TOHE.Roles.Core;
using UnityEngine;

namespace TOHE;
Expand Down
2 changes: 1 addition & 1 deletion Patches/InnerNetClientPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using InnerNet;
using TOHE.Modules;

Expand Down
2 changes: 1 addition & 1 deletion Patches/IntroPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private static System.Collections.IEnumerator CoLoggerGameInfo()
foreach (OptionItem o in OptionItem.AllOptions)
{
if (!o.IsHiddenOn(Options.CurrentGameMode) && (o.Parent?.GetBool() ?? !o.GetString().Equals("0%")))
sb.Append($"{(o.Parent == null ? o.GetName(true, true).RemoveHtmlTags().PadRightV2(40) : $" {o.GetName(true, true).RemoveHtmlTags()}".PadRightV2(41))}:{o.GetString().RemoveHtmlTags()}\n");
sb.Append($"{(o.Parent == null ? o.GetName(true, true).RemoveHtmlTags().PadRightV2(40) : $"â”— {o.GetName(true, true).RemoveHtmlTags()}".PadRightV2(41))}:{o.GetString().RemoveHtmlTags()}\n");
}

yield return null;
Expand Down
2 changes: 1 addition & 1 deletion Patches/LobbyPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using BepInEx.Unity.IL2CPP.Utils.Collections;
using BepInEx.Unity.IL2CPP.Utils.Collections;
using TMPro;
using UnityEngine;

Expand Down
2 changes: 1 addition & 1 deletion Patches/MapPickerMenuPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;

namespace TOHE.Patches;

Expand Down
2 changes: 1 addition & 1 deletion Patches/MovingPlatformBehaviourPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TOHE;
namespace TOHE;

// https://github.com/tukasa0001/TownOfHost/pull/1274/commits/164d1463e46f0ec453e136c7a2f28a8039cd7fc4

Expand Down
2 changes: 1 addition & 1 deletion Patches/NotificationPopperPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Hazel;
using Hazel;
using UnityEngine;

namespace TOHE.Patches;
Expand Down
2 changes: 1 addition & 1 deletion Patches/OneWayShadowsPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using TOHE.Roles.Core;
using TOHE.Roles.Core;

namespace TOHE;

Expand Down
Loading

0 comments on commit ea726df

Please sign in to comment.