2024-09-21 17:10:02 +03:00
|
|
|
using Content.Shared.Damage;
|
|
|
|
|
using Robust.Shared.GameStates;
|
2024-09-21 18:09:12 +03:00
|
|
|
|
2024-09-25 23:11:01 +03:00
|
|
|
namespace Content.Shared._White._Engi.DamageableClothing;
|
2024-09-21 17:10:02 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
2024-11-24 21:44:35 +03:00
|
|
|
/// WD.
|
2024-09-21 17:10:02 +03:00
|
|
|
/// This component goes on an equippable item that should take damage while in use.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
|
|
|
public sealed partial class DamageableClothingComponent : Component
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The entity that's wearing the item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables, AutoNetworkedField]
|
|
|
|
|
public EntityUid? User;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The damage modifier to use on item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public DamageModifierSet DamageModifier = default!;
|
|
|
|
|
|
|
|
|
|
}
|