Files
tbd-station-14/Content.Shared/KillTome/KillTomeComponent.cs
xsainteer d0c104e4b0 Added Kill Tome (Death Note). (#39011)
Co-authored-by: ScarKy0 <scarky0@onet.eu>
2025-07-26 00:00:58 +02:00

39 lines
1.1 KiB
C#

using Content.Shared.Damage;
using Content.Shared.Damage.Prototypes;
using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.KillTome;
/// <summary>
/// Paper with that component is KillTome.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class KillTomeComponent : Component
{
/// <summary>
/// if delay is not specified, it will use this default value
/// </summary>
[DataField, AutoNetworkedField]
public TimeSpan DefaultKillDelay = TimeSpan.FromSeconds(40);
/// <summary>
/// Damage specifier that will be used to kill the target.
/// </summary>
[DataField, AutoNetworkedField]
public DamageSpecifier Damage = new()
{
DamageDict = new Dictionary<string, FixedPoint2>
{
{ "Blunt", 200 }
}
};
/// <summary>
/// to keep a track of already killed people so they won't be killed again
/// </summary>
[DataField]
public HashSet<EntityUid> KilledEntities = [];
}