* Revert "Cleanup ExecutionSystem (#24382)" This reverts commitbcbe2ec1af. * Revert "Executions (#24150)" This reverts commit2e83f5a0ec. # Conflicts: # Content.Shared/Weapons/Melee/SharedMeleeWeaponSystem.cs
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user