From a951fb0802e1128b08b1af3c2c30f47f17e591ee Mon Sep 17 00:00:00 2001 From: KARPED1EM Date: Sat, 1 Jul 2023 07:36:07 +0800 Subject: [PATCH] Code Cleanup --- TONX/Roles/Neutral/Gamer.cs | 12 ++++++------ TONX/Roles/Neutral/Pelican.cs | 12 ++++++------ TONX/Roles/Neutral/Succubus.cs | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/TONX/Roles/Neutral/Gamer.cs b/TONX/Roles/Neutral/Gamer.cs index aece2f244..ce04eb5c3 100644 --- a/TONX/Roles/Neutral/Gamer.cs +++ b/TONX/Roles/Neutral/Gamer.cs @@ -1,11 +1,11 @@ -using Hazel; -using TONX.Roles.Core.Interfaces; -using TONX.Roles.Core; -using UnityEngine; -using AmongUs.GameOptions; -using System.Collections.Generic; +using AmongUs.GameOptions; using HarmonyLib; +using Hazel; using System; +using System.Collections.Generic; +using TONX.Roles.Core; +using TONX.Roles.Core.Interfaces; +using UnityEngine; namespace TONX.Roles.Neutral; public sealed class Gamer : RoleBase, IKiller diff --git a/TONX/Roles/Neutral/Pelican.cs b/TONX/Roles/Neutral/Pelican.cs index 3a05596d8..bbd64e31b 100644 --- a/TONX/Roles/Neutral/Pelican.cs +++ b/TONX/Roles/Neutral/Pelican.cs @@ -1,11 +1,11 @@ -using Hazel; -using TONX.Roles.Core.Interfaces; -using TONX.Roles.Core; -using UnityEngine; -using AmongUs.GameOptions; +using AmongUs.GameOptions; +using Hazel; using System.Collections.Generic; using System.Linq; using TONX.Modules; +using TONX.Roles.Core; +using TONX.Roles.Core.Interfaces; +using UnityEngine; namespace TONX.Roles.Neutral; public sealed class Pelican : RoleBase, IKiller @@ -74,7 +74,7 @@ public override void ReceiveRPC(MessageReader reader, CustomRPC rpcType) { if (rpcType != CustomRPC.SyncPelicanEatenPlayers) return; EatenPlayers = new(); - for (int i = 0; i< reader.ReadInt32(); i++) + for (int i = 0; i < reader.ReadInt32(); i++) EatenPlayers.Add(reader.ReadByte()); } public static bool IsEaten(byte id) => Main.AllPlayerControls.Any(p => p.GetRoleClass() is Pelican roleClass && (roleClass.EatenPlayers?.Contains(id) ?? false)); diff --git a/TONX/Roles/Neutral/Succubus.cs b/TONX/Roles/Neutral/Succubus.cs index 4514f264b..7c88932fc 100644 --- a/TONX/Roles/Neutral/Succubus.cs +++ b/TONX/Roles/Neutral/Succubus.cs @@ -1,8 +1,8 @@ -using Hazel; -using TONX.Roles.Core.Interfaces; +using AmongUs.GameOptions; +using Hazel; using TONX.Roles.Core; +using TONX.Roles.Core.Interfaces; using UnityEngine; -using AmongUs.GameOptions; namespace TONX.Roles.Neutral; public sealed class Succubus : RoleBase, IKiller @@ -42,7 +42,7 @@ public Succubus(PlayerControl player) "CharmedCountMode.Original", }; enum OptionName - { + { SuccubusCharmCooldown, SuccubusCharmCooldownIncrese, SuccubusCharmMax,