Files
wwdpublic/Content.Shared/Strip/Components/ThievingComponent.cs
WarMechanic b75ddd5999 Fix the Thieving Trait Not Working (#552)
<!--
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

🆑
- fix: Fixed thieving trait not granting pocket vision
2024-07-16 13:41:42 -04:00

35 lines
985 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Strip.Components;
/// <summary>
/// Give this to an entity when you want to decrease stripping times
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ThievingComponent : Component
{
/// <summary>
/// How much the strip time should be shortened by
/// </summary>
[DataField]
public TimeSpan StripTimeReduction = TimeSpan.FromSeconds(0.5f);
/// <summary>
/// A multiplier coefficient for strip time
/// </summary>
[DataField]
public float StripTimeMultiplier = 1f;
/// <summary>
/// Should it notify the user if they're stripping a pocket?
/// </summary>
[DataField]
public ThievingStealth Stealth = ThievingStealth.Hidden;
/// <summary>
/// Should the user be able to see hidden items? (i.e pockets)
/// </summary>
[DataField, AutoNetworkedField]
public bool IgnoreStripHidden;
}