Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Turn Fanatic red after being turned
Browse files Browse the repository at this point in the history
  • Loading branch information
ismywb committed Oct 10, 2022
1 parent 52d3021 commit c5b9199
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions TheOtherRoles/TheOtherRoles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1959,8 +1959,15 @@ public static void clearAndReload() {

public static class Cursed {
public static PlayerControl cursed;
public static Color color = new Color32(0, 247, 255, byte.MaxValue);

public static Color crewColor = new Color32(0, 247, 255, byte.MaxValue);
public static Color impColor = Palette.ImpostorRed;
public Color color {
get {
if (cursed == null || !cursed.Data.Role.IsImpostor) {
return crewColor;
else return impColor;
}
}

public static void clearAndReload() {
cursed = null;
Expand Down

0 comments on commit c5b9199

Please sign in to comment.