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

refactor: remove lights #311

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions source/Patches/Lights.cs

This file was deleted.

5 changes: 2 additions & 3 deletions source/Patches/NeutralRoles/PhantomMod/SetPhantom.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using HarmonyLib;
using Hazel;
using TownOfUs.Roles;
Expand Down Expand Up @@ -33,7 +33,6 @@ public static void ExileControllerPostfix(ExileController __instance)
Role.RoleDictionary.Remove(PlayerControl.LocalPlayer.PlayerId);
var role = new Phantom(PlayerControl.LocalPlayer);
role.RegenTask();
Lights.SetLights();

RemoveTasks(PlayerControl.LocalPlayer);
PlayerControl.LocalPlayer.MyPhysics.ResetMoveState();
Expand Down Expand Up @@ -128,4 +127,4 @@ public static void AddCollider(Phantom role)
}));
}
}
}
}
4 changes: 1 addition & 3 deletions source/Patches/NeutralRoles/ShifterMod/PerformKillButton.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;
using HarmonyLib;
Expand Down Expand Up @@ -261,8 +261,6 @@ public static void Shift(Shifter shifterRole, PlayerControl other)
Role.GetRole<Arsonist>(shifter).IgniteButton.Destroy();
DestroyableSingleton<HudManager>.Instance.KillButton.gameObject.SetActive(false);
DestroyableSingleton<HudManager>.Instance.KillButton.isActive = false;

Lights.SetLights();
}
}
}
Expand Down
8 changes: 2 additions & 6 deletions source/Patches/Roles/Role.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using HarmonyLib;
using HarmonyLib;
using Hazel;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -280,8 +280,6 @@ public static void Postfix(IntroCutscene __instance)
// Scale = ModifierText.scale;
else
ModifierText = null;

Lights.SetLights();
}
}

Expand All @@ -298,7 +296,6 @@ public static void Postfix(IntroCutscene __instance)
// Scale = ModifierText.scale;
else
ModifierText = null;
Lights.SetLights();
}
}

Expand Down Expand Up @@ -450,7 +447,6 @@ private static void Postfix(LobbyBehaviour __instance)

RoleDictionary.Clear();
Modifier.ModifierDictionary.Clear();
Lights.SetLights(Color.white);
}
}

Expand Down Expand Up @@ -563,4 +559,4 @@ private static void Postfix(HudManager __instance)
}
}
}
}
}