* Item and clothes prefix toggler Handles Item.HeldPrefix and ClothingComponent.EquippedPrefix respectively * stunbaton and magboots sprites activations to Toggler yml * review --------- Co-authored-by: Milon <milonpl.git@proton.me>
23 lines
572 B
C#
23 lines
572 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Clothing.Components;
|
|
|
|
/// <summary>
|
|
/// Handles the changes to ClothingComponent.EquippedPrefix when toggled.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class ToggleClothingPrefixComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Clothing's EquippedPrefix when activated.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? PrefixOn = "on";
|
|
|
|
/// <summary>
|
|
/// Clothing's EquippedPrefix when deactivated.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? PrefixOff;
|
|
}
|