* fix antag selection being evil * fix test * untroll the other tests * remove role timer troll * Allow tests to modify antag preferences * Fix antag selection * Misc test fixes * Add AntagPreferenceTest * Fix lazy mistakes * Test cleanup * Try stop players in lobbies from being assigned mid-round antags * ranting * I am going insane --------- Co-authored-by: deltanedas <@deltanedas:kde.org> Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
36 lines
934 B
C#
36 lines
934 B
C#
namespace Content.Shared.Antag;
|
|
|
|
/// <summary>
|
|
/// Used by AntagSelectionSystem to indicate which types of antag roles are allowed to choose the same entity
|
|
/// For example, Thief HeadRev
|
|
/// </summary>
|
|
public enum AntagAcceptability
|
|
{
|
|
/// <summary>
|
|
/// Dont choose anyone who already has an antag role
|
|
/// </summary>
|
|
None,
|
|
/// <summary>
|
|
/// Dont choose anyone who has an exclusive antag role
|
|
/// </summary>
|
|
NotExclusive,
|
|
/// <summary>
|
|
/// Choose anyone
|
|
/// </summary>
|
|
All
|
|
}
|
|
|
|
public enum AntagSelectionTime : byte
|
|
{
|
|
/// <summary>
|
|
/// Antag roles are assigned before players are assigned jobs and spawned in.
|
|
/// This prevents antag selection from happening if the round is on-going.
|
|
/// </summary>
|
|
PrePlayerSpawn,
|
|
|
|
/// <summary>
|
|
/// Antag roles get assigned after players have been assigned jobs and have spawned in.
|
|
/// </summary>
|
|
PostPlayerSpawn
|
|
}
|