Struct HealData
Assembly: Dew.Core.dll
Syntax
Constructors
HealData(float)
Declaration
public HealData(float originalAmount)
Parameters
| Type |
Name |
Description |
| float |
originalAmount |
|
Properties
actor
Declaration
public readonly Actor actor { get; }
Property Value
amplificationMultiplier
Heal multiplier for amplications.
Declaration
public readonly float amplificationMultiplier { get; }
Property Value
canMerge
Can this heal number be merged into single number
Declaration
public readonly bool canMerge { get; }
Property Value
currentAmount
Amount of processed damage with current modifications.
Declaration
public float currentAmount { get; }
Property Value
flatModifier
Flat heal modifier. This value will be added to the final heal before any other multipliers.
Declaration
public readonly float flatModifier { get; }
Property Value
isCrit
Should this heal show a critical hit marker?
Declaration
public readonly bool isCrit { get; }
Property Value
originalAmount
Declaration
public readonly float originalAmount { get; }
Property Value
reductionMultiplier
Heal multiplier for reductions.
Declaration
public readonly float reductionMultiplier { get; }
Property Value
Methods
AddAmount(float)
Add a flat amount to this heal.
Declaration
public HealData AddAmount(float amount)
Parameters
| Type |
Name |
Description |
| float |
amount |
The amount to add. Must be a positive number or zero.
|
Returns
ApplyAmplification(float)
Amplify this heal by the value specified, stacking additively.
e.g. One Amplication by 0.5 will cause 50% increase in heal.
Two Amplifications by 0.5 will cause 125% increase in heal.
Declaration
public HealData ApplyAmplification(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
Amplification value. Must be a positive number or zero.
|
Returns
ApplyRawMultiplier(float)
Apply raw multiplier to this heal's original amount.
Declaration
public HealData ApplyRawMultiplier(float multiplier)
Parameters
| Type |
Name |
Description |
| float |
multiplier |
|
Returns
ApplyReduction(float)
Reduce this heal by the value specified, stacking multiplicatively.
e.g. One Reduction by 0.5 will cause 50% decrease in heal.
Two Reductions by 0.5 will cause 75% decrease in heal.
Declaration
public HealData ApplyReduction(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
Reduction value. This value will be clamped between 0 and 1.
|
Returns
Dispatch(Entity, ReactionChain)
Declaration
public void Dispatch(Entity victim, ReactionChain chain = default)
Parameters
IsAmountModifiedBy(Actor)
Declaration
public bool IsAmountModifiedBy(Actor actor)
Parameters
| Type |
Name |
Description |
| Actor |
actor |
|
Returns
IsAmountModifiedBy(Type)
Declaration
public bool IsAmountModifiedBy(Type actorType)
Parameters
| Type |
Name |
Description |
| System.Type |
actorType |
|
Returns
SetActor(Actor)
Declaration
public HealData SetActor(Actor actor)
Parameters
| Type |
Name |
Description |
| Actor |
actor |
|
Returns
SetAmountModifiedBy(Actor)
Declaration
public HealData SetAmountModifiedBy(Actor actor)
Parameters
| Type |
Name |
Description |
| Actor |
actor |
|
Returns
SetAmountModifiedBy(Type)
Declaration
public HealData SetAmountModifiedBy(Type actorType)
Parameters
| Type |
Name |
Description |
| System.Type |
actorType |
|
Returns
SetAmountOrigin(FinalDamageData)
If amount of this heal originates from other damage, you can specify it here to make it inherit its flags and isCrit.
Declaration
public HealData SetAmountOrigin(FinalDamageData damage)
Parameters
Returns
SetAmountOrigin(FinalHealData)
If amount of this heal originates from other heal, you can specify it here to make it inherit its flags and isCrit.
Declaration
public HealData SetAmountOrigin(FinalHealData heal)
Parameters
Returns
SetCanMerge()
Make this heal mergeable into one damage number in UI.
Declaration
public HealData SetCanMerge()
Returns
SetCrit()
Make this heal show a critical hit marker.
Declaration
public HealData SetCrit()
Returns
SetOriginalAmount(float)
Declaration
public HealData SetOriginalAmount(float newAmount)
Parameters
| Type |
Name |
Description |
| float |
newAmount |
|
Returns
SubtractAmount(float)
Subtract a flat amount from this heal.
Declaration
public HealData SubtractAmount(float amount)
Parameters
| Type |
Name |
Description |
| float |
amount |
The amount to subtract. Must be a positive number or zero.
|
Returns