Files
tbd-station-14/Content.Shared/EntityEffects/Effects/ExplodeEntityEffect.cs
Princess Cheeseballs d4a32ce502 Mild Entity Effect/Condition Cleanup (#41059)
* Commit

* ploop

* borger

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2025-10-23 23:35:59 +00:00

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;
}