Skip to content

Commit

Permalink
Code Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
KARPED1EM committed Jun 30, 2023
1 parent 1761a4d commit a951fb0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions TONX/Roles/Neutral/Gamer.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 6 additions & 6 deletions TONX/Roles/Neutral/Pelican.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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));
Expand Down
8 changes: 4 additions & 4 deletions TONX/Roles/Neutral/Succubus.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -42,7 +42,7 @@ public Succubus(PlayerControl player)
"CharmedCountMode.Original",
};
enum OptionName
{
{
SuccubusCharmCooldown,
SuccubusCharmCooldownIncrese,
SuccubusCharmMax,
Expand Down

0 comments on commit a951fb0

Please sign in to comment.