Skip to content

Commit

Permalink
Define RoleType and Change color
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardel-DW committed Jun 28, 2021
1 parent e7f979e commit 9c8702f
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 22 deletions.
1 change: 1 addition & 0 deletions RolesMods/Roles/Collaborator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public Collaborator() : base() {
TasksDescription = "<color=#1aeef9ff>Collaborator: Help the serial killer to win</color>";
Name = "Collaborator";
HasTask = false;
RoleType = RoleType.Undefined;
Side = PlayerSide.Crewmate;
GiveTasksAt = Moment.Never;
ShowIntroCutScene = false;
Expand Down
3 changes: 2 additions & 1 deletion RolesMods/Roles/Executioner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ public class Executioner : CustomRole<Executioner> {

public Executioner() : base() {
GameOptionFormat();
Side = PlayerSide.Crewmate;
RoleActive = true;
Side = PlayerSide.Crewmate;
RoleType = RoleType.Neutral;
GiveRoleAt = Moment.StartGame;
GiveTasksAt = Moment.StartGame;
Color = new Color(0.388f, 0.227f, 0.215f, 1f);
Expand Down
5 changes: 3 additions & 2 deletions RolesMods/Roles/Janitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ public class Janitor : CustomRole<Janitor> {

public Janitor() : base() {
GameOptionFormat();
Side = PlayerSide.Impostor;
RoleActive = true;
Side = PlayerSide.Impostor;
RoleType = RoleType.Impostor;
GiveRoleAt = Moment.StartGame;
GiveTasksAt = Moment.StartGame;
Color = Palette.ImpostorRed;
Name = "Janitor";
IntroDescription = "Je sais pas";
TasksDescription = "<color=#FF930FFF>Janitor: Faut définir une description pffff</color>";
TasksDescription = "<color=#FF0000FF>Janitor: Faut définir une description pffff</color>";
}

public override void OnInfectedStart() {
Expand Down
3 changes: 2 additions & 1 deletion RolesMods/Roles/Jester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ public class Jester : CustomRole<Jester> {

public Jester() : base() {
GameOptionFormat();
Side = PlayerSide.Crewmate;
HasTask = false;
RoleActive = true;
ForceExiledReveal = true;
Side = PlayerSide.Crewmate;
RoleType = RoleType.Neutral;
GiveTasksAt = Moment.StartGame;
Color = new Color(0.819f, 0f, 0.321f, 1f);
Name = "Jester";
Expand Down
10 changes: 5 additions & 5 deletions RolesMods/Roles/Lover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace RolesMods.Roles {

[RegisterInCustomRoles(typeof(Lover))]
public class Lover : CustomRole<Lover> {
// Color: ##f570dcff
public static CustomNumberOption LoverPercent = CustomOption.AddNumber("Lover", "<color=#f570dcff>Lover Apparition</color>", 0f, 0f, 100f, 5f, RoleModPlugin.CrewmateHolder);
// Color: #f5b2e4ff
public static CustomNumberOption LoverPercent = CustomOption.AddNumber("Lover", "<color=#f5b2e4ff>Lover Apparition</color>", 0f, 0f, 100f, 5f, RoleModPlugin.CrewmateHolder);
public static CustomToggleOption LoverDies = CustomOption.AddToggle("Lover die with both", false, LoverPercent);
private static PlayerControl Target;
private bool TargetIsDead = false;
Expand All @@ -22,10 +22,10 @@ public Lover() : base() {
GiveRoleAt = Moment.StartGame;
GiveTasksAt = Moment.StartGame;
NumberPlayers = 2;
Color = new Color(0.388f, 0.227f, 0.215f, 1f);
Color = new Color(0.960f, 0.698f, 0.894f, 1f);
Name = "Lover";
IntroDescription = $"You are in <color=#f570dcff>Love</color> with <color=#f570dcff>{Target?.name}</color>";
TasksDescription = $"Lover: You are in <color=#f570dcff>Love</color> with <color=#f570dcff>{Target?.name}</color>";
IntroDescription = $"You are in <color=#f570dcff>Love</color> with <color=#f5b2e4ff>{Target?.name}</color>";
TasksDescription = $"Lover: You are in <color=#f5b2e4ff>Love</color> with <color=#f5b2e4ff>{Target?.name}</color>";
OutroDescription = "Lovers win";
}

Expand Down
5 changes: 3 additions & 2 deletions RolesMods/Roles/Miner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ public class Miner : CustomRole<Miner> {

public Miner() : base() {
GameOptionFormat();
Side = PlayerSide.Impostor;
RoleActive = true;
Side = PlayerSide.Impostor;
RoleType = RoleType.Impostor;
GiveRoleAt = Moment.StartGame;
GiveTasksAt = Moment.StartGame;
Color = Palette.ImpostorRed;
Name = "Miner";
IntroDescription = "You can be Invisible";
TasksDescription = "<color=#FF930FFF>Miner: Use your ability to be invisible</color>";
TasksDescription = "<color=#FF0000FF>Miner: Use your ability to be invisible</color>";
}

public override void OnInfectedStart() {
Expand Down
5 changes: 3 additions & 2 deletions RolesMods/Roles/Morphing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ public class Morphing : CustomRole<Morphing> {

public Morphing() : base() {
GameOptionFormat();
Side = PlayerSide.Impostor;
RoleActive = true;
Side = PlayerSide.Impostor;
RoleType = RoleType.Impostor;
GiveRoleAt = Moment.StartGame;
GiveTasksAt = Moment.StartGame;
Color = Palette.ImpostorRed;
Name = "Morphing";
IntroDescription = "Je sais pas";
TasksDescription = "<color=#FF930FFF>Morphing: Faut définir une description pffff</color>";
TasksDescription = "<color=#FF0000FF>Morphing: Faut définir une description pffff</color>";
}

public override void OnInfectedStart() {
Expand Down
8 changes: 4 additions & 4 deletions RolesMods/Roles/SecurityGuard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace RolesMods.Roles {

[RegisterInCustomRoles(typeof(SecurityGuard))]
public class SecurityGuard : CustomRole<SecurityGuard> {
// Color: #07db00FF
public static CustomNumberOption SecurityGuardPercent = CustomOption.AddNumber("SecurityGuard", "<color=#d4B40cff>SecurityGuard Apparition</color>", 0f, 0f, 100f, 5f, RoleModPlugin.CrewmateHolder);
// Color: #eaf5b2ff
public static CustomNumberOption SecurityGuardPercent = CustomOption.AddNumber("SecurityGuard", "<color=#eaf5b2ff>SecurityGuard Apparition</color>", 0f, 0f, 100f, 5f, RoleModPlugin.CrewmateHolder);
public static CustomNumberOption NumberSecurityGuard = CustomOption.AddNumber("Number Security Guard", 1f, 1f, 10f, 1f, SecurityGuardPercent);
public static CustomNumberOption CooldownSecurityGuard = CustomOption.AddNumber("Security Guard Cooldown", 30f, 10f, 120f, 5f, SecurityGuardPercent);
public static CustomNumberOption NumberScrews = CustomOption.AddNumber("Security Guard Number Of Screws", 1f, 1f, 30f, 1f, SecurityGuardPercent);
Expand All @@ -25,10 +25,10 @@ public SecurityGuard() : base() {
RoleActive = true;
GiveRoleAt = Moment.StartGame;
GiveTasksAt = Moment.StartGame;
Color = new Color(0.831f, 0.705f, 0.047f, 1f);
Color = new Color(0.917f, 0.960f, 0.698f, 1f);
Name = "Security Guard";
IntroDescription = "Seal vents and place cameras";
TasksDescription = "<color=#d4B40cff>Security Guard: Seal vents and place cameras</color>";
TasksDescription = "<color=#eaf5b2ff>Security Guard: Seal vents and place cameras</color>";
}

public override void OnInfectedStart() {
Expand Down
1 change: 1 addition & 0 deletions RolesMods/Roles/SerialKiller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public SerialKiller() : base() {
Name = "Serial Killer";
HasTask = false;
Side = PlayerSide.Crewmate;
RoleType = RoleType.Neutral;
GiveTasksAt = Moment.StartGame;
RoleActive = true;
Color = new Color(0.101f, 0.933f, 0.976f, 1f);
Expand Down
2 changes: 2 additions & 0 deletions RolesMods/Roles/Shifter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Harion.CustomOptions;
using Harion.CustomRoles;
using Harion.Enumerations;
using UnityEngine;

namespace RolesMods.Roles {
Expand All @@ -13,6 +14,7 @@ public class Shifter : CustomRole<Shifter> {

public Shifter() : base() {
GameOptionFormat();
RoleType = RoleType.Neutral;
TasksDescription = "<color=#575757FF>Shifter: Shift your role before the game ends</color>";
IntroDescription = "Shift your role before the game ends";
Name = "Shifter";
Expand Down
1 change: 1 addition & 0 deletions RolesMods/Roles/Spirit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public Spirit() : base() {
Side = PlayerSide.Everyone;
GiveTasksAt = Moment.OnDie;
GiveRoleAt = Moment.StartGame;
RoleType = RoleType.Dead;
RoleActive = true;
ShowIntroCutScene = false;
}
Expand Down
3 changes: 2 additions & 1 deletion RolesMods/Roles/Swooper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ public Swooper() : base() {
RoleActive = true;
GiveRoleAt = Moment.StartGame;
GiveTasksAt = Moment.StartGame;
RoleType = RoleType.Impostor;
Color = Palette.ImpostorRed;
Name = "Swooper";
IntroDescription = "You can be Invisible";
TasksDescription = "<color=#FF930FFF>Swooper: Use your ability to be invisible</color>";
TasksDescription = "<color=#FF0000FF>Swooper: Use your ability to be invisible</color>";
}

public override void OnInfectedStart() {
Expand Down
8 changes: 4 additions & 4 deletions RolesMods/Roles/Tracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace RolesMods.Roles {

[RegisterInCustomRoles(typeof(Tracker))]
public class Tracker : CustomRole<Tracker> {
// Color: #07 db 00 FF
public static CustomNumberOption TrackerPercent = CustomOption.AddNumber("Tracker", "<color=#00bd7aff>Tracker Apparition</color>", 0f, 0f, 100f, 5f, RoleModPlugin.CrewmateHolder);
// Color: #b2f5e3ff
public static CustomNumberOption TrackerPercent = CustomOption.AddNumber("Tracker", "<color=#b2f5e3ff>Tracker Apparition</color>", 0f, 0f, 100f, 5f, RoleModPlugin.CrewmateHolder);
public static CustomNumberOption NumberTracker = CustomOption.AddNumber("Number Tracker", 1f, 1f, 10f, 1f, TrackerPercent);
public static CustomNumberOption TargetUpdate = CustomOption.AddNumber("Arrow Interval", 5f, 0f, 30f, 0.5f, TrackerPercent);

Expand All @@ -18,10 +18,10 @@ public Tracker() : base() {
RoleActive = true;
GiveRoleAt = Moment.StartGame;
GiveTasksAt = Moment.StartGame;
Color = new Color(0.027f, 0.858f, 0f, 1f);
Color = new Color(0.698f, 0.960f, 0.890f, 1f);
Name = "Tracker";
IntroDescription = "Track a player and do your tasks";
TasksDescription = "<color=#07db00FF>Tracker: You can see the player\nposition with an arrow.</color>";
TasksDescription = "<color=#b2f5e3ff>Tracker: You can see the player\nposition with an arrow.</color>";
}

public override void OnInfectedStart() {
Expand Down

0 comments on commit 9c8702f

Please sign in to comment.