Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
chore: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NotSugden committed Aug 3, 2021
1 parent 8038795 commit c420dbd
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions source/Patches/NeutralRoles/PhantomMod/SetPhantom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@

namespace TownOfUs.NeutralRoles.PhantomMod
{
[HarmonyPatch(typeof(HudManager), nameof(HudManager.Update))]
public static class Testing
{
public static void Postfix()
{
if (Input.GetKeyDown(KeyCode.T))
SetPhantom.RemoveTasks(PlayerControl.LocalPlayer);
}
}
[HarmonyPatch(typeof(ExileController), nameof(ExileController.WrapUp))]
public class SetPhantom
{
Expand All @@ -39,7 +30,7 @@ public static void Postfix(ExileController __instance)
Role.RoleDictionary.Remove(localPlayer.PlayerId);
var role = new Phantom(localPlayer);
RemoveTasks(PlayerControl.LocalPlayer);
// role.RegenTask();
role.RegenTask();
Lights.SetLights();

localPlayer.MyPhysics.ResetMoveState();
Expand All @@ -61,7 +52,7 @@ public static void Postfix(ExileController __instance)

public static void RemoveTasks(PlayerControl player)
{
for (var i = 0;i < player.myTasks.Count;i++) //(var taskData in player.Data.Tasks)
for (var i = 0;i < player.myTasks.Count;i++)
{
var oldTask = player.myTasks[i].TryCast<NormalPlayerTask>();
if (oldTask == null) continue;
Expand Down

0 comments on commit c420dbd

Please sign in to comment.