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
percentageDamageModifierRoundingModeRoundingModeRounding applied to percentage damage modifier results.
defensePenetrationRoundingModeRoundingModeRounding applied to effective defense after penetration.
damageMitigationRoundingModeRoundingModeRounding applied to damage after mitigation.
criticalDamageMultiplierRoundingModeRoundingModeRounding applied to damage after critical multipliers.
lifestealRoundingModeRoundingModeRounding 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
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