Delta-v/Content.Shared/EntityEffects/Effects/ExplodeEntityEffect.cs

34 lines
966 B
C#

using Content.Shared.Database;
using Content.Shared.EntityEffects.Effects.Transform;
using Robust.Shared.Prototypes;
namespace Content.Shared.EntityEffects.Effects;
/// <inheritdoc cref="EntityEffect"/>
/// <seealso cref="Explosion"/>
public sealed partial class Explode : EntityEffectBase<Explode>
{
/// <summary>
/// Optional override for the explosion intensity.
/// </summary>
[DataField]
public float? Intensity;
/// <summary>
/// Optional override for the explosion radius.
/// </summary>
[DataField]
public float? Radius;
/// <summary>
/// Delete the entity with the explosion?
/// </summary>
[DataField]
public bool Delete = true;
public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("entity-effect-guidebook-explosion", ("chance", Probability));
public override LogImpact? Impact => LogImpact.High;
}