Skip to content

Commit

Permalink
Merge pull request #28 from impostor4291/fix-stuff
Browse files Browse the repository at this point in the history
Fix stuff
  • Loading branch information
impostor4291 authored Dec 30, 2024
2 parents 11039f3 + fc84fd9 commit 218e9c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Patches/HudPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public static void Postfix(TaskPanelBehaviour __instance)
if (sb.Length > 1)
{
var text = sb.ToString().TrimEnd('\n').TrimEnd('\r');
if (!Utils.HasTasks(player.Data, false) && sb.ToString().Count(s => (s == '\n')) >= 2)
if (!Utils.HasTasks(player.Data, false) && sb.ToString().Count(s => (s == '\n')) >= 1)
text = $"{Utils.ColorString(Utils.GetRoleColor(player.GetCustomRole()).ShadeColor(0.2f), GetString("FakeTask"))}\r\n{text}";
AllText += $"\r\n\r\n<size=85%>{text}</size>";
}
Expand Down
2 changes: 1 addition & 1 deletion Roles/Crewmate/CopyCat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public override bool ForcedCheckMurderAsKiller(PlayerControl killer, PlayerContr
if (target.Is(CustomRoles.Recruit)) killer.RpcSetCustomRole(CustomRoles.Recruit);
if (target.Is(CustomRoles.Contagious)) killer.RpcSetCustomRole(CustomRoles.Contagious);
if (target.Is(CustomRoles.Soulless)) killer.RpcSetCustomRole(CustomRoles.Soulless);
if (target.Is(CustomRoles.Admired) || target.Is(CustomRoles.Narc)) killer.RpcSetCustomRole(CustomRoles.Admired);
if (target.Is(CustomRoles.Admired)) killer.RpcSetCustomRole(CustomRoles.Admired);
}
killer.RpcGuardAndKill(killer);
killer.Notify(string.Format(GetString("CopyCatRoleChange"), Utils.GetRoleName(role)));
Expand Down

0 comments on commit 218e9c0

Please sign in to comment.