Skip to content

Commit

Permalink
Request
Browse files Browse the repository at this point in the history
  • Loading branch information
FireNameFN committed Nov 16, 2024
1 parent 9a07897 commit 2256404
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Content.Server/Thief/Components/ThiefBeaconAccessComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace Content.Server.Thief.Components;

[RegisterComponent]
public sealed partial class ThiefBeaconAccessComponent : Component; // Corvax-Next-Api
2 changes: 1 addition & 1 deletion Content.Server/Thief/Systems/ThiefBeaconSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private void OnGetInteractionVerbs(Entity<ThiefBeaconComponent> beacon, ref GetV
return;

var mind = _mind.GetMind(args.User);
if (mind == null || !_roles.MindHasRole<ThiefRoleComponent>(mind.Value) && !_roles.MindHasRole<ApiRoleComponent>(mind.Value)) // Corvax-Next-Api
if (mind == null || !_roles.MindHasRole<ThiefBeaconAccessComponent>(mind.Value)) // Corvax-Next-Api
return;

var user = args.User;
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Roles/MindRoles/mind_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
- type: MindRole
antagPrototype: Thief
- type: ThiefRole
- type: ThiefBeaconAccess # Corvax-Next-Api

# Traitors
- type: entity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- type: MindRole
antagPrototype: Api
- type: ApiRole
- type: ThiefBeaconAccess

0 comments on commit 2256404

Please sign in to comment.