Class DamageModifyEvent
Raised on an entity when damage is about to be dealt,
in case anything else needs to modify it other than the base
damageable component.
For example, armor.
Inheritance
System.Object
DamageModifyEvent
Assembly: Content.Shared.dll
Syntax
public sealed class DamageModifyEvent : EntityEventArgs, IInventoryRelayEvent
Constructors
|
Improve this Doc
View Source
DamageModifyEvent(DamageSpecifier, Nullable<EntityUid>)
Declaration
public DamageModifyEvent(DamageSpecifier damage, EntityUid? origin = null)
Parameters
Type |
Name |
Description |
DamageSpecifier |
damage |
|
System.Nullable<EntityUid> |
origin |
|
Fields
|
Improve this Doc
View Source
Damage
Declaration
public DamageSpecifier Damage
Field Value
|
Improve this Doc
View Source
Origin
Declaration
Field Value
Type |
Description |
System.Nullable<EntityUid> |
|
|
Improve this Doc
View Source
OriginalDamage
Declaration
public readonly DamageSpecifier OriginalDamage
Field Value
Properties
|
Improve this Doc
View Source
TargetSlots
Declaration
public SlotFlags TargetSlots { get; }
Property Value
Implements