This reverts commit bb0776c496.
# Conflicts:
# Content.Server/Projectiles/ProjectileSystem.cs
# Content.Shared/Projectiles/SharedProjectileSystem.cs
# Resources/Prototypes/Entities/Objects/Weapons/Guns/flare_gun.yml
# Resources/Prototypes/Entities/Objects/Weapons/Melee/sword.yml
27 lines
739 B
C#
27 lines
739 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Execution;
|
|
|
|
/// <summary>
|
|
/// Added to entities that can be used to execute another target.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class ExecutionComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// How long the execution duration lasts.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float DoAfterDuration = 5f;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public float DamageModifier = 9f;
|
|
|
|
// Not networked because this is transient inside of a tick.
|
|
/// <summary>
|
|
/// True if it is currently executing for handlers.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool Executing = true;
|
|
}
|