* Xenoartifact: Fixed ambient radiation damage not triggering Fixed ambient radiation damage not triggering artifact. * Revert "Xenoartifact: Fixed ambient radiation damage not triggering" This reverts commit 30e5c7cdb49c15574b49ddd1a1f7b1768abd2614. * Fix radiation damage misattribution
17 lines
478 B
C#
17 lines
478 B
C#
namespace Content.Shared.Radiation.Events;
|
|
|
|
/// <summary>
|
|
/// Raised on entity when it was irradiated
|
|
/// by some radiation source.
|
|
/// </summary>
|
|
public readonly record struct OnIrradiatedEvent(float FrameTime, float RadsPerSecond, EntityUid? Origin)
|
|
{
|
|
public readonly float FrameTime = FrameTime;
|
|
|
|
public readonly float RadsPerSecond = RadsPerSecond;
|
|
|
|
public readonly EntityUid? Origin = Origin;
|
|
|
|
public float TotalRads => RadsPerSecond * FrameTime;
|
|
}
|