From: Connor Huffine Date: Wed, 7 Jan 2026 22:31:13 +0000 (-0500) Subject: Add origin member to class (#41250) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=a9b953cdfe7cb695cf5ea93ea3d5ccf05b3ca3ff;p=space-station-14.git Add origin member to class (#41250) * Add origin member to class * whitespace * Add comments Added some doc polish while I was here. * Update comments Clarification and accuracy * Apply suggestions from code review --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- diff --git a/Content.Shared/Damage/Systems/DamageableSystem.Events.cs b/Content.Shared/Damage/Systems/DamageableSystem.Events.cs index 3e985ba204..32c67fd0c2 100644 --- a/Content.Shared/Damage/Systems/DamageableSystem.Events.cs +++ b/Content.Shared/Damage/Systems/DamageableSystem.Events.cs @@ -219,11 +219,27 @@ public record struct BeforeDamageChangedEvent(DamageSpecifier Damage, EntityUid? public sealed class DamageModifyEvent(DamageSpecifier damage, EntityUid? origin = null) : EntityEventArgs, IInventoryRelayEvent { - // Whenever locational damage is a thing, this should just check only that bit of armour. + /// + /// + /// Whenever locational damage is a thing, this should just check only that bit of armor. + /// public SlotFlags TargetSlots => ~SlotFlags.POCKET; + /// + /// Contains the original damage, prior to any modifers. + /// public readonly DamageSpecifier OriginalDamage = damage; + + /// + /// Contains the damage after modifiers have been applied. + /// This is the damage that will be inflicted. + /// public DamageSpecifier Damage = damage; + + /// + /// Contains the entity which caused the damage, if any was responsible. + /// + public readonly EntityUid? Origin = origin; } public sealed class DamageChangedEvent : EntityEventArgs