Traitor objectives now include their target's job (#6417)

This commit is contained in:
Rane
2022-02-06 21:25:04 -05:00
committed by GitHub
parent 03a5a71243
commit be7a770b78
5 changed files with 17 additions and 8 deletions

View File

@@ -35,7 +35,7 @@ namespace Content.Server.Mind
private readonly ISet<Role> _roles = new HashSet<Role>();
private readonly List<Objective> _objectives = new();
public string Briefing = String.Empty;
/// <summary>
@@ -223,6 +223,11 @@ namespace Content.Server.Mind
return _roles.Any(role => role.GetType() == t);
}
/// <summary>
/// Gets the current job
/// </summary>
public Job? CurrentJob => _roles.OfType<Job>().SingleOrDefault();
/// <summary>
/// Adds an objective to this mind.
/// </summary>