From 2256404f1010c5aa998c694718025b92d4a90956 Mon Sep 17 00:00:00 2001 From: FN Date: Sun, 17 Nov 2024 01:07:43 +0700 Subject: [PATCH] Request --- Content.Server/Thief/Components/ThiefBeaconAccessComponent.cs | 4 ++++ Content.Server/Thief/Systems/ThiefBeaconSystem.cs | 2 +- Resources/Prototypes/Roles/MindRoles/mind_roles.yml | 1 + .../Prototypes/_CorvaxNext/Roles/MindRoles/api_mind_role.yml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Content.Server/Thief/Components/ThiefBeaconAccessComponent.cs diff --git a/Content.Server/Thief/Components/ThiefBeaconAccessComponent.cs b/Content.Server/Thief/Components/ThiefBeaconAccessComponent.cs new file mode 100644 index 00000000000..b9cc52ac2cb --- /dev/null +++ b/Content.Server/Thief/Components/ThiefBeaconAccessComponent.cs @@ -0,0 +1,4 @@ +namespace Content.Server.Thief.Components; + +[RegisterComponent] +public sealed partial class ThiefBeaconAccessComponent : Component; // Corvax-Next-Api diff --git a/Content.Server/Thief/Systems/ThiefBeaconSystem.cs b/Content.Server/Thief/Systems/ThiefBeaconSystem.cs index 6150f365229..593fe0ab1c2 100644 --- a/Content.Server/Thief/Systems/ThiefBeaconSystem.cs +++ b/Content.Server/Thief/Systems/ThiefBeaconSystem.cs @@ -39,7 +39,7 @@ private void OnGetInteractionVerbs(Entity beacon, ref GetV return; var mind = _mind.GetMind(args.User); - if (mind == null || !_roles.MindHasRole(mind.Value) && !_roles.MindHasRole(mind.Value)) // Corvax-Next-Api + if (mind == null || !_roles.MindHasRole(mind.Value)) // Corvax-Next-Api return; var user = args.User; diff --git a/Resources/Prototypes/Roles/MindRoles/mind_roles.yml b/Resources/Prototypes/Roles/MindRoles/mind_roles.yml index 926ce512b41..7f931639a0e 100644 --- a/Resources/Prototypes/Roles/MindRoles/mind_roles.yml +++ b/Resources/Prototypes/Roles/MindRoles/mind_roles.yml @@ -136,6 +136,7 @@ - type: MindRole antagPrototype: Thief - type: ThiefRole + - type: ThiefBeaconAccess # Corvax-Next-Api # Traitors - type: entity diff --git a/Resources/Prototypes/_CorvaxNext/Roles/MindRoles/api_mind_role.yml b/Resources/Prototypes/_CorvaxNext/Roles/MindRoles/api_mind_role.yml index 52d7d5e2172..78c1f1ee707 100644 --- a/Resources/Prototypes/_CorvaxNext/Roles/MindRoles/api_mind_role.yml +++ b/Resources/Prototypes/_CorvaxNext/Roles/MindRoles/api_mind_role.yml @@ -7,3 +7,4 @@ - type: MindRole antagPrototype: Api - type: ApiRole + - type: ThiefBeaconAccess