2024-05-09 07:12:48 +00:00
|
|
|
using Content.Shared.Clothing.EntitySystems;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Clothing.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Makes this clothing reduce fire damage when worn.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, Access(typeof(FireProtectionSystem))]
|
|
|
|
|
public sealed partial class FireProtectionComponent : Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Percentage to reduce fire damage by, subtracted not multiplicative.
|
|
|
|
|
/// 0.25 means 25% less fire damage.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
public float Reduction;
|
2025-02-27 15:39:55 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// LocId for message that will be shown on detailed examine.
|
|
|
|
|
/// Actually can be moved into system
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public LocId ExamineMessage = "fire-protection-reduction-value";
|
2024-05-09 07:12:48 +00:00
|
|
|
}
|