Search Results for

    Show / Hide Table of Contents

    Struct HealData

    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    public struct HealData

    Constructors

    HealData(float)

    Declaration
    public HealData(float originalAmount)
    Parameters
    Type Name Description
    float originalAmount

    Properties

    actor

    Declaration
    public readonly Actor actor { get; }
    Property Value
    Type Description
    Actor

    amplificationMultiplier

    Heal multiplier for amplications.

    Declaration
    public readonly float amplificationMultiplier { get; }
    Property Value
    Type Description
    float

    canMerge

    Can this heal number be merged into single number

    Declaration
    public readonly bool canMerge { get; }
    Property Value
    Type Description
    bool

    currentAmount

    Amount of processed damage with current modifications.

    Declaration
    public float currentAmount { get; }
    Property Value
    Type Description
    float

    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
    Type Description
    float

    isCrit

    Should this heal show a critical hit marker?

    Declaration
    public readonly bool isCrit { get; }
    Property Value
    Type Description
    bool

    originalAmount

    Original amount of heal.

    Declaration
    public readonly float originalAmount { get; }
    Property Value
    Type Description
    float

    reductionMultiplier

    Heal multiplier for reductions.

    Declaration
    public readonly float reductionMultiplier { get; }
    Property Value
    Type Description
    float

    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
    Type Description
    HealData

    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
    Type Description
    HealData

    ApplyRawMultiplier(float)

    Apply raw multiplier to this heal's original amount.

    Declaration
    public HealData ApplyRawMultiplier(float multiplier)
    Parameters
    Type Name Description
    float multiplier
    Returns
    Type Description
    HealData

    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
    Type Description
    HealData

    Dispatch(Entity, ReactionChain)

    Declaration
    public void Dispatch(Entity victim, ReactionChain chain = default)
    Parameters
    Type Name Description
    Entity victim
    ReactionChain chain

    IsAmountModifiedBy(Actor)

    Declaration
    public bool IsAmountModifiedBy(Actor actor)
    Parameters
    Type Name Description
    Actor actor
    Returns
    Type Description
    bool

    IsAmountModifiedBy(Type)

    Declaration
    public bool IsAmountModifiedBy(Type actorType)
    Parameters
    Type Name Description
    System.Type actorType
    Returns
    Type Description
    bool

    SetActor(Actor)

    Declaration
    public HealData SetActor(Actor actor)
    Parameters
    Type Name Description
    Actor actor
    Returns
    Type Description
    HealData

    SetAmountModifiedBy(Actor)

    Declaration
    public HealData SetAmountModifiedBy(Actor actor)
    Parameters
    Type Name Description
    Actor actor
    Returns
    Type Description
    HealData

    SetAmountModifiedBy(Type)

    Declaration
    public HealData SetAmountModifiedBy(Type actorType)
    Parameters
    Type Name Description
    System.Type actorType
    Returns
    Type Description
    HealData

    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
    Type Name Description
    FinalDamageData damage
    Returns
    Type Description
    HealData

    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
    Type Name Description
    FinalHealData heal
    Returns
    Type Description
    HealData

    SetCanMerge()

    Make this heal mergeable into one damage number in UI.

    Declaration
    public HealData SetCanMerge()
    Returns
    Type Description
    HealData

    SetCrit()

    Make this heal show a critical hit marker.

    Declaration
    public HealData SetCrit()
    Returns
    Type Description
    HealData

    SetOriginalAmount(float)

    Declaration
    public HealData SetOriginalAmount(float newAmount)
    Parameters
    Type Name Description
    float newAmount
    Returns
    Type Description
    HealData

    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
    Type Description
    HealData
    In This Article
    Back to top Shape of Dreams API Documentation