Table of Contents

Struct HealthRoundingSettings

Namespace
ElectricDrill.AstraHealth.Config
Assembly
com.electricdrill.astra-health.Runtime.dll

Configures how fractional health-combat values are rounded to integer gameplay amounts.

[Serializable]
public struct HealthRoundingSettings

Constructors

HealthRoundingSettings(RoundingMode, RoundingMode, RoundingMode, RoundingMode, RoundingMode)

Initializes a new instance of HealthRoundingSettings.

public HealthRoundingSettings(RoundingMode percentageDamageModifierRoundingMode, RoundingMode defensePenetrationRoundingMode, RoundingMode damageMitigationRoundingMode, RoundingMode criticalDamageMultiplierRoundingMode, RoundingMode lifestealRoundingMode)

Parameters

percentageDamageModifierRoundingMode RoundingMode

Rounding applied to percentage damage modifier results.

defensePenetrationRoundingMode RoundingMode

Rounding applied to effective defense after penetration.

damageMitigationRoundingMode RoundingMode

Rounding applied to damage after mitigation.

criticalDamageMultiplierRoundingMode RoundingMode

Rounding applied to damage after critical multipliers.

lifestealRoundingMode RoundingMode

Rounding applied to lifesteal heal amounts.

Properties

CriticalDamageMultiplierRoundingMode

Gets the rounding mode applied after critical damage multipliers.

public RoundingMode CriticalDamageMultiplierRoundingMode { get; }

Property Value

RoundingMode

DamageMitigationRoundingMode

Gets the rounding mode applied to the final damage amount returned by damage mitigation.

public RoundingMode DamageMitigationRoundingMode { get; }

Property Value

RoundingMode

Default

Default rounding settings used when no health configuration is available.

public static HealthRoundingSettings Default { get; }

Property Value

HealthRoundingSettings

DefensePenetrationRoundingMode

Gets the rounding mode applied to the effective defense value after defense penetration.

public RoundingMode DefensePenetrationRoundingMode { get; }

Property Value

RoundingMode

LifestealRoundingMode

Gets the rounding mode applied to lifesteal heal amounts.

public RoundingMode LifestealRoundingMode { get; }

Property Value

RoundingMode

PercentageDamageModifierRoundingMode

Gets the rounding mode applied after percentage damage modifiers are combined and applied.

public RoundingMode PercentageDamageModifierRoundingMode { get; }

Property Value

RoundingMode