Skip to content

Commit

Permalink
Fix the Thieving Trait Not Working (#552)
Browse files Browse the repository at this point in the history
<!--
This is a semi-strict format, you can add/remove sections as needed but
the order/format should be kept the same
Remove these comments before submitting
-->

# Description

<!--
Explain this PR in as much detail as applicable

Some example prompts to consider:
How might this affect the game? The codebase?
What might be some alternatives to this?
How/Who does this benefit/hurt [the game/codebase]?
-->
Fixes #529 
A crash course that I need to check when a component is networked. Now
actually replicates pocket vision to the client.

# Changelog

:cl:
- fix: Fixed thieving trait not granting pocket vision
  • Loading branch information
WarMechanic authored Jul 16, 2024
1 parent 3178ccb commit b75ddd5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Content.Shared/Strip/Components/ThievingComponent.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using Robust.Shared.GameStates;

namespace Content.Shared.Strip.Components;

/// <summary>
/// Give this to an entity when you want to decrease stripping times
/// </summary>
[RegisterComponent]
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ThievingComponent : Component
{
/// <summary>
Expand All @@ -27,6 +29,6 @@ public sealed partial class ThievingComponent : Component
/// <summary>
/// Should the user be able to see hidden items? (i.e pockets)
/// </summary>
[DataField]
[DataField, AutoNetworkedField]
public bool IgnoreStripHidden;
}

0 comments on commit b75ddd5

Please sign in to comment.