Files
tbd-station-14/Content.Shared/Explosion/ExplosionEvents.cs
metalgearsloth e5d6d7f1eb Make GetExplosionResistance event a struct (#20274)
Also fixed a typo.
2023-09-17 04:04:04 -05:00

23 lines
695 B
C#

using Content.Shared.Inventory;
using Robust.Shared.Map;
using Robust.Shared.Serialization;
namespace Content.Shared.Explosion;
/// <summary>
/// Raised directed at an entity to determine its explosion resistance, probably right before it is about to be
/// damaged by one.
/// </summary>
[ByRefEvent]
public record struct GetExplosionResistanceEvent(string ExplosionPrototype) : IInventoryRelayEvent
{
/// <summary>
/// A coefficient applied to overall explosive damage.
/// </summary>
public float DamageCoefficient = 1;
public readonly string ExplosionPrototype = ExplosionPrototype;
SlotFlags IInventoryRelayEvent.TargetSlots => ~SlotFlags.POCKET;
}